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

    Modifier and Type
    Method
    Description
    org.apache.chemistry.opencmis.client.api.CmisObject
    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.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.ObjectType
    findAspect(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.ObjectType
    Returns a type definition with the applied aspects.
    boolean
    Returns if the given aspect is applied to this object.
    boolean
    hasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type)
    Returns if the given aspect is applied to this object.
    org.apache.chemistry.opencmis.client.api.CmisObject
    Removes one or more aspects from the 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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: AlfrescoAspects
      Returns a type definition with the applied aspects.
      Specified by:
      getTypeWithAspects in interface AlfrescoAspects
      Returns:
      an object type with all property definitions (object and aspect properties).
    • hasAspect

      public boolean hasAspect(String id)
      Description copied from interface: AlfrescoAspects
      Returns if the given aspect is applied to this object.
      Specified by:
      hasAspect in interface AlfrescoAspects
      Parameters:
      id - the aspect id
      Returns:
      true if the aspect is applied, false otherwise
    • hasAspect

      public boolean hasAspect(org.apache.chemistry.opencmis.client.api.ObjectType type)
      Description copied from interface: AlfrescoAspects
      Returns if the given aspect is applied to this object.
      Specified by:
      hasAspect in interface AlfrescoAspects
      Parameters:
      type - the aspect object type
      Returns:
      true if the aspect is applied, false otherwise
    • getAspects

      public Collection<org.apache.chemistry.opencmis.client.api.ObjectType> getAspects()
      Description copied from interface: AlfrescoAspects
      Returns all applied aspects. If no aspect is applied, an empty collection is returned.
      Specified by:
      getAspects in interface AlfrescoAspects
      Returns:
      collection of the applied aspects
    • findAspect

      public org.apache.chemistry.opencmis.client.api.ObjectType findAspect(String propertyId)
      Description copied from interface: AlfrescoAspects
      Returns the aspect type that defines the given property.
      Specified by:
      findAspect in interface AlfrescoAspects
      Parameters:
      propertyId - the property id
      Returns:
      the aspect type if the property id is defined in an applied aspect, null otherwise
    • addAspect

      public org.apache.chemistry.opencmis.client.api.CmisObject addAspect(String... id)
      Description copied from interface: AlfrescoAspects
      Adds one or more aspects to the object.
      Specified by:
      addAspect in interface AlfrescoAspects
      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: AlfrescoAspects
      Adds one or more aspects to the object.
      Specified by:
      addAspect in interface AlfrescoAspects
      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: AlfrescoAspects
      Adds an aspect and sets aspect properties.
      Specified by:
      addAspect in interface AlfrescoAspects
      Parameters:
      type - the aspect type
      properties - 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: AlfrescoAspects
      Adds aspects and sets aspect properties.
      Specified by:
      addAspect in interface AlfrescoAspects
      Parameters:
      type - the aspect types
      properties - 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: AlfrescoAspects
      Adds an aspect and sets aspect properties.
      Specified by:
      addAspect in interface AlfrescoAspects
      Parameters:
      id - the aspect type
      properties - 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: AlfrescoAspects
      Adds aspects and sets aspect properties.
      Specified by:
      addAspect in interface AlfrescoAspects
      Parameters:
      id - the aspect types
      properties - 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: AlfrescoAspects
      Removes one or more aspects from the object.
      Specified by:
      removeAspect in interface AlfrescoAspects
      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: AlfrescoAspects
      Removes one or more aspects from the object.
      Specified by:
      removeAspect in interface AlfrescoAspects
      Parameters:
      type - the aspect type or types
      Returns:
      the changed object (which may be a new object)