Package org.alfresco.cmis.client.impl
Class AlfrescoAspectsImpl
- java.lang.Object
-
- org.alfresco.cmis.client.impl.AlfrescoAspectsImpl
-
- All Implemented Interfaces:
AlfrescoAspects
public class AlfrescoAspectsImpl extends Object implements AlfrescoAspects
-
-
Constructor Summary
Constructors Constructor Description AlfrescoAspectsImpl(org.apache.chemistry.opencmis.client.api.Session session, org.apache.chemistry.opencmis.client.api.CmisObject object)
-
Method Summary
All Methods Instance Methods Concrete 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
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
public boolean hasAspect(String id)
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
public Collection<org.apache.chemistry.opencmis.client.api.ObjectType> 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
public org.apache.chemistry.opencmis.client.api.ObjectType findAspect(String propertyId)
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
public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String... id)
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
public org.apache.chemistry.opencmis.client.api.CmisObject removeAspect(String... id)
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)
-
-