Package org.alfresco.cmis.client.impl
Class AlfrescoAspectsImpl
java.lang.Object
org.alfresco.cmis.client.impl.AlfrescoAspectsImpl
- All Implemented Interfaces:
AlfrescoAspects
-
Constructor Summary
ConstructorsConstructorDescriptionAlfrescoAspectsImpl(org.apache.chemistry.opencmis.client.api.Session session, org.apache.chemistry.opencmis.client.api.CmisObject object) -
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.
-
Constructor Details
-
AlfrescoAspectsImpl
public AlfrescoAspectsImpl(org.apache.chemistry.opencmis.client.api.Session session, org.apache.chemistry.opencmis.client.api.CmisObject object)
-
-
Method Details
-
getTypeWithAspects
public org.apache.chemistry.opencmis.client.api.ObjectType getTypeWithAspects()Description copied from interface:AlfrescoAspectsReturns a type definition with the applied aspects.- Specified by:
getTypeWithAspectsin interfaceAlfrescoAspects- Returns:
- an object type with all property definitions (object and aspect properties).
-
hasAspect
Description copied from interface:AlfrescoAspectsReturns if the given aspect is applied to this object.- Specified by:
hasAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect id- Returns:
trueif the aspect is applied,falseotherwise
-
hasAspect
public boolean hasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type) Description copied from interface:AlfrescoAspectsReturns if the given aspect is applied to this object.- Specified by:
hasAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect object type- Returns:
trueif the aspect is applied,falseotherwise
-
getAspects
Description copied from interface:AlfrescoAspectsReturns all applied aspects. If no aspect is applied, an empty collection is returned.- Specified by:
getAspectsin interfaceAlfrescoAspects- Returns:
- collection of the applied aspects
-
findAspect
Description copied from interface:AlfrescoAspectsReturns the aspect type that defines the given property.- Specified by:
findAspectin interfaceAlfrescoAspects- Parameters:
propertyId- the property id- Returns:
- the aspect type if the property id is defined in an applied
aspect,
nullotherwise
-
addAspect
Description copied from interface:AlfrescoAspectsAdds one or more aspects to the object.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect id or ids- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type) Description copied from interface:AlfrescoAspectsAdds one or more aspects to the object.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect type or types- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType type, Map<String, ?> properties) Description copied from interface:AlfrescoAspectsAdds an aspect and sets aspect properties.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect typeproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType[] type, Map<String, ?> properties) Description copied from interface:AlfrescoAspectsAdds aspects and sets aspect properties.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect typesproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String id, Map<String, ?> properties) Description copied from interface:AlfrescoAspectsAdds an aspect and sets aspect properties.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect typeproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
addAspect
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String[] id, Map<String, ?> properties) Description copied from interface:AlfrescoAspectsAdds aspects and sets aspect properties.- Specified by:
addAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect typesproperties- the aspect properties- Returns:
- the changed object (which may be a new object)
-
removeAspect
Description copied from interface:AlfrescoAspectsRemoves one or more aspects from the object.- Specified by:
removeAspectin interfaceAlfrescoAspects- Parameters:
id- the aspect id or ids- Returns:
- the changed object (which may be a new object)
-
removeAspect
public org.apache.chemistry.opencmis.client.api.CmisObject removeAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type) Description copied from interface:AlfrescoAspectsRemoves one or more aspects from the object.- Specified by:
removeAspectin interfaceAlfrescoAspects- Parameters:
type- the aspect type or types- Returns:
- the changed object (which may be a new object)
-