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, removeFromFolder
addAcl, 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, writeUnlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addToFolder, getParents, move, move, removeFromFolder
addAcl, applyAcl, applyPolicy, delete, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPolicies, getRefreshTimestamp, getRelationships, getRenditions, getTransientObject, refresh, refreshIfOld, removeAcl, removePolicy, setAcl, updateProperties, updateProperties
findObjectType, getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getDescription, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getSecondaryTypes, getType
public FolderImpl(SessionImpl session, ObjectType objectType, ObjectData objectData, OperationContext context)
@Deprecated protected TransientCmisObject createTransientCmisObject()
createTransientCmisObject
in class AbstractCmisObject
@Deprecated public TransientFolder getTransientFolder()
getTransientFolder
in interface Folder
public Document createDocument(Map<String,?> properties, ContentStream contentStream, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
Folder
contentStream
is consumed but not closed by
this method.createDocument
in interface Folder
null
if the parameter
context
was set to null
public Document createDocumentFromSource(ObjectId source, Map<String,?> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
Folder
createDocumentFromSource
in interface Folder
null
if the parameter
context
was set to null
public Folder createFolder(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
Folder
createFolder
in interface Folder
null
if the parameter
context
was set to null
public Policy createPolicy(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
Folder
createPolicy
in interface Folder
null
if the parameter
context
was set to null
public Item createItem(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
Folder
createItem
in interface Folder
null
if the parameter
context
was set to null
public List<String> deleteTree(boolean allVersions, UnfileObject unfile, boolean continueOnFailure)
Folder
deleteTree
in interface Folder
public String getParentId()
FolderProperties
null
if the folder is ther root
folder (CMIS property cmis:parentId
).getParentId
in interface FolderProperties
public List<ObjectType> getAllowedChildObjectTypes()
FolderProperties
cmis:allowedChildObjectTypeIds
). If the list is
empty or null
all object types are allowed.getAllowedChildObjectTypes
in interface FolderProperties
public ItemIterable<Document> getCheckedOutDocs()
Folder
getCheckedOutDocs
in interface Folder
public ItemIterable<Document> getCheckedOutDocs(OperationContext context)
Folder
OperationContext
.getCheckedOutDocs
in interface Folder
public ItemIterable<CmisObject> getChildren()
Folder
getChildren
in interface Folder
public ItemIterable<CmisObject> getChildren(OperationContext context)
Folder
OperationContext
.getChildren
in interface Folder
public List<Tree<FileableCmisObject>> getDescendants(int depth)
Folder
getDescendants
in interface Folder
public List<Tree<FileableCmisObject>> getDescendants(int depth, OperationContext context)
Folder
OperationContext
.getDescendants
in interface Folder
public List<Tree<FileableCmisObject>> getFolderTree(int depth)
Folder
getFolderTree
in interface Folder
public List<Tree<FileableCmisObject>> getFolderTree(int depth, OperationContext context)
Folder
OperationContext
.getFolderTree
in interface Folder
public boolean isRootFolder()
Folder
isRootFolder
in interface Folder
public Folder getFolderParent()
Folder
getFolderParent
in interface Folder
null
if the folder is
the root folder.public String getPath()
Folder
public List<Folder> getParents(OperationContext context)
FileableCmisObject
getParents
in interface FileableCmisObject
getParents
in class AbstractFilableCmisObject
context
- the OperationContext
to use to fetch the parent folder
objectspublic List<String> getPaths()
FileableCmisObject
getPaths
in interface FileableCmisObject
getPaths
in class AbstractFilableCmisObject
public Document createDocument(Map<String,?> properties, ContentStream contentStream, VersioningState versioningState)
Folder
contentStream
is consumed but not closed by
this method.createDocument
in interface Folder
public Document createDocumentFromSource(ObjectId source, Map<String,?> properties, VersioningState versioningState)
Folder
createDocumentFromSource
in interface Folder
public Folder createFolder(Map<String,?> properties)
Folder
createFolder
in interface Folder
public Policy createPolicy(Map<String,?> properties)
Folder
createPolicy
in interface Folder
Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.