org.apache.chemistry.opencmis.jcr
Class TypeManager

java.lang.Object
  extended by org.apache.chemistry.opencmis.jcr.TypeManager

public class TypeManager
extends Object

Type Manager.


Field Summary
static String DOCUMENT_TYPE_ID
           
static String DOCUMENT_UNVERSIONED_TYPE_ID
           
static String FOLDER_TYPE_ID
           
static String POLICY_TYPE_ID
           
static String RELATIONSHIP_TYPE_ID
           
 
Constructor Summary
TypeManager()
           
 
Method Summary
 boolean addType(TypeDefinition type)
          Adds a type to collection with inheriting base type properties.
 TypeDefinitionList getTypeChildren(String typeId, boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount)
          See CMIS 1.0 section 2.2.2.3 getTypeChildren
 TypeDefinition getTypeDefinition(String typeId)
           
 List<TypeDefinitionContainer> getTypesDescendants(String typeId, BigInteger depth, Boolean includePropertyDefinitions)
          See CMIS 1.0 section 2.2.2.4 getTypeDescendants
static boolean isVersionable(TypeDefinition typeDef)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_TYPE_ID

public static final String DOCUMENT_TYPE_ID
See Also:
Constant Field Values

DOCUMENT_UNVERSIONED_TYPE_ID

public static final String DOCUMENT_UNVERSIONED_TYPE_ID
See Also:
Constant Field Values

FOLDER_TYPE_ID

public static final String FOLDER_TYPE_ID
See Also:
Constant Field Values

RELATIONSHIP_TYPE_ID

public static final String RELATIONSHIP_TYPE_ID
See Also:
Constant Field Values

POLICY_TYPE_ID

public static final String POLICY_TYPE_ID
See Also:
Constant Field Values
Constructor Detail

TypeManager

public TypeManager()
Method Detail

addType

public boolean addType(TypeDefinition type)
Adds a type to collection with inheriting base type properties.

Parameters:
type - type to add
Returns:
true iff the type was successfully added

getTypeChildren

public TypeDefinitionList getTypeChildren(String typeId,
                                          boolean includePropertyDefinitions,
                                          BigInteger maxItems,
                                          BigInteger skipCount)
See CMIS 1.0 section 2.2.2.3 getTypeChildren


getTypesDescendants

public List<TypeDefinitionContainer> getTypesDescendants(String typeId,
                                                         BigInteger depth,
                                                         Boolean includePropertyDefinitions)
See CMIS 1.0 section 2.2.2.4 getTypeDescendants


getTypeDefinition

public TypeDefinition getTypeDefinition(String typeId)

isVersionable

public static boolean isVersionable(TypeDefinition typeDef)


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.