Package org.opencms.cmis
Class CmsCmisTypeManager
java.lang.Object
org.opencms.cmis.CmsCmisTypeManager
This class keeps track of all the types which should be available for a
I_CmsCmisRepository
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
CMIS type id for documents.static final String
CMIS type id for folders.static final String
Prefix for inherited properties.static final String
CMIS type id for policies.static final String
The prefix used for normal OpenCms resource properties.static final String
Prefix for dynamic properties.static final String
The prefix for special properties.static final String
The name of the propery containing the resource type name.static final String
CMIS type id for relationships.static final long
Need to refresh property data after this time. -
Constructor Summary
ConstructorDescriptionCmsCmisTypeManager
(CmsObject adminCms, List<I_CmsPropertyProvider> propertyProviders) Creates a new type manager instance. -
Method Summary
Modifier and TypeMethodDescriptionGets a list of names of OpenCms property definitions.Gets the property provider for a given key.Gets the list of all property providers.org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
Gets a type definition by id.org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList
getTypeChildren
(String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount) Collects the children of a type.org.apache.chemistry.opencmis.commons.definitions.TypeDefinition
getTypeDefinition
(String typeId) Gets the type definition for a given id in the given call context.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer>
getTypeDescendants
(String typeId, BigInteger depth, boolean includePropertyDefinitions) Gets the descendants of a type.
-
Field Details
-
DOCUMENT_TYPE_ID
CMIS type id for documents. -
FOLDER_TYPE_ID
CMIS type id for folders. -
INHERITED_PREFIX
Prefix for inherited properties.- See Also:
-
POLICY_TYPE_ID
CMIS type id for policies. -
PROPERTY_PREFIX
The prefix used for normal OpenCms resource properties.- See Also:
-
PROPERTY_PREFIX_DYNAMIC
Prefix for dynamic properties.- See Also:
-
PROPERTY_PREFIX_SPECIAL
The prefix for special properties.- See Also:
-
PROPERTY_RESOURCE_TYPE
The name of the propery containing the resource type name.- See Also:
-
RELATIONSHIP_TYPE_ID
CMIS type id for relationships. -
UPDATE_INTERVAL
Need to refresh property data after this time.- See Also:
-
-
Constructor Details
-
CmsCmisTypeManager
public CmsCmisTypeManager(CmsObject adminCms, List<I_CmsPropertyProvider> propertyProviders) throws CmsException Creates a new type manager instance.- Parameters:
adminCms
- a CMS context with admin privilegespropertyProviders
- list which will be filled with property providers- Throws:
CmsException
- if something goes wrong
-
-
Method Details
-
getCmsPropertyNames
Gets a list of names of OpenCms property definitions.- Returns:
- the list of OpenCms property names
-
getPropertyProvider
Gets the property provider for a given key.- Parameters:
key
- the property nme- Returns:
- the property provider for the given name, or null if there isn't any
-
getPropertyProviders
Gets the list of all property providers.- Returns:
- the list of property providers
-
getType
Gets a type definition by id.- Parameters:
typeId
- the type id- Returns:
- the type definition
-
getTypeChildren
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren(String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount) Collects the children of a type.- Parameters:
typeId
- the id of the typeincludePropertyDefinitions
- true if the property definitions should be includedmaxItems
- the maximum number of items to returnskipCount
- the number of items to skip- Returns:
- the children of the type
-
getTypeDefinition
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(String typeId) Gets the type definition for a given id in the given call context.- Parameters:
typeId
- the type id- Returns:
- the matching type definition
-
getTypeDescendants
public List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants(String typeId, BigInteger depth, boolean includePropertyDefinitions) Gets the descendants of a type.- Parameters:
typeId
- the parent type iddepth
- the depth up to which the descendant types should be collectedincludePropertyDefinitions
- true if the property definitions should be included- Returns:
- the descendants of the type
-