public interface TypeManager
Modifier and Type | Method and Description |
---|---|
void |
addTypeDefinition(TypeDefinition typeDefinition,
boolean addInheritedProperties)
Add a type to 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 |
updateTypeDefinition(TypeDefinition typeDefinition)
Modify an existing type definition.
|
TypeDefinitionContainer getTypeById(String typeId)
typeId
- id of the type definitionTypeDefinition getTypeByQueryName(String typeQueryName)
typeQueryName
- query name of the type definitionCollection<TypeDefinitionContainer> getTypeDefinitionList()
List<TypeDefinitionContainer> getRootTypes()
String getPropertyIdForQueryName(TypeDefinition typeDefinition, String propQueryName)
typeDefinition
- type definition containing query namepropQueryName
- query name of propertyvoid addTypeDefinition(TypeDefinition typeDefinition, boolean addInheritedProperties)
typeDefinition
- new type to addaddInheritedProperties
- add properties from supertype to type definitionvoid updateTypeDefinition(TypeDefinition typeDefinition)
typeDefinition
- type to be modifiedvoid deleteTypeDefinition(String typeId)
typeId
- id of type to be deletedCopyright © 2009–2017 The Apache Software Foundation. All rights reserved.