|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.document.business.DocumentHome
public final class DocumentHome
This class provides instances management methods (create, find, ...) for Document objects
| Method Summary | |
|---|---|
static Document |
create(Document document)
Creation of an instance of document |
static java.util.List<Document> |
findAll()
|
static java.util.Collection<java.lang.Integer> |
findAllPrimaryKeys()
Gets all documents id |
static java.util.List<Document> |
findByFilter(DocumentFilter filter,
java.util.Locale locale)
Returns a collection of documents objects |
static Document |
findByPrimaryKey(int nKey)
Returns an instance of a document whose identifier is specified in parameter |
static Document |
findByPrimaryKeyWithoutBinaries(int nKey)
Returns an instance of a document whose identifier is specified in parameter |
static java.util.List<Document> |
findByRelatedCategories(Document document,
java.util.Locale locale)
Returns a collection of documents objects If more than one category is specified on filter, the result will corresponding to the document wich matched with one category at least. |
static java.util.List<Document> |
findBySpaceKey(int nSpaceId)
Returns documents by space id |
static java.util.Collection<java.lang.Integer> |
findPrimaryKeysByFilter(DocumentFilter filter,
java.util.Locale locale)
Returns a collection of documents ids |
static java.lang.String |
getPageTemplateDocumentPath(int IdPageTemplateDocument)
Load document pageTemplatePath |
static DocumentResource |
getResource(int nDocumentId)
|
static DocumentResource |
getResource(int nDocumentId,
int nAttributeId)
|
static void |
loadAttributes(Document document)
Load document attributes |
static Document |
loadLastModifiedAttributes(int nDocumentId)
Load document type and date last modification for HTTP GET conditional request ("If-Modified-Since") |
static int |
newPrimaryKey()
|
static void |
remove(int nDocumentId)
Remove the Document whose identifier is specified in parameter |
static Document |
update(Document document,
boolean bUpdateContent)
Update of the document which is specified in parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Document create(Document document)
document - The instance of the document which contains the informations to store
public static Document update(Document document,
boolean bUpdateContent)
bUpdateContent - document - The instance of the document which contains the data to store
public static void remove(int nDocumentId)
nDocumentId - public static Document findByPrimaryKey(int nKey)
nKey - The Primary key of the document
public static Document findByPrimaryKeyWithoutBinaries(int nKey)
nKey - The Primary key of the document
public static java.util.List<Document> findBySpaceKey(int nSpaceId)
nSpaceId - The space Id
public static java.util.Collection<java.lang.Integer> findPrimaryKeysByFilter(DocumentFilter filter,
java.util.Locale locale)
filter - locale -
public static java.util.List<Document> findByFilter(DocumentFilter filter,
java.util.Locale locale)
filter - locale -
public static java.util.List<Document> findByRelatedCategories(Document document,
java.util.Locale locale)
document - The Documentlocale - The Locale
public static DocumentResource getResource(int nDocumentId,
int nAttributeId)
nDocumentId - nAttributeId -
public static DocumentResource getResource(int nDocumentId)
nDocumentId -
public static int newPrimaryKey()
public static java.util.Collection<java.lang.Integer> findAllPrimaryKeys()
public static java.util.List<Document> findAll()
public static void loadAttributes(Document document)
document - the document referencepublic static java.lang.String getPageTemplateDocumentPath(int IdPageTemplateDocument)
IdPageTemplateDocument - the Id page template identifierpublic static Document loadLastModifiedAttributes(int nDocumentId)
nDocumentId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||