Class CmsCmisTypeManager

java.lang.Object
org.opencms.cmis.CmsCmisTypeManager

public class CmsCmisTypeManager extends Object
This class keeps track of all the types which should be available for a I_CmsCmisRepository.
  • Field Details

  • Constructor Details

  • Method Details

    • getCmsPropertyNames

      Gets a list of names of OpenCms property definitions.

      Returns:
      the list of OpenCms property names
    • getPropertyProvider

      Gets the property provider for a given key.

      Parameters:
      key - the property nme
      Returns:
      the property provider for the given name, or null if there isn't any
    • getPropertyProviders

      Gets the list of all property providers.

      Returns:
      the list of property providers
    • getType

      public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getType(String typeId)
      Gets a type definition by id.

      Parameters:
      typeId - the type id
      Returns:
      the type definition
    • getTypeChildren

      public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren(String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount)
      Collects the children of a type.

      Parameters:
      typeId - the id of the type
      includePropertyDefinitions - true if the property definitions should be included
      maxItems - the maximum number of items to return
      skipCount - the number of items to skip
      Returns:
      the children of the type
    • getTypeDefinition

      public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(String typeId)
      Gets the type definition for a given id in the given call context.

      Parameters:
      typeId - the type id
      Returns:
      the matching type definition
    • getTypeDescendants

      public List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants(String typeId, BigInteger depth, boolean includePropertyDefinitions)
      Gets the descendants of a type.

      Parameters:
      typeId - the parent type id
      depth - the depth up to which the descendant types should be collected
      includePropertyDefinitions - true if the property definitions should be included
      Returns:
      the descendants of the type