org.alfresco.cmis.client.impl
Class TransientAlfrescoFolderImpl

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
              extended by org.alfresco.cmis.client.impl.TransientAlfrescoFolderImpl
All Implemented Interfaces:
AlfrescoAspects, org.apache.chemistry.opencmis.client.api.CmisObjectProperties, org.apache.chemistry.opencmis.client.api.FolderProperties, org.apache.chemistry.opencmis.client.api.ObjectId, org.apache.chemistry.opencmis.client.api.TransientCmisObject, org.apache.chemistry.opencmis.client.api.TransientFileableCmisObject, org.apache.chemistry.opencmis.client.api.TransientFolder

public class TransientAlfrescoFolderImpl
extends org.apache.chemistry.opencmis.client.runtime.TransientFolderImpl
implements AlfrescoAspects


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject
org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject.AceChangeHolder
 
Field Summary
protected  TransientAlfrescoAspectsImpl aspects
           
 
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
TransientAlfrescoFolderImpl()
           
 
Method Summary
 void addAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
          Adds one or more aspects to the object.
 void addAspect(org.apache.chemistry.opencmis.client.api.ObjectType[] type, Map<String,?> properties)
          Adds aspects and sets aspect properties.
 void addAspect(org.apache.chemistry.opencmis.client.api.ObjectType type, Map<String,?> properties)
          Adds an aspect and sets aspect properties.
 void addAspect(String... id)
          Adds one or more aspects to the object.
 void addAspect(String[] id, Map<String,?> properties)
          Adds aspects and sets aspect properties.
 void addAspect(String id, Map<String,?> properties)
          Adds an aspect and sets aspect properties.
 org.apache.chemistry.opencmis.client.api.ObjectType findAspect(String propertyId)
          Returns the aspect type that defines the given property.
 Collection<org.apache.chemistry.opencmis.client.api.ObjectType> getAspects()
          Returns all applied aspects.
 org.apache.chemistry.opencmis.client.api.ObjectType getTypeWithAspects()
          Returns a type definition with the applied aspects.
 boolean hasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type)
          Returns if the given aspect is applied to this object.
 boolean hasAspect(String id)
          Returns if the given aspect is applied to this object.
protected  void initialize(org.apache.chemistry.opencmis.client.api.Session session, org.apache.chemistry.opencmis.client.api.CmisObject object)
           
protected  org.apache.chemistry.opencmis.commons.data.Properties prepareProperties()
           
 void removeAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
          Removes one or more aspects from the object.
 void removeAspect(String... id)
          Removes one or more aspects from the object.
 org.apache.chemistry.opencmis.client.api.ObjectId save()
           
<T> void
setPropertyValue(String id, Object value)
           
 
Methods inherited from class org.apache.chemistry.opencmis.client.runtime.TransientFolderImpl
createDocument, createDocument, createDocumentFromSource, createDocumentFromSource, createFolder, createFolder, createPolicy, createPolicy, deleteTree, getAllowedChildObjectTypes, getCheckedOutDocs, getCheckedOutDocs, getChildren, getChildren, getDescendants, getDescendants, getFolderParent, getFolderTree, getFolderTree, getParentId, getPath, isRootFolder, setAllowedChildObjectTypes
 
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, refreshAndReset, removeAce, removePolicy, reset, saveACL, saveDelete, savePolicies, saveProperties, setName, setOutputExtensions
 
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
 
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
 

Field Detail

aspects

protected TransientAlfrescoAspectsImpl aspects
Constructor Detail

TransientAlfrescoFolderImpl

public TransientAlfrescoFolderImpl()
Method Detail

initialize

protected void initialize(org.apache.chemistry.opencmis.client.api.Session session,
                          org.apache.chemistry.opencmis.client.api.CmisObject object)
Overrides:
initialize in class org.apache.chemistry.opencmis.client.runtime.TransientFolderImpl

getTypeWithAspects

public org.apache.chemistry.opencmis.client.api.ObjectType getTypeWithAspects()
Description copied from interface: AlfrescoAspects
Returns a type definition with the applied aspects.

Specified by:
getTypeWithAspects in interface AlfrescoAspects
Returns:
an object type with all property definitions (object and aspect properties).

setPropertyValue

public <T> void setPropertyValue(String id,
                                 Object value)
Specified by:
setPropertyValue in interface org.apache.chemistry.opencmis.client.api.TransientCmisObject
Overrides:
setPropertyValue in class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject

hasAspect

public boolean hasAspect(String id)
Description copied from interface: AlfrescoAspects
Returns if the given aspect is applied to this object.

Specified by:
hasAspect in interface AlfrescoAspects
Parameters:
id - the aspect id
Returns:
true if the aspect is applied, false otherwise

hasAspect

public boolean hasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type)
Description copied from interface: AlfrescoAspects
Returns if the given aspect is applied to this object.

Specified by:
hasAspect in interface AlfrescoAspects
Parameters:
type - the aspect object type
Returns:
true if the aspect is applied, false otherwise

getAspects

public Collection<org.apache.chemistry.opencmis.client.api.ObjectType> getAspects()
Description copied from interface: AlfrescoAspects
Returns all applied aspects. If no aspect is applied, an empty collection is returned.

Specified by:
getAspects in interface AlfrescoAspects
Returns:
collection of the applied aspects

findAspect

public org.apache.chemistry.opencmis.client.api.ObjectType findAspect(String propertyId)
Description copied from interface: AlfrescoAspects
Returns the aspect type that defines the given property.

Specified by:
findAspect in interface AlfrescoAspects
Parameters:
propertyId - the property id
Returns:
the aspect type if the property id is defined in an applied aspect, null otherwise

addAspect

public void addAspect(String... id)
Description copied from interface: AlfrescoAspects
Adds one or more aspects to the object.

Specified by:
addAspect in interface AlfrescoAspects
Parameters:
id - the aspect id or ids

addAspect

public void addAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
Description copied from interface: AlfrescoAspects
Adds one or more aspects to the object.

Specified by:
addAspect in interface AlfrescoAspects
Parameters:
type - the aspect type or types

removeAspect

public void removeAspect(String... id)
Description copied from interface: AlfrescoAspects
Removes one or more aspects from the object.

Specified by:
removeAspect in interface AlfrescoAspects
Parameters:
id - the aspect id or ids

addAspect

public void addAspect(org.apache.chemistry.opencmis.client.api.ObjectType type,
                      Map<String,?> properties)
Description copied from interface: AlfrescoAspects
Adds an aspect and sets aspect properties.

Specified by:
addAspect in interface AlfrescoAspects
Parameters:
type - the aspect type
properties - the aspect properties

addAspect

public void addAspect(org.apache.chemistry.opencmis.client.api.ObjectType[] type,
                      Map<String,?> properties)
Description copied from interface: AlfrescoAspects
Adds aspects and sets aspect properties.

Specified by:
addAspect in interface AlfrescoAspects
Parameters:
type - the aspect types
properties - the aspect properties

addAspect

public void addAspect(String id,
                      Map<String,?> properties)
Description copied from interface: AlfrescoAspects
Adds an aspect and sets aspect properties.

Specified by:
addAspect in interface AlfrescoAspects
Parameters:
id - the aspect type
properties - the aspect properties

addAspect

public void addAspect(String[] id,
                      Map<String,?> properties)
Description copied from interface: AlfrescoAspects
Adds aspects and sets aspect properties.

Specified by:
addAspect in interface AlfrescoAspects
Parameters:
id - the aspect types
properties - the aspect properties

removeAspect

public void removeAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
Description copied from interface: AlfrescoAspects
Removes one or more aspects from the object.

Specified by:
removeAspect in interface AlfrescoAspects

save

public org.apache.chemistry.opencmis.client.api.ObjectId save()
Specified by:
save in interface org.apache.chemistry.opencmis.client.api.TransientCmisObject
Overrides:
save in class org.apache.chemistry.opencmis.client.runtime.TransientFolderImpl

prepareProperties

protected org.apache.chemistry.opencmis.commons.data.Properties prepareProperties()
Overrides:
prepareProperties in class org.apache.chemistry.opencmis.client.runtime.AbstractTransientCmisObject


Copyright © 2011-2012 Alfresco. All Rights Reserved.