org.apache.chemistry.opencmis.client.runtime
Class TransientFolderImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject
      extended by org.apache.chemistry.opencmis.client.runtime.AbstractTransientFileableCmisObject
          extended by org.apache.chemistry.opencmis.client.runtime.TransientFolderImpl
All Implemented Interfaces:
CmisObjectProperties, FolderProperties, ObjectId, TransientCmisObject, TransientFileableCmisObject, TransientFolder

public class TransientFolderImpl
extends AbstractTransientFileableCmisObject
implements TransientFolder


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject
AbstractTransientCmisObject.AceChangeHolder
 
Field Summary
 
Fields inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject
acl, addAces, addPolicies, allowableActions, deleteAllVersions, inputExtensions, isMarkedForDelete, isModified, isPropertyUpdateRequired, object, ouputExtensions, policies, properties, relationships, removeAces, removePolicies, renditions, session
 
Constructor Summary
TransientFolderImpl()
           
 
Method Summary
 Document createDocument(Map<String,?> properties, ContentStream contentStream, VersioningState versioningState)
           
 Document createDocument(Map<String,?> properties, ContentStream contentStream, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
           
 Document createDocumentFromSource(ObjectId source, Map<String,?> properties, VersioningState versioningState)
           
 Document createDocumentFromSource(ObjectId source, Map<String,?> properties, VersioningState versioningState, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
           
 Folder createFolder(Map<String,?> properties)
           
 Folder createFolder(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
           
 Policy createPolicy(Map<String,?> properties)
           
 Policy createPolicy(Map<String,?> properties, List<Policy> policies, List<Ace> addAces, List<Ace> removeAces, OperationContext context)
           
 void deleteTree(boolean allversions, UnfileObject unfile, boolean continueOnFailure)
           
 List<ObjectType> getAllowedChildObjectTypes()
          Returns the list of the allowed object types in this folder (CMIS property cmis:allowedChildObjectTypeIds).
 ItemIterable<Document> getCheckedOutDocs()
           
 ItemIterable<Document> getCheckedOutDocs(OperationContext context)
           
 ItemIterable<CmisObject> getChildren()
           
 ItemIterable<CmisObject> getChildren(OperationContext context)
           
 List<Tree<FileableCmisObject>> getDescendants(int depth)
           
 List<Tree<FileableCmisObject>> getDescendants(int depth, OperationContext context)
           
 Folder getFolderParent()
           
 List<Tree<FileableCmisObject>> getFolderTree(int depth)
           
 List<Tree<FileableCmisObject>> getFolderTree(int depth, OperationContext context)
           
 String getParentId()
          Returns the parent id or null if the folder is ther root folder (CMIS property cmis:parentId).
 String getPath()
           
protected  void initialize(Session session, CmisObject object)
           
 boolean isRootFolder()
           
 ObjectId save()
           
 void setAllowedChildObjectTypes(List<ObjectType> types)
           
 
Methods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientFileableCmisObject
addToFolder, getParents, getPaths, move, removeFromFolder
 
Methods inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject
addAce, applyPolicy, delete, getAllowableActions, getBaseType, getBaseTypeId, getBinding, getChangeToken, getCmisObject, getCreatedBy, getCreationDate, getId, getInputExtensions, getLastModificationDate, getLastModifiedBy, getLatestChangeToken, getName, getObjectFactory, getObjectId, getOriginalAcl, getOutputExtensions, getPolicies, getProperties, getProperty, getPropertyValue, getRelationships, getRenditions, getRepositoryId, getSession, getType, isMarkedForDelete, isModified, prepareAcl, prepareProperties, refreshAndReset, removeAce, removePolicy, reset, saveACL, saveDelete, savePolicies, saveProperties, setName, setOutputExtensions, setPropertyValue
 
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.TransientFileableCmisObject
addToFolder, getParents, getPaths, move, removeFromFolder
 
Methods inherited from interface org.apache.chemistry.opencmis.client.api.TransientCmisObject
addAce, applyPolicy, delete, getAllowableActions, getCmisObject, getInputExtensions, getOriginalAcl, getOutputExtensions, getPolicies, getRelationships, getRenditions, isMarkedForDelete, isModified, refreshAndReset, removeAce, removePolicy, reset, setName, setOutputExtensions, setPropertyValue
 
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

TransientFolderImpl

public TransientFolderImpl()
Method Detail

initialize

protected void initialize(Session session,
                          CmisObject object)
Overrides:
initialize in class AbstractTransientCmisObject

createDocument

public Document createDocument(Map<String,?> properties,
                               ContentStream contentStream,
                               VersioningState versioningState,
                               List<Policy> policies,
                               List<Ace> addAces,
                               List<Ace> removeAces,
                               OperationContext context)
Specified by:
createDocument in interface TransientFolder

createDocument

public Document createDocument(Map<String,?> properties,
                               ContentStream contentStream,
                               VersioningState versioningState)
Specified by:
createDocument in interface TransientFolder

createDocumentFromSource

public Document createDocumentFromSource(ObjectId source,
                                         Map<String,?> properties,
                                         VersioningState versioningState,
                                         List<Policy> policies,
                                         List<Ace> addAces,
                                         List<Ace> removeAces,
                                         OperationContext context)
Specified by:
createDocumentFromSource in interface TransientFolder

createDocumentFromSource

public Document createDocumentFromSource(ObjectId source,
                                         Map<String,?> properties,
                                         VersioningState versioningState)
Specified by:
createDocumentFromSource in interface TransientFolder

createFolder

public Folder createFolder(Map<String,?> properties,
                           List<Policy> policies,
                           List<Ace> addAces,
                           List<Ace> removeAces,
                           OperationContext context)
Specified by:
createFolder in interface TransientFolder

createFolder

public Folder createFolder(Map<String,?> properties)
Specified by:
createFolder in interface TransientFolder

createPolicy

public Policy createPolicy(Map<String,?> properties,
                           List<Policy> policies,
                           List<Ace> addAces,
                           List<Ace> removeAces,
                           OperationContext context)
Specified by:
createPolicy in interface TransientFolder

createPolicy

public Policy createPolicy(Map<String,?> properties)
Specified by:
createPolicy in interface TransientFolder

deleteTree

public void deleteTree(boolean allversions,
                       UnfileObject unfile,
                       boolean continueOnFailure)
Specified by:
deleteTree in interface TransientFolder

getFolderTree

public List<Tree<FileableCmisObject>> getFolderTree(int depth)
Specified by:
getFolderTree in interface TransientFolder

getFolderTree

public List<Tree<FileableCmisObject>> getFolderTree(int depth,
                                                    OperationContext context)
Specified by:
getFolderTree in interface TransientFolder

getDescendants

public List<Tree<FileableCmisObject>> getDescendants(int depth)
Specified by:
getDescendants in interface TransientFolder

getDescendants

public List<Tree<FileableCmisObject>> getDescendants(int depth,
                                                     OperationContext context)
Specified by:
getDescendants in interface TransientFolder

getChildren

public ItemIterable<CmisObject> getChildren()
Specified by:
getChildren in interface TransientFolder

getChildren

public ItemIterable<CmisObject> getChildren(OperationContext context)
Specified by:
getChildren in interface TransientFolder

isRootFolder

public boolean isRootFolder()
Specified by:
isRootFolder in interface TransientFolder

getFolderParent

public Folder getFolderParent()
Specified by:
getFolderParent in interface TransientFolder

getPath

public String getPath()
Specified by:
getPath in interface TransientFolder

getCheckedOutDocs

public ItemIterable<Document> getCheckedOutDocs()
Specified by:
getCheckedOutDocs in interface TransientFolder

getCheckedOutDocs

public ItemIterable<Document> getCheckedOutDocs(OperationContext context)
Specified by:
getCheckedOutDocs in interface TransientFolder

getParentId

public String getParentId()
Description copied from interface: FolderProperties
Returns the parent id or null if the folder is ther root folder (CMIS property cmis:parentId).

Specified by:
getParentId in interface FolderProperties

getAllowedChildObjectTypes

public List<ObjectType> getAllowedChildObjectTypes()
Description copied from interface: FolderProperties
Returns the list of the allowed object types in this folder (CMIS property cmis:allowedChildObjectTypeIds). If the list is empty or null all object types are allowed.

Specified by:
getAllowedChildObjectTypes in interface FolderProperties

setAllowedChildObjectTypes

public void setAllowedChildObjectTypes(List<ObjectType> types)
Specified by:
setAllowedChildObjectTypes in interface TransientFolder

save

public ObjectId save()
Specified by:
save in interface TransientCmisObject
Overrides:
save in class AbstractTransientCmisObject


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.