Package org.alfresco.cmis.client
Interface AlfrescoAspects
- All Known Subinterfaces:
AlfrescoDocument,AlfrescoFolder
- All Known Implementing Classes:
AlfrescoAspectsImpl,AlfrescoDocumentImpl,AlfrescoFolderImpl
public interface AlfrescoAspects
Alfresco aspects interface.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.chemistry.opencmis.client.api.CmisObjectAdds one or more aspects to the object.org.apache.chemistry.opencmis.client.api.CmisObjectAdds aspects and sets aspect properties.org.apache.chemistry.opencmis.client.api.CmisObjectAdds 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.CmisObjectAdds aspects and sets aspect properties.org.apache.chemistry.opencmis.client.api.CmisObjectAdds 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>Returns all applied aspects.org.apache.chemistry.opencmis.client.api.ObjectTypeReturns a type definition with the applied aspects.booleanReturns 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 Details
-
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
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
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
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
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
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)
-