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 String
DOCUMENT_TYPE_ID
static String
FOLDER_TYPE_ID
static String
NAMESPACE
static String
POLICY_TYPE_ID
static String
PROP_CUSTOMID
static String
PROP_DESCRIPTION
static String
PROP_EXT
static String
PROP_FILEVERSION
static String
PROP_LANGUAGE
static String
PROP_RATING
static String
PROP_TAGS
static String
PROP_TEMPLATE
static String
PROP_TYPE
static String
PROP_VERSION
static String
PROP_WORKFLOW_STATUS
static String
RELATIONSHIP_TYPE_ID
static String
WORKSPACE_TYPE_ID
-
Constructor Summary
Constructors Constructor Description TypeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addType(org.apache.chemistry.opencmis.commons.definitions.TypeDefinition type)
Adds a type to collection with inheriting base type propertiesorg.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getType(String typeId)
For internal useorg.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getTypeDefinition(org.apache.chemistry.opencmis.commons.server.CallContext context, String typeId)
CMIS getTypeDefinitionorg.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList
getTypesChildren(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
- optional number of potential results that the repository MUST skip/page over before returning any results (default is 0)- 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
-
-