Package com.logicaldoc.cmis
Class TypeManager
java.lang.Object
com.logicaldoc.cmis.TypeManager
Type Manager.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
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 Details
-
DOCUMENT_TYPE_ID
-
FOLDER_TYPE_ID
-
RELATIONSHIP_TYPE_ID
-
POLICY_TYPE_ID
-
WORKSPACE_TYPE_ID
- See Also:
-
NAMESPACE
- See Also:
-
PROP_LANGUAGE
- See Also:
-
PROP_RATING
- See Also:
-
PROP_WORKFLOW_STATUS
- See Also:
-
PROP_CUSTOMID
- See Also:
-
PROP_TAGS
- See Also:
-
PROP_DESCRIPTION
- See Also:
-
PROP_FILEVERSION
- See Also:
-
PROP_VERSION
- See Also:
-
PROP_TYPE
- See Also:
-
PROP_TEMPLATE
- See Also:
-
PROP_EXT
- See Also:
-
-
Constructor Details
-
TypeManager
public TypeManager()
-
-
Method Details
-
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
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
-