Class SilverpeasCmisTypeManager


  • @Service
    public class SilverpeasCmisTypeManager
    extends Object
    The type manager is responsible to maintain a mapping between the business object types in Silverpeas and those of the CMIS object domain's.
    Author:
    mmoquillon
    • Constructor Detail

      • SilverpeasCmisTypeManager

        public SilverpeasCmisTypeManager()
    • Method Detail

      • getSubTypeDefinitionsOf

        public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getSubTypeDefinitionsOf​(String typeId,
                                                                                                            boolean includePropertyDefinitions,
                                                                                                            Paging paging)
        Gets the definition of the subtypes of the specified type. If the specified type is null then gets the definition of all of the base types managed by Silverpeas.
        Parameters:
        typeId - the unique identifier of a type.
        includePropertyDefinitions - a boolean indicating if the types' properties have to be included.
        paging - paging statements on the results to return.
        Returns:
        a list of type definitions or an empty list if either the specified type has no subtypes or no more remaining subtypes after the skipCount items.
      • getTypeDefinition

        public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition​(String typeId)
        Gets the definition of the specified type.
        Parameters:
        typeId - the unique identifier of a type.
        Returns:
        a type definition
        Throws:
        org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException - if no such type is supported in the Silverpeas CMIS implementation.
      • getAllowedChildObjectTypeIds

        public List<String> getAllowedChildObjectTypeIds​(String typeId)
        Gets the types that are allowed for the objects to be a child of the objects whose the type is given.
        Parameters:
        typeId - the unique identifier of a type.
        Returns:
        a list of types identifiers or an empty list if either the specified type isn't a folder as base type or if there is no constrains against the supported types for children.