Inserts a new document association into the database.
Inserts a new document association into the database.
a Long representing the Id of the created association.
Gets the number of records that correspond to the complex select statement.
Gets the number of records that correspond to the complex select statement.
Gets the number of records that correspond to the complex select statement.
Gets the number of records that correspond to the complex select statement.
Gets a Document Type by the provided code
Gets a Document Type by the provided code
a com.atomizesoftware.spin.models.DocumentType if one is found
if document type was found.
Gets all the document types that were modified after the syncTimestamp provided.
Gets all the document types that were modified after the syncTimestamp provided.
Returns the document with the specified Id along with the files that are associated with it.
Returns the document with the specified Id along with the files that are associated with it.
Returns a tuple with the list of equipments that pertain to the selection filters and the total number of matching records that were found.
Returns a tuple with the list of equipments that pertain to the selection filters and the total number of matching records that were found.
If no limit was imposed in the selection filters, we do not make another query to get the total number of records, as they were already returned.
Returns a list of documents that are associated with the entity with the specified id.
Returns a list of documents that are associated with the entity with the specified id.
Gets a list of com.atomizesoftware.spin.models.DocumentType with the requested filters.
Gets a list of com.atomizesoftware.spin.models.DocumentType with the requested filters.
Gets a list of com.atomizesoftware.spin.models.Document with the requested filters.
Gets a list of com.atomizesoftware.spin.models.Document with the requested filters.
Gets a list of com.atomizesoftware.spin.models.Supplier with the requested filters.
Gets a list of com.atomizesoftware.spin.models.Supplier with the requested filters.
Inserts a document into the database and returns it with the id it received.
Inserts a document into the database and returns it with the id it received.
Success with the new document if successful, Failure with an exception otherwise.
Inserts a document type into the database.
Inserts a document type into the database.
Success with the new document type if sucessful, Failure with an exception otherwise.
Gets the number of records that correspond to the complex select statement.
Gets the number of records that correspond to the complex select statement.
Deletes a document association from the database.
Deletes a document association from the database.
a Boolean representing if the operation was successful or not.
Updates a com.atomizesoftware.spin.models.Document
Updates a com.atomizesoftware.spin.models.Document
to update
Updates a com.atomizesoftware.spin.models.DocumentFile
Updates a com.atomizesoftware.spin.models.DocumentFile
If fields are specified, only those are updated, otherwise the whole entity is updated.
to update
Updates the Document Files associations and moves the files to the respective dirs accordingly.
Updates the Document Files associations and moves the files to the respective dirs accordingly.
true if all changes were successfully executed, false otherwise.
Updates a com.atomizesoftware.spin.models.DocumentType
Updates a com.atomizesoftware.spin.models.DocumentType
If fields are specified, only those are updated, otherwise the whole entity is updated.
to update
Updates several documents taking into account the fields that have been chosen to be updated.
Updates several documents taking into account the fields that have been chosen to be updated.
Updates a com.atomizesoftware.spin.models.Supplier
Updates a com.atomizesoftware.spin.models.Supplier
If fields are specified, only those are updated, otherwise the whole entity is updated.
to update
Creates a file through the ByteArrayOutputStream that was provided
Creates a file through the ByteArrayOutputStream that was provided
the fileName and filePath of the file created
(Since version 2016-03-18) Use File Storage Manager instead to create files
Creates a file that was uploaded and is to be attached to a document.
Creates a file that was uploaded and is to be attached to a document.
the fileName and filePath of the file created.
(Since version 2016-03-18) Use File Storage Manager instead to create files
Implements functions related to com.atomizesoftware.spin.models.Document and its related entities: com.atomizesoftware.spin.models.DocumentType