Package org.alfresco.cmis.client
Interface AlfrescoAspects
-
- All Known Subinterfaces:
AlfrescoDocument,AlfrescoFolder
- All Known Implementing Classes:
AlfrescoAspectsImpl,AlfrescoDocumentImpl,AlfrescoFolderImpl
public interface AlfrescoAspectsAlfresco aspects interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.chemistry.opencmis.client.api.CmisObjectaddAspect(String... id)Adds one or more aspects to the object.org.apache.chemistry.opencmis.client.api.CmisObjectaddAspect(String[] id, Map<String,?> properties)Adds aspects and sets aspect properties.org.apache.chemistry.opencmis.client.api.CmisObjectaddAspect(String id, Map<String,?> properties)Adds an aspect and sets aspect properties.org.apache.chemistry.opencmis.client.api.CmisObjectaddAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)Adds one or more aspects to the object.org.apache.chemistry.opencmis.client.api.CmisObjectaddAspect(org.apache.chemistry.opencmis.client.api.ObjectType[] type, Map<String,?> properties)Adds aspects and sets aspect properties.org.apache.chemistry.opencmis.client.api.CmisObjectaddAspect(org.apache.chemistry.opencmis.client.api.ObjectType type, Map<String,?> properties)Adds an aspect and sets aspect properties.org.apache.chemistry.opencmis.client.api.ObjectTypefindAspect(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.ObjectTypegetTypeWithAspects()Returns a type definition with the applied aspects.booleanhasAspect(String id)Returns if the given aspect is applied to this object.booleanhasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type)Returns if the given aspect is applied to this object.org.apache.chemistry.opencmis.client.api.CmisObjectremoveAspect(String... id)Removes one or more aspects from the object.org.apache.chemistry.opencmis.client.api.CmisObjectremoveAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)Removes one or more aspects from the object.
-
-
-
Method Detail
-
getTypeWithAspects
org.apache.chemistry.opencmis.client.api.ObjectType getTypeWithAspects()
Returns a type definition with the applied aspects.- Returns:
- an object type with all property definitions (object and aspect properties).
-
hasAspect
boolean hasAspect(String id)
Returns if the given aspect is applied to this object.- Parameters:
id- the aspect id- Returns:
trueif the aspect is applied,falseotherwise
-
hasAspect
boolean hasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type)
Returns if the given aspect is applied to this object.- Parameters:
type- the aspect object type- Returns:
trueif the aspect is applied,falseotherwise
-
getAspects
Collection<org.apache.chemistry.opencmis.client.api.ObjectType> getAspects()
Returns all applied aspects. If no aspect is applied, an empty collection is returned.- Returns:
- collection of the applied aspects
-
findAspect
org.apache.chemistry.opencmis.client.api.ObjectType findAspect(String propertyId)
Returns the aspect type that defines the given property.- Parameters:
propertyId- the property id- Returns:
- the aspect type if the property id is defined in an applied
aspect,
nullotherwise
-
addAspect
org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String... id)
Adds one or more aspects to the object.- Parameters:
id- the aspect id or ids- Returns:
- the changed object (which may be a new object)
-
addAspect
org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
Adds one or more aspects to the object.- Parameters:
type- the aspect type or types- Returns:
- the changed object (which may be a new object)
-
addAspect
org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType type, Map<String,?> properties)Adds an aspect and sets aspect properties.- Parameters:
type- the aspect typeproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType[] type, Map<String,?> properties)Adds aspects and sets aspect properties.- Parameters:
type- the aspect typesproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String id, Map<String,?> properties)
Adds an aspect and sets aspect properties.- Parameters:
id- the aspect typeproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String[] id, Map<String,?> properties)
Adds aspects and sets aspect properties.- Parameters:
id- the aspect typesproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
removeAspect
org.apache.chemistry.opencmis.client.api.CmisObject removeAspect(String... id)
Removes one or more aspects from the object.- Parameters:
id- the aspect id or ids- Returns:
- the changed object (which may be a new object)
-
removeAspect
org.apache.chemistry.opencmis.client.api.CmisObject removeAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
Removes one or more aspects from the object.- Parameters:
type- the aspect type or types- Returns:
- the changed object (which may be a new object)
-
-