public class TypeManagerImpl extends Object implements TypeManagerCreatable
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)
Remove a type from a 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
|
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
|
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 repositorypublic void addTypeDefinition(TypeDefinition cmisType, boolean addInheritedProperties)
addTypeDefinition
in interface TypeManagerCreatable
repositoryId
- repository to which the type is addedcmisType
- new type to addpublic void updateTypeDefinition(TypeDefinition typeDefinition)
TypeManagerCreatable
updateTypeDefinition
in interface TypeManagerCreatable
typeDefinition
- type to be modifiedpublic void deleteTypeDefinition(String typeId)
deleteTypeDefinition
in interface TypeManagerCreatable
typeId
- public 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-2013 The Apache Software Foundation. All Rights Reserved.