|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.inmemory.TypeManagerImpl
public class TypeManagerImpl
Class that manages a type system for a repository types can be added, the inheritance can be managed and type can be retrieved for a given type id.
Constructor Summary | |
---|---|
TypeManagerImpl()
|
Method Summary | |
---|---|
void |
addTypeDefinition(TypeDefinition cmisType)
Add a type to the type system. |
void |
clearTypeSystem()
Remove all types 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 |
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)
Initialize the type system with the given types. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TypeManagerImpl()
Method Detail |
---|
public TypeDefinitionContainer getTypeById(String typeId)
TypeManager
getTypeById
in interface TypeManager
typeId
- id of the type definition
public TypeDefinition getTypeByQueryName(String typeQueryName)
TypeManager
getTypeByQueryName
in interface TypeManager
typeQueryName
- query name of the type definition
public Collection<TypeDefinitionContainer> getTypeDefinitionList()
TypeManager
getTypeDefinitionList
in interface TypeManager
public List<TypeDefinitionContainer> getRootTypes()
TypeManager
getRootTypes
in interface TypeManager
public void initTypeSystem(List<TypeDefinition> typesList)
typesList
- list of types to add to the repositorypublic void addTypeDefinition(TypeDefinition cmisType)
repositoryId
- repository to which the type is addedcmisType
- new type to addpublic void clearTypeSystem()
repositoryId
- public String getPropertyIdForQueryName(TypeDefinition typeDefinition, String propQueryName)
TypeManager
getPropertyIdForQueryName
in interface TypeManager
typeDefinition
- type definition containing query namepropQueryName
- query name of property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |