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)
TypeManager
getTypeById
in interface TypeManager
typeId
- id of the type definitionpublic TypeDefinition getTypeByQueryName(String typeQueryName)
TypeManager
getTypeByQueryName
in interface TypeManager
typeQueryName
- query name of the type definitionpublic Collection<TypeDefinitionContainer> getTypeDefinitionList()
TypeManager
getTypeDefinitionList
in interface TypeManager
public List<TypeDefinitionContainer> getRootTypes()
TypeManager
getRootTypes
in interface TypeManager
public 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)
TypeManager
addTypeDefinition
in interface TypeManager
cmisType
- new type to addaddInheritedProperties
- add properties from supertype to type definitionpublic void updateTypeDefinition(TypeDefinition typeDefinition)
TypeManager
updateTypeDefinition
in interface TypeManager
typeDefinition
- type to be modifiedpublic void deleteTypeDefinition(String typeId)
TypeManager
deleteTypeDefinition
in interface TypeManager
typeId
- id of type to be deletedpublic void clearTypeSystem()
repositoryId
- public String getPropertyIdForQueryName(TypeDefinition typeDefinition, String propQueryName)
TypeManager
getPropertyIdForQueryName
in interface TypeManager
typeDefinition
- type definition containing query namepropQueryName
- query name of propertyCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.