|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.cmis.CmsCmisTypeManager
public class CmsCmisTypeManager
This class keeps track of all the types which should be available for a I_CmsCmisRepository.
| Field Summary | |
|---|---|
static java.lang.String |
DOCUMENT_TYPE_ID
CMIS type id for documents. |
static java.lang.String |
FOLDER_TYPE_ID
CMIS type id for folders. |
static java.lang.String |
INHERITED_PREFIX
Prefix for inherited properties. |
static java.lang.String |
POLICY_TYPE_ID
CMIS type id for policies. |
static java.lang.String |
PROPERTY_PREFIX
The prefix used for normal OpenCms resource properties. |
static java.lang.String |
PROPERTY_PREFIX_DYNAMIC
Prefix for dynamic properties. |
static java.lang.String |
PROPERTY_PREFIX_SPECIAL
The prefix for special properties. |
static java.lang.String |
PROPERTY_RESOURCE_TYPE
The name of the propery containing the resource type name. |
static java.lang.String |
RELATIONSHIP_TYPE_ID
CMIS type id for relationships. |
static long |
UPDATE_INTERVAL
Need to refresh property data after this time. |
| Constructor Summary | |
|---|---|
CmsCmisTypeManager(CmsObject adminCms,
java.util.List<I_CmsPropertyProvider> propertyProviders)
Creates a new type manager instance. |
|
| Method Summary | |
|---|---|
java.util.List<java.lang.String> |
getCmsPropertyNames()
Gets a list of names of OpenCms property definitions. |
I_CmsPropertyProvider |
getPropertyProvider(java.lang.String key)
Gets the property provider for a given key. |
java.util.List<I_CmsPropertyProvider> |
getPropertyProviders()
Gets the list of all property providers. |
org.apache.chemistry.opencmis.commons.definitions.TypeDefinition |
getType(java.lang.String typeId)
Gets a type definition by id. |
org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList |
getTypeChildren(java.lang.String typeId,
boolean includePropertyDefinitions,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
Collects the children of a type. |
org.apache.chemistry.opencmis.commons.definitions.TypeDefinition |
getTypeDefinition(java.lang.String typeId)
Gets the type definition for a given id in the given call context. |
java.util.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> |
getTypeDescendants(java.lang.String typeId,
java.math.BigInteger depth,
boolean includePropertyDefinitions)
Gets the descendants of a type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DOCUMENT_TYPE_ID
public static final java.lang.String FOLDER_TYPE_ID
public static final java.lang.String INHERITED_PREFIX
public static final java.lang.String POLICY_TYPE_ID
public static final java.lang.String PROPERTY_PREFIX
public static final java.lang.String PROPERTY_PREFIX_DYNAMIC
public static final java.lang.String PROPERTY_PREFIX_SPECIAL
public static final java.lang.String PROPERTY_RESOURCE_TYPE
public static final java.lang.String RELATIONSHIP_TYPE_ID
public static final long UPDATE_INTERVAL
| Constructor Detail |
|---|
public CmsCmisTypeManager(CmsObject adminCms,
java.util.List<I_CmsPropertyProvider> propertyProviders)
throws CmsException
adminCms - a CMS context with admin privilegespropertyProviders - list which will be filled with property providers
CmsException - if something goes wrong| Method Detail |
|---|
public java.util.List<java.lang.String> getCmsPropertyNames()
public I_CmsPropertyProvider getPropertyProvider(java.lang.String key)
key - the property nme
public java.util.List<I_CmsPropertyProvider> getPropertyProviders()
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getType(java.lang.String typeId)
typeId - the type id
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionList getTypeChildren(java.lang.String typeId,
boolean includePropertyDefinitions,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
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
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinition getTypeDefinition(java.lang.String typeId)
typeId - the type id
public java.util.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDescendants(java.lang.String typeId,
java.math.BigInteger depth,
boolean includePropertyDefinitions)
typeId - the parent type iddepth - the depth up to which the descendant types should be collectedincludePropertyDefinitions - true if the property definitions should be included
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||