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.
|
protected TransientCmisObject |
createTransientCmisObject()
Deprecated.
Support for transient objects will be removed in the future.
|
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 ther 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.
|
TransientFolder |
getTransientFolder()
Deprecated.
Support for transient objects will be removed in the future.
|
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, getPolicies, getProperties, getProperty, getPropertyQueryName, getPropertyValue, getRefreshTimestamp, getRelationships, getRenditions, getRepositoryId, getSecondaryTypes, getSession, getTransientObject, getType, initialize, readLock, readUnlock, refresh, refreshIfOld, removeAcl, removePolicy, 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, getPolicies, getRefreshTimestamp, getRelationships, getRenditions, getTransientObject, refresh, refreshIfOld, removeAcl, removePolicy, 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)
@Deprecated protected TransientCmisObject createTransientCmisObject()
createTransientCmisObject in class AbstractCmisObject@Deprecated public TransientFolder getTransientFolder()
getTransientFolder in interface Folderpublic 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 ther root
folder (CMIS property cmis:parentId).getParentId in interface FolderPropertiespublic List<ObjectType> getAllowedChildObjectTypes()
FolderPropertiescmis:allowedChildObjectTypeIds). If the list is
empty or null all object types are allowed.getAllowedChildObjectTypes in interface FolderPropertiespublic 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 Folderpublic 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-2013 The Apache Software Foundation. All Rights Reserved.