Package com.logicaldoc.cmis
Class TypeManager
- java.lang.Object
 - 
- com.logicaldoc.cmis.TypeManager
 
 
- 
public class TypeManager extends Object
Type Manager. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static StringDOCUMENT_TYPE_IDstatic StringFOLDER_TYPE_IDstatic StringNAMESPACEstatic StringPOLICY_TYPE_IDstatic StringPROP_CUSTOMIDstatic StringPROP_DESCRIPTIONstatic StringPROP_EXTstatic StringPROP_FILEVERSIONstatic StringPROP_LANGUAGEstatic StringPROP_RATINGstatic StringPROP_TAGSstatic StringPROP_TEMPLATEstatic StringPROP_TYPEstatic StringPROP_VERSIONstatic StringPROP_WORKFLOW_STATUSstatic StringRELATIONSHIP_TYPE_IDstatic StringWORKSPACE_TYPE_ID 
- 
Constructor Summary
Constructors Constructor Description TypeManager() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddType(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)Adds a type to collection with inheriting base type propertiesorg.apache.chemistry.opencmis.commons.definitions.TypeDefinitiongetType(String typeId)For internal useorg.apache.chemistry.opencmis.commons.definitions.TypeDefinitiongetTypeDefinition(org.apache.chemistry.opencmis.commons.server.CallContext context, String typeId)CMIS getTypeDefinitionorg.apache.chemistry.opencmis.commons.definitions.TypeDefinitionListgetTypesChildren(org.apache.chemistry.opencmis.commons.server.CallContext context, String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount)CMIS getTypesChildrenList<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer>getTypesDescendants(org.apache.chemistry.opencmis.commons.server.CallContext context, String typeId, BigInteger depth, Boolean includePropertyDefinitions)CMIS getTypesDescendants 
 - 
 
- 
- 
Field Detail
- 
DOCUMENT_TYPE_ID
public static final String DOCUMENT_TYPE_ID
 
- 
FOLDER_TYPE_ID
public static final String FOLDER_TYPE_ID
 
- 
RELATIONSHIP_TYPE_ID
public static final String RELATIONSHIP_TYPE_ID
 
- 
POLICY_TYPE_ID
public static final String POLICY_TYPE_ID
 
- 
WORKSPACE_TYPE_ID
public static final String WORKSPACE_TYPE_ID
- See Also:
 - Constant Field Values
 
 
- 
NAMESPACE
public static final String NAMESPACE
- See Also:
 - Constant Field Values
 
 
- 
PROP_LANGUAGE
public static final String PROP_LANGUAGE
- See Also:
 - Constant Field Values
 
 
- 
PROP_RATING
public static final String PROP_RATING
- See Also:
 - Constant Field Values
 
 
- 
PROP_WORKFLOW_STATUS
public static final String PROP_WORKFLOW_STATUS
- See Also:
 - Constant Field Values
 
 
- 
PROP_CUSTOMID
public static final String PROP_CUSTOMID
- See Also:
 - Constant Field Values
 
 
- 
PROP_TAGS
public static final String PROP_TAGS
- See Also:
 - Constant Field Values
 
 
- 
PROP_DESCRIPTION
public static final String PROP_DESCRIPTION
- See Also:
 - Constant Field Values
 
 
- 
PROP_FILEVERSION
public static final String PROP_FILEVERSION
- See Also:
 - Constant Field Values
 
 
- 
PROP_VERSION
public static final String PROP_VERSION
- See Also:
 - Constant Field Values
 
 
- 
PROP_TYPE
public static final String PROP_TYPE
- See Also:
 - Constant Field Values
 
 
- 
PROP_TEMPLATE
public static final String PROP_TEMPLATE
- See Also:
 - Constant Field Values
 
 
- 
PROP_EXT
public static final String PROP_EXT
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
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 contexttypeId- identifier of the typeincludePropertyDefinitions- if the property definition must be includedmaxItems- maximum number of itemsskipCount- 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 contexttypeId- id of the typedepth- depth specificationincludePropertyDefinitions- 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 contexttypeId- identifier of the type- Returns:
 - definition of the type
 
 
 - 
 
 -