Class TypeManager


  • public class TypeManager
    extends Object
    Type Manager.
    • Constructor Detail

      • TypeManager

        public TypeManager()
    • Method Detail

      • addType

        public boolean addType​(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
        Adds a type to collection with inheriting base type properties
        Parameters:
        type - the type
        Returns:
        if the type has been added
      • getTypesChildren

        public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypesChildren​(org.apache.chemistry.opencmis.commons.server.CallContext context,
                                                                                                     String typeId,
                                                                                                     boolean includePropertyDefinitions,
                                                                                                     BigInteger maxItems,
                                                                                                     BigInteger skipCount)
        CMIS getTypesChildren
        Parameters:
        context - the call context
        typeId - identifier of the type
        includePropertyDefinitions - if the property definition must be included
        maxItems - maximum number of items
        skipCount - if the counting of children must be avoided
        Returns:
        list of definitions
      • getTypesDescendants

        public List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypesDescendants​(org.apache.chemistry.opencmis.commons.server.CallContext context,
                                                                                                                   String typeId,
                                                                                                                   BigInteger depth,
                                                                                                                   Boolean includePropertyDefinitions)
        CMIS getTypesDescendants
        Parameters:
        context - call context
        typeId - id of the type
        depth - depth specification
        includePropertyDefinitions - if the properties definition must be included
        Returns:
        list of definitions
      • getType

        public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getType​(String typeId)
        For internal use
        Parameters:
        typeId - identifier of the type
        Returns:
        the type definition
      • getTypeDefinition

        public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition​(org.apache.chemistry.opencmis.commons.server.CallContext context,
                                                                                                  String typeId)
        CMIS getTypeDefinition
        Parameters:
        context - call context
        typeId - identifier of the type
        Returns:
        definition of the type