|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.client.runtime.AbstractCmisObject
org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject
org.apache.chemistry.opencmis.client.runtime.FolderImpl
public class FolderImpl
Constructor Summary | |
---|---|
FolderImpl(SessionImpl session,
ObjectType objectType,
ObjectData objectData,
OperationContext context)
Constructor. |
Method Summary | |
---|---|
Document |
createDocument(java.util.Map<java.lang.String,?> properties,
ContentStream contentStream,
VersioningState versioningState)
Creates a new document in this folder. |
Document |
createDocument(java.util.Map<java.lang.String,?> properties,
ContentStream contentStream,
VersioningState versioningState,
java.util.List<Policy> policies,
java.util.List<Ace> addAces,
java.util.List<Ace> removeAces,
OperationContext context)
Creates a new document in this folder. |
Document |
createDocumentFromSource(ObjectId source,
java.util.Map<java.lang.String,?> properties,
VersioningState versioningState)
Creates a new document from a source document in this folder. |
Document |
createDocumentFromSource(ObjectId source,
java.util.Map<java.lang.String,?> properties,
VersioningState versioningState,
java.util.List<Policy> policies,
java.util.List<Ace> addAces,
java.util.List<Ace> removeAces,
OperationContext context)
Creates a new document from a source document in this folder. |
Folder |
createFolder(java.util.Map<java.lang.String,?> properties)
Creates a new subfolder in this folder. |
Folder |
createFolder(java.util.Map<java.lang.String,?> properties,
java.util.List<Policy> policies,
java.util.List<Ace> addAces,
java.util.List<Ace> removeAces,
OperationContext context)
Creates a new subfolder in this folder. |
Policy |
createPolicy(java.util.Map<java.lang.String,?> properties)
Creates a new policy in this folder. |
Policy |
createPolicy(java.util.Map<java.lang.String,?> properties,
java.util.List<Policy> policies,
java.util.List<Ace> addAces,
java.util.List<Ace> removeAces,
OperationContext context)
Creates a new policy in this folder. |
protected TransientCmisObject |
createTransientCmisObject()
|
java.util.List<java.lang.String> |
deleteTree(boolean allVersions,
UnfileObject unfile,
boolean continueOnFailure)
Deletes this folder and all subfolders. |
java.util.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 . |
java.util.List<Tree<FileableCmisObject>> |
getDescendants(int depth)
Gets the folder descendants starting with this folder. |
java.util.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 |
java.util.List<Tree<FileableCmisObject>> |
getFolderTree(int depth)
Gets the folder tree starting with this folder. |
java.util.List<Tree<FileableCmisObject>> |
getFolderTree(int depth,
OperationContext context)
Gets the folder tree starting with this folder using the given OperationContext . |
java.lang.String |
getParentId()
Returns the parent id or null if the folder is ther root
folder (CMIS property cmis:parentId ). |
java.util.List<Folder> |
getParents(OperationContext context)
Returns the parents of this object. |
java.lang.String |
getPath()
Returns the path of the folder. |
java.util.List<java.lang.String> |
getPaths()
Returns the paths of this object. |
TransientFolder |
getTransientFolder()
|
boolean |
isRootFolder()
Returns if the folder is the root folder. |
Methods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractFilableCmisObject |
---|
addToFolder, getParents, move, move, removeFromFolder |
Methods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject |
---|
addAcl, applyAcl, applyPolicy, delete, getAcl, getAcl, getAdapter, getAllowableActions, getBaseType, getBaseTypeId, getBinding, getChangeToken, getCreatedBy, getCreationContext, getCreationDate, getExtensions, getId, getLastModificationDate, getLastModifiedBy, getName, getObjectFactory, getObjectId, getObjectType, getPolicies, getProperties, getProperty, getPropertyQueryName, getPropertyValue, getRefreshTimestamp, getRelationships, getRenditions, getRepositoryId, getSession, getTransientObject, getType, initialize, readLock, readUnlock, refresh, refreshIfOld, removeAcl, removePolicy, updateProperties, updateProperties, writeLock, writeUnlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.FileableCmisObject |
---|
addToFolder, getParents, move, move, removeFromFolder |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObject |
---|
addAcl, applyAcl, applyPolicy, delete, getAcl, getAdapter, getAllowableActions, getExtensions, getPolicies, getRefreshTimestamp, getRelationships, getRenditions, getTransientObject, refresh, refreshIfOld, removeAcl, removePolicy, updateProperties, updateProperties |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.ObjectId |
---|
getId |
Methods inherited from interface org.apache.chemistry.opencmis.client.api.CmisObjectProperties |
---|
getBaseType, getBaseTypeId, getChangeToken, getCreatedBy, getCreationDate, getLastModificationDate, getLastModifiedBy, getName, getProperties, getProperty, getPropertyValue, getType |
Constructor Detail |
---|
public FolderImpl(SessionImpl session, ObjectType objectType, ObjectData objectData, OperationContext context)
Method Detail |
---|
protected TransientCmisObject createTransientCmisObject()
createTransientCmisObject
in class AbstractCmisObject
public TransientFolder getTransientFolder()
getTransientFolder
in interface Folder
public Document createDocument(java.util.Map<java.lang.String,?> properties, ContentStream contentStream, VersioningState versioningState, java.util.List<Policy> policies, java.util.List<Ace> addAces, java.util.List<Ace> removeAces, OperationContext context)
Folder
createDocument
in interface Folder
null
if the parameter
context
was set to null
public Document createDocumentFromSource(ObjectId source, java.util.Map<java.lang.String,?> properties, VersioningState versioningState, java.util.List<Policy> policies, java.util.List<Ace> addAces, java.util.List<Ace> removeAces, OperationContext context)
Folder
createDocumentFromSource
in interface Folder
null
if the parameter
context
was set to null
public Folder createFolder(java.util.Map<java.lang.String,?> properties, java.util.List<Policy> policies, java.util.List<Ace> addAces, java.util.List<Ace> removeAces, OperationContext context)
Folder
createFolder
in interface Folder
null
if the parameter
context
was set to null
public Policy createPolicy(java.util.Map<java.lang.String,?> properties, java.util.List<Policy> policies, java.util.List<Ace> addAces, java.util.List<Ace> removeAces, OperationContext context)
Folder
createPolicy
in interface Folder
null
if the parameter
context
was set to null
public java.util.List<java.lang.String> deleteTree(boolean allVersions, UnfileObject unfile, boolean continueOnFailure)
Folder
deleteTree
in interface Folder
public java.lang.String getParentId()
FolderProperties
null
if the folder is ther root
folder (CMIS property cmis:parentId
).
getParentId
in interface FolderProperties
public java.util.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 java.util.List<Tree<FileableCmisObject>> getDescendants(int depth)
Folder
getDescendants
in interface Folder
public java.util.List<Tree<FileableCmisObject>> getDescendants(int depth, OperationContext context)
Folder
OperationContext
.
getDescendants
in interface Folder
public java.util.List<Tree<FileableCmisObject>> getFolderTree(int depth)
Folder
getFolderTree
in interface Folder
public java.util.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 java.lang.String getPath()
Folder
getPath
in interface Folder
public java.util.List<Folder> getParents(OperationContext context)
FileableCmisObject
getParents
in interface FileableCmisObject
getParents
in class AbstractFilableCmisObject
public java.util.List<java.lang.String> getPaths()
FileableCmisObject
getPaths
in interface FileableCmisObject
getPaths
in class AbstractFilableCmisObject
public Document createDocument(java.util.Map<java.lang.String,?> properties, ContentStream contentStream, VersioningState versioningState)
Folder
createDocument
in interface Folder
public Document createDocumentFromSource(ObjectId source, java.util.Map<java.lang.String,?> properties, VersioningState versioningState)
Folder
createDocumentFromSource
in interface Folder
public Folder createFolder(java.util.Map<java.lang.String,?> properties)
Folder
createFolder
in interface Folder
public Policy createPolicy(java.util.Map<java.lang.String,?> properties)
Folder
createPolicy
in interface Folder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |