org.alfresco.cmis.client
Interface AlfrescoAspects

All Known Subinterfaces:
AlfrescoDocument, AlfrescoFolder, TransientAlfrescoDocument, TransientAlfrescoFolder
All Known Implementing Classes:
AlfrescoAspectsImpl, AlfrescoDocumentImpl, AlfrescoFolderImpl, TransientAlfrescoAspectsImpl, TransientAlfrescoDocumentImpl, TransientAlfrescoFolderImpl

public interface AlfrescoAspects

Alfresco aspects interface.


Method Summary
 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.
 

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:
true if the aspect is applied, false otherwise

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:
true if the aspect is applied, false otherwise

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, null otherwise

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 type
properties - 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 types
properties - 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 type
properties - 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 types
properties - 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:
id - the aspect type or types
Returns:
the changed object (which may be a new object)


Copyright © 2011–2014 Alfresco. All rights reserved.