public class FolderImpl extends AbstractFilableCmisObject implements Folder
| Constructor and Description |
|---|
FolderImpl(SessionImpl session,
ObjectType objectType,
ObjectData objectData,
OperationContext context)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
createDocument(Map<String,?> properties,
ContentStream contentStream,
VersioningState versioningState)
Creates a new document in this folder.
|
Document |
createDocument(Map<String,?> properties,
ContentStream contentStream,
VersioningState versioningState,
List<Policy> policies,
List<Ace> addAces,
List<Ace> removeAces,
OperationContext context)
Creates a new document in this folder.
|
Document |
createDocumentFromSource(ObjectId source,
Map<String,?> properties,
VersioningState versioningState)
Creates a new document from a source document in this folder.
|
Document |
createDocumentFromSource(ObjectId source,
Map<String,?> properties,
VersioningState versioningState,
List<Policy> policies,
List<Ace> addAces,
List<Ace> removeAces,
OperationContext context)
Creates a new document from a source document in this folder.
|
Folder |
createFolder(Map<String,?> properties)
Creates a new subfolder in this folder.
|
Folder |
createFolder(Map<String,?> properties,
List<Policy> policies,
List<Ace> addAces,
List<Ace> removeAces,
OperationContext context)
Creates a new subfolder in this folder.
|
Item |
createItem(Map<String,?> properties)
Creates a new item in this folder.
|
Item |
createItem(Map<String,?> properties,
List<Policy> policies,
List<Ace> addAces,
List<Ace> removeAces,
OperationContext context)
Creates a new item in this folder.
|
Policy |
createPolicy(Map<String,?> properties)
Creates a new policy in this folder.
|
Policy |
createPolicy(Map<String,?> properties,
List<Policy> policies,
List<Ace> addAces,
List<Ace> removeAces,
OperationContext context)
Creates a new policy in this folder.
|
List<String> |
deleteTree(boolean allVersions,
UnfileObject unfile,
boolean continueOnFailure)
Deletes this folder and all subfolders.
|
List<ObjectType> |
getAllowedChildObjectTypes()
Returns the list of the allowed object types in this folder (CMIS
property
cmis:allowedChildObjectTypeIds). |
ItemIterable<Document> |
getCheckedOutDocs()
Returns all checked out documents in this folder.
|
ItemIterable<Document> |
getCheckedOutDocs(OperationContext context)
Returns all checked out documents in this folder using the given
OperationContext. |
ItemIterable<CmisObject> |
getChildren()
Returns the children of this folder.
|
ItemIterable<CmisObject> |
getChildren(OperationContext context)
Returns the children of this folder using the given
OperationContext. |
List<Tree<FileableCmisObject>> |
getDescendants(int depth)
Gets the folder descendants starting with this folder.
|
List<Tree<FileableCmisObject>> |
getDescendants(int depth,
OperationContext context)
Gets the folder descendants starting with this folder using the given
OperationContext. |
Folder |
getFolderParent()
Gets the parent folder object.
|
List<Tree<FileableCmisObject>> |
getFolderTree(int depth)
Gets the folder tree starting with this folder.
|
List<Tree<FileableCmisObject>> |
getFolderTree(int depth,
OperationContext context)
Gets the folder tree starting with this folder using the given
OperationContext. |
String |
getParentId()
Returns the parent id or
null if the folder is the root folder
(CMIS property cmis:parentId). |
List<Folder> |
getParents(OperationContext context)
Returns the parents of this object.
|
String |
getPath()
Returns the path of the folder.
|
List<String> |
getPaths()
Returns the paths of this object.
|
boolean |
isRootFolder()
Returns if the folder is the root folder.
|
addToFolder, getParents, move, move, removeFromFolderaddAcl, applyAcl, applyPolicy, delete, delete, findObjectType, getAcl, getAcl, getAdapter, getAllowableActions, getBaseType, getBaseTypeId, getBinding, getChangeToken, getCreatedBy, getCreationContext, getCreationDate, getDescription, getExtensions, getId, getLastModificationDate, getLastModifiedBy, getName, getObjectFactory, getObjectId, getObjectType, getPermissonsForPrincipal, getPolicies, getProperties, getProperty, getPropertyQueryName, getPropertyValue, getRefreshTimestamp, getRelationships, getRenditions, getRepositoryId, getSecondaryTypes, getSession, getType, hasAllowableAction, initialize, readLock, readUnlock, refresh, refreshIfOld, removeAcl, removePolicy, rename, rename, setAcl, toString, updateProperties, updateProperties, writeLock, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddToFolder, getParents, move, move, removeFromFolderaddAcl, applyAcl, applyPolicy, delete, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPermissonsForPrincipal, getPolicies, getRefreshTimestamp, getRelationships, getRenditions, hasAllowableAction, refresh, refreshIfOld, removeAcl, removePolicy, rename, rename, setAcl, updateProperties, updatePropertiesfindObjectType, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getSecondaryTypes, getTypepublic FolderImpl(SessionImpl session, ObjectType objectType, ObjectData objectData, OperationContext context)
public Document createDocument(Map<String,?> properties, ContentStream contentStream, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
FoldercontentStream is consumed but not closed by this
method.createDocument in interface Foldernull if the parameter
context was set to nullpublic Document createDocumentFromSource(ObjectId source, Map<String,?> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
FoldercreateDocumentFromSource in interface Foldernull if the parameter
context was set to nullpublic Folder createFolder(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
FoldercreateFolder in interface Foldernull if the parameter
context was set to nullpublic Policy createPolicy(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
FoldercreatePolicy in interface Foldernull if the parameter
context was set to nullpublic Item createItem(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
FoldercreateItem in interface Foldernull if the parameter
context was set to nullpublic List<String> deleteTree(boolean allVersions, UnfileObject unfile, boolean continueOnFailure)
FolderdeleteTree in interface Folderpublic String getParentId()
FolderPropertiesnull if the folder is the root folder
(CMIS property cmis:parentId).getParentId in interface FolderPropertiesnull if the property hasn't been
requested, hasn't been provided by the repository, or the folder
is the root folderpublic List<ObjectType> getAllowedChildObjectTypes()
FolderPropertiescmis:allowedChildObjectTypeIds). If the list is empty or
null all object types are allowed.getAllowedChildObjectTypes in interface FolderPropertiesnull if the property hasn't been
requested, hasn't been provided by the repository, or the
property value isn't setpublic ItemIterable<Document> getCheckedOutDocs()
FoldergetCheckedOutDocs in interface Folderpublic ItemIterable<Document> getCheckedOutDocs(OperationContext context)
FolderOperationContext.getCheckedOutDocs in interface Folderpublic ItemIterable<CmisObject> getChildren()
FoldergetChildren in interface Folderpublic ItemIterable<CmisObject> getChildren(OperationContext context)
FolderOperationContext.getChildren in interface Folderpublic List<Tree<FileableCmisObject>> getDescendants(int depth)
FoldergetDescendants in interface Folderpublic List<Tree<FileableCmisObject>> getDescendants(int depth, OperationContext context)
FolderOperationContext.getDescendants in interface Folderpublic List<Tree<FileableCmisObject>> getFolderTree(int depth)
FoldergetFolderTree in interface Folderpublic List<Tree<FileableCmisObject>> getFolderTree(int depth, OperationContext context)
FolderOperationContext.getFolderTree in interface Folderpublic boolean isRootFolder()
FolderisRootFolder in interface Foldertrue if the folder is the root folder, false
otherwisepublic Folder getFolderParent()
FoldergetFolderParent in interface Foldernull if the folder is the
root folder.public String getPath()
Folderpublic List<Folder> getParents(OperationContext context)
FileableCmisObjectgetParents in interface FileableCmisObjectgetParents in class AbstractFilableCmisObjectcontext - the OperationContext to use to fetch the parent folder
objectspublic List<String> getPaths()
FileableCmisObjectgetPaths in interface FileableCmisObjectgetPaths in class AbstractFilableCmisObjectpublic Document createDocument(Map<String,?> properties, ContentStream contentStream, VersioningState versioningState)
FoldercontentStream is consumed but not closed by this
method.createDocument in interface Folderpublic Document createDocumentFromSource(ObjectId source, Map<String,?> properties, VersioningState versioningState)
FoldercreateDocumentFromSource in interface Folderpublic Folder createFolder(Map<String,?> properties)
FoldercreateFolder in interface Folderpublic Policy createPolicy(Map<String,?> properties)
FoldercreatePolicy in interface FolderCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.