public interface IDocumentDAO
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nDocumentId)
Delete a record from the table
|
String |
getPageTemplateDocumentPath(int idPageTemplateDocument)
Load document pageTemplatePath
|
void |
insert(Document document)
Insert a new record in the table.
|
Document |
load(int nDocumentId)
Load the data of Document from the table
|
void |
loadAttributes(Document document)
Load document attributes
|
void |
loadAttributesWithoutBinaries(Document document,
boolean bValidated)
Load document attributes
|
List<Document> |
loadFromSpaceId(int nSpaceId)
Returns documents by space id
|
Document |
loadLastModifiedAttributes(int nDocumentId)
Load document type and date last modification for HTTP GET conditional request ("If-Modified-Since")
|
Document |
loadLastModifiedDocumentFromUser(String strUserName)
Load the data of last Document the user worked in from the table
|
Document |
loadLastPublishedDocument()
Load the data of last Document the user worked in from the table
|
DocumentResource |
loadResource(int nDocumentId)
Load a resource (image, file, ...) corresponding to an attribute of a Document
|
DocumentResource |
loadSpecificResource(int nDocumentId,
int nAttributeId,
boolean bValidated)
Load a resource (image, file, ...) corresponding to an attribute of a Document
|
Document |
loadWithoutBinaries(int nDocumentId)
Returns an instance of a document whose identifier is specified in parameter
|
int |
newPrimaryKey()
Generates a new primary key
|
List<Document> |
selectAll()
Gets all documents
|
Collection<Integer> |
selectAllPrimaryKeys()
Gets all documents id
|
List<Document> |
selectByFilter(DocumentFilter filter)
Load the list of documents
|
List<Document> |
selectByRelatedCategories(Document document)
Load the list of published documents in relation with categories of specified document
|
Collection<Integer> |
selectPrimaryKeysByFilter(DocumentFilter filter)
Load the list of documents
|
void |
store(Document document,
boolean bUpdateContent)
Update the record in the table
|
void |
validateAttributes(int nDocumentId)
Validate the document attributes
|
int newPrimaryKey()
void delete(int nDocumentId)
nDocumentId - the document identifiervoid insert(Document document)
document - The document objectDocument load(int nDocumentId)
nDocumentId - The identifier of DocumentDocument loadWithoutBinaries(int nDocumentId)
nDocumentId - The Primary key of the documentList<Document> loadFromSpaceId(int nSpaceId)
nSpaceId - The space IdDocumentResource loadResource(int nDocumentId)
nDocumentId - The Document IdDocumentResource loadSpecificResource(int nDocumentId, int nAttributeId, boolean bValidated)
nDocumentId - The Document IdnAttributeId - The Attribute IdbValidated - true if we want the validated resourceCollection<Integer> selectAllPrimaryKeys()
Collection<Integer> selectPrimaryKeysByFilter(DocumentFilter filter)
filter - The DocumentFilter ObjectList<Document> selectByFilter(DocumentFilter filter)
filter - The DocumentFilter ObjectList<Document> selectByRelatedCategories(Document document)
document - The document with the categoriesvoid store(Document document, boolean bUpdateContent)
document - The reference of documentbUpdateContent - the booleanvoid loadAttributes(Document document)
document - the reference of the documentvoid loadAttributesWithoutBinaries(Document document, boolean bValidated)
document - the reference of the documentbValidated - true if the content of the document must be validated, false otherwiseString getPageTemplateDocumentPath(int idPageTemplateDocument)
idPageTemplateDocument - the Id page template identifierDocument loadLastModifiedAttributes(int nDocumentId)
nDocumentId - void validateAttributes(int nDocumentId)
nDocumentId - the Id of the documentDocument loadLastModifiedDocumentFromUser(String strUserName)
strUserName - the user nameDocument loadLastPublishedDocument()
Copyright © 2020 City of Paris. All rights reserved.