Package org.silverpeas.cmis
Class SilverpeasCmisTypeManager
- java.lang.Object
-
- org.silverpeas.cmis.SilverpeasCmisTypeManager
-
-
Constructor Summary
Constructors Constructor Description SilverpeasCmisTypeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList
getSubTypeDefinitionsOf(String typeId, boolean includePropertyDefinitions, Paging paging)
Gets the definition of the subtypes of the specified type.org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getTypeDefinition(String typeId)
Gets the definition of the specified type.
-
-
-
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.
-
-