public interface Folder extends FileableCmisObject, FolderProperties
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.
|
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 . |
FolderType |
getFolderType()
Returns the object type as a folder type.
|
String |
getPath()
Returns the path of the folder.
|
boolean |
isRootFolder()
Returns if the folder is the root folder.
|
addToFolder, getParents, getParents, getPaths, move, move, removeFromFolder
addAcl, applyAcl, applyPolicy, applyPolicy, delete, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPermissionsForPrincipal, getPolicies, getPolicyIds, getRefreshTimestamp, getRelationships, getRenditions, hasAllowableAction, refresh, refreshIfOld, removeAcl, removePolicy, removePolicy, rename, rename, setAcl, updateProperties, updateProperties, updateProperties, updateProperties
findObjectType, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getSecondaryTypes, getType
getAllowedChildObjectTypes, getParentId
FolderType getFolderType()
ClassCastException
- if the object type is not a folder typeDocument createDocument(Map<String,?> properties, ContentStream contentStream, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
contentStream
is consumed but not closed by this
method.null
if the parameter
context
was set to null
Document createDocument(Map<String,?> properties, ContentStream contentStream, VersioningState versioningState)
contentStream
is consumed but not closed by this
method.Document createDocumentFromSource(ObjectId source, Map<String,?> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
null
if the parameter
context
was set to null
Document createDocumentFromSource(ObjectId source, Map<String,?> properties, VersioningState versioningState)
Folder createFolder(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
null
if the parameter
context
was set to null
Folder createFolder(Map<String,?> properties)
Policy createPolicy(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
null
if the parameter
context
was set to null
Item createItem(Map<String,?> properties)
Item createItem(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
null
if the parameter
context
was set to null
Policy createPolicy(Map<String,?> properties)
List<String> deleteTree(boolean allversions, UnfileObject unfile, boolean continueOnFailure)
List<Tree<FileableCmisObject>> getFolderTree(int depth)
List<Tree<FileableCmisObject>> getFolderTree(int depth, OperationContext context)
OperationContext
.List<Tree<FileableCmisObject>> getDescendants(int depth)
List<Tree<FileableCmisObject>> getDescendants(int depth, OperationContext context)
OperationContext
.ItemIterable<CmisObject> getChildren()
ItemIterable<CmisObject> getChildren(OperationContext context)
OperationContext
.boolean isRootFolder()
true
if the folder is the root folder, false
otherwiseFolder getFolderParent()
null
if the folder is the
root folder.String getPath()
ItemIterable<Document> getCheckedOutDocs()
ItemIterable<Document> getCheckedOutDocs(OperationContext context)
OperationContext
.Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.