public class TypeManagerImpl extends Object implements TypeManager
| Constructor and Description |
|---|
TypeManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTypeDefinition(TypeDefinition cmisType,
boolean addInheritedProperties)
Add a type to the type system.
|
void |
clearTypeSystem()
Remove all types from the type system.
|
void |
deleteTypeDefinition(String typeId)
Delete a type from the type system.
|
String |
getPropertyIdForQueryName(TypeDefinition typeDefinition,
String propQueryName)
retrieve the property id from a type for a given property query name
|
List<TypeDefinitionContainer> |
getRootTypes()
return a list of the root types as defined in the CMIS spec (for
document, folder, policy and relationship
Note: This method is not needed for the query parser.
|
TypeDefinitionContainer |
getTypeById(String typeId)
return a type definition from the type definition id
|
TypeDefinition |
getTypeByQueryName(String typeQueryName)
return a type definition from the type query name or null if not found
|
Collection<TypeDefinitionContainer> |
getTypeDefinitionList()
return a list of all types known in this repository
Note: This method is not needed for the query parser.
|
void |
initTypeSystem(List<TypeDefinition> typesList,
boolean createCmisDefaultTypes)
Initialize the type system with the given types.
|
void |
updateTypeDefinition(TypeDefinition typeDefinition)
Modify an existing type definition.
|
public TypeDefinitionContainer getTypeById(String typeId)
TypeManagergetTypeById in interface TypeManagertypeId - id of the type definitionpublic TypeDefinition getTypeByQueryName(String typeQueryName)
TypeManagergetTypeByQueryName in interface TypeManagertypeQueryName - query name of the type definitionpublic Collection<TypeDefinitionContainer> getTypeDefinitionList()
TypeManagergetTypeDefinitionList in interface TypeManagerpublic List<TypeDefinitionContainer> getRootTypes()
TypeManagergetRootTypes in interface TypeManagerpublic void initTypeSystem(List<TypeDefinition> typesList, boolean createCmisDefaultTypes)
typesList - list of types to add to the repositorycreateCmisDefaultTypes - indicates if CMIS base types should be added to listpublic void addTypeDefinition(TypeDefinition cmisType, boolean addInheritedProperties)
TypeManageraddTypeDefinition in interface TypeManagercmisType - new type to addaddInheritedProperties - add properties from supertype to type definitionpublic void updateTypeDefinition(TypeDefinition typeDefinition)
TypeManagerupdateTypeDefinition in interface TypeManagertypeDefinition - type to be modifiedpublic void deleteTypeDefinition(String typeId)
TypeManagerdeleteTypeDefinition in interface TypeManagertypeId - id of type to be deletedpublic void clearTypeSystem()
repositoryId - public String getPropertyIdForQueryName(TypeDefinition typeDefinition, String propQueryName)
TypeManagergetPropertyIdForQueryName in interface TypeManagertypeDefinition - type definition containing query namepropQueryName - query name of propertyCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.