public interface Folder extends FolderInfo, Resource
Folder interface represents an existing JCR folder.| Modifier and Type | Field and Description |
|---|---|
static int |
LOD_LIST_MEMBERS
level depth 1 - folder with documents and bare sub folders.
Use this if you want to get the documents in a folder and the folder objects contained in the requested folder. |
static int |
LOD_LIST_MEMBERS_OF_MEMBERS
level depth 2 - folder with documents and subfolders with contents, but sub folders NOT recursively.
Use this if you to have the contained folders and documents of the sub folders. |
static int |
LOD_NO_MEMBERS
level depth 0 - empty sub folder and no documents, just the bare folder object.
Use this for best performance if the folder itself is required not its contained documents or subfolders. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDocumentCount()
Gets the number of documents contained in this folder.
|
List<Document> |
getDocuments()
Gets the documents contained in this folder.
|
int |
getFolderCount()
Gets the number of subfolders contained in this folder.
|
List<Folder> |
getFolders()
Gets the subfolders contained in this folder.
|
int |
getLevelOfDetail()
Gets the level of detail of information contained in the
Folder
object. |
getId, getPath, getRepositoryIdgetDateCreated, getDateLastModified, getDescription, getName, getOwner, getProperties, getProperty, setDescription, setName, setOwner, setProperties, setPropertystatic final int LOD_NO_MEMBERS
If level of detail is set to LOD_NO_MEMBERS, the Folder
object contains neither its document nor subfolder information.
static final int LOD_LIST_MEMBERS
If level of detail is set to LOD_LIST_MEMBERS,
the Folder object contains both its document and subfolder
without their document and subfolder information
static final int LOD_LIST_MEMBERS_OF_MEMBERS
LOD_LIST_MEMBERS not the whole folder tree.
If level of detail is set to LOD_LIST_MEMBERS_OF_MEMBERS,
the Folder object contains both its document and subfolder
with their document and subfolder information
int getLevelOfDetail()
Folder
object.LOD_NO_MEMBERS, LOD_LIST_MEMBERS
or LOD_LIST_MEMBERS_OF_MEMBERS.int getDocumentCount()
List<Document> getDocuments()
DocumentManagementService.createDocument(String, DocumentInfo) to add documents
to this folder.int getFolderCount()
List<Folder> getFolders()
DocumentManagementService.createFolder(String, FolderInfo) to add subfolders
to this folder.Copyright © 2016 Eclipse Stardust. All Rights Reserved.