public class AlfrescoAspectsImpl extends Object implements AlfrescoAspects
| Constructor and Description |
|---|
AlfrescoAspectsImpl(org.apache.chemistry.opencmis.client.api.Session session,
org.apache.chemistry.opencmis.client.api.CmisObject object) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.chemistry.opencmis.client.api.CmisObject |
addAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
Adds one or more aspects to the object.
|
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.
|
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.
|
org.apache.chemistry.opencmis.client.api.CmisObject |
addAspect(String... id)
Adds one or more aspects to the object.
|
org.apache.chemistry.opencmis.client.api.CmisObject |
addAspect(String[] id,
Map<String,?> properties)
Adds aspects and sets aspect properties.
|
org.apache.chemistry.opencmis.client.api.CmisObject |
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.
|
org.apache.chemistry.opencmis.client.api.CmisObject |
removeAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
Removes one or more aspects from the object.
|
org.apache.chemistry.opencmis.client.api.CmisObject |
removeAspect(String... id)
Removes one or more aspects from the object.
|
public AlfrescoAspectsImpl(org.apache.chemistry.opencmis.client.api.Session session,
org.apache.chemistry.opencmis.client.api.CmisObject object)
public org.apache.chemistry.opencmis.client.api.ObjectType getTypeWithAspects()
AlfrescoAspectsgetTypeWithAspects in interface AlfrescoAspectspublic boolean hasAspect(String id)
AlfrescoAspectshasAspect in interface AlfrescoAspectsid - the aspect idtrue if the aspect is applied, false
otherwisepublic boolean hasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type)
AlfrescoAspectshasAspect in interface AlfrescoAspectstype - the aspect object typetrue if the aspect is applied, false
otherwisepublic Collection<org.apache.chemistry.opencmis.client.api.ObjectType> getAspects()
AlfrescoAspectsgetAspects in interface AlfrescoAspectspublic org.apache.chemistry.opencmis.client.api.ObjectType findAspect(String propertyId)
AlfrescoAspectsfindAspect in interface AlfrescoAspectspropertyId - the property idnull otherwisepublic org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String... id)
AlfrescoAspectsaddAspect in interface AlfrescoAspectsid - the aspect id or idspublic org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
AlfrescoAspectsaddAspect in interface AlfrescoAspectstype - the aspect type or typespublic org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType type,
Map<String,?> properties)
AlfrescoAspectsaddAspect in interface AlfrescoAspectstype - the aspect typeproperties - the aspect propertiespublic org.apache.chemistry.opencmis.client.api.CmisObject addAspect(org.apache.chemistry.opencmis.client.api.ObjectType[] type,
Map<String,?> properties)
AlfrescoAspectsaddAspect in interface AlfrescoAspectstype - the aspect typesproperties - the aspect propertiespublic org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String id, Map<String,?> properties)
AlfrescoAspectsaddAspect in interface AlfrescoAspectsid - the aspect typeproperties - the aspect propertiespublic org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String[] id, Map<String,?> properties)
AlfrescoAspectsaddAspect in interface AlfrescoAspectsid - the aspect typesproperties - the aspect propertiespublic org.apache.chemistry.opencmis.client.api.CmisObject removeAspect(String... id)
AlfrescoAspectsremoveAspect in interface AlfrescoAspectsid - the aspect id or idspublic org.apache.chemistry.opencmis.client.api.CmisObject removeAspect(org.apache.chemistry.opencmis.client.api.ObjectType... type)
AlfrescoAspectsremoveAspect in interface AlfrescoAspectsCopyright © 2011–2014 Alfresco. All rights reserved.