Package org.alfresco.opencmis.dictionary
Class CMISDictionaryRegistryImpl
- java.lang.Object
-
- org.alfresco.opencmis.dictionary.CMISDictionaryRegistryImpl
-
- All Implemented Interfaces:
CMISDictionaryRegistry
public class CMISDictionaryRegistryImpl extends Object implements CMISDictionaryRegistry
CMIS Dictionary registry Index of CMIS Type Definitions- Author:
- sglover
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALFRESCO_EXTENSION_NAMESPACE
protected CMISAbstractDictionaryService
cmisDictionaryService
protected static org.apache.commons.logging.Log
logger
static String
MANDATORY_ASPECT
static String
MANDATORY_ASPECTS
-
Constructor Summary
Constructors Constructor Description CMISDictionaryRegistryImpl(CMISAbstractDictionaryService cmisDictionaryService, String tenant, String parentTenant, CMISMapping cmisMapping, DictionaryService dictionaryService, CMISAbstractDictionaryService.DictionaryInitializer dictionaryInitializer)
CMISDictionaryRegistryImpl(CMISAbstractDictionaryService cmisDictionaryService, CMISMapping cmisMapping, DictionaryService dictionaryService, CMISAbstractDictionaryService.DictionaryInitializer dictionaryInitializer)
-
Method Summary
-
-
-
Field Detail
-
ALFRESCO_EXTENSION_NAMESPACE
public static final String ALFRESCO_EXTENSION_NAMESPACE
- See Also:
- Constant Field Values
-
MANDATORY_ASPECTS
public static final String MANDATORY_ASPECTS
- See Also:
- Constant Field Values
-
MANDATORY_ASPECT
public static final String MANDATORY_ASPECT
- See Also:
- Constant Field Values
-
logger
protected static final org.apache.commons.logging.Log logger
-
cmisDictionaryService
protected CMISAbstractDictionaryService cmisDictionaryService
-
-
Constructor Detail
-
CMISDictionaryRegistryImpl
public CMISDictionaryRegistryImpl(CMISAbstractDictionaryService cmisDictionaryService, CMISMapping cmisMapping, DictionaryService dictionaryService, CMISAbstractDictionaryService.DictionaryInitializer dictionaryInitializer)
-
CMISDictionaryRegistryImpl
public CMISDictionaryRegistryImpl(CMISAbstractDictionaryService cmisDictionaryService, String tenant, String parentTenant, CMISMapping cmisMapping, DictionaryService dictionaryService, CMISAbstractDictionaryService.DictionaryInitializer dictionaryInitializer)
-
-
Method Detail
-
getParent
protected CMISDictionaryRegistry getParent()
-
getTenant
public String getTenant()
- Specified by:
getTenant
in interfaceCMISDictionaryRegistry
-
getChildren
public List<TypeDefinitionWrapper> getChildren(String typeId)
- Specified by:
getChildren
in interfaceCMISDictionaryRegistry
-
setChildren
public void setChildren(String typeId, List<TypeDefinitionWrapper> children)
- Specified by:
setChildren
in interfaceCMISDictionaryRegistry
-
addChild
public void addChild(String typeId, TypeDefinitionWrapper child)
- Specified by:
addChild
in interfaceCMISDictionaryRegistry
-
getTypeDefByTypeId
public TypeDefinitionWrapper getTypeDefByTypeId(String typeId)
- Specified by:
getTypeDefByTypeId
in interfaceCMISDictionaryRegistry
-
getTypeDefByTypeId
public TypeDefinitionWrapper getTypeDefByTypeId(String typeId, boolean includeParent)
- Specified by:
getTypeDefByTypeId
in interfaceCMISDictionaryRegistry
-
getAssocDefByQName
public TypeDefinitionWrapper getAssocDefByQName(QName qname)
- Specified by:
getAssocDefByQName
in interfaceCMISDictionaryRegistry
-
getTypeDefByQueryName
public TypeDefinitionWrapper getTypeDefByQueryName(Object queryName)
- Specified by:
getTypeDefByQueryName
in interfaceCMISDictionaryRegistry
-
getTypeDefByQName
public TypeDefinitionWrapper getTypeDefByQName(QName qname)
- Specified by:
getTypeDefByQName
in interfaceCMISDictionaryRegistry
-
getPropDefByPropId
public PropertyDefinitionWrapper getPropDefByPropId(String propId)
- Specified by:
getPropDefByPropId
in interfaceCMISDictionaryRegistry
-
getPropDefByQueryName
public PropertyDefinitionWrapper getPropDefByQueryName(Object queryName)
- Specified by:
getPropDefByQueryName
in interfaceCMISDictionaryRegistry
-
getTypeDefs
public Collection<AbstractTypeDefinitionWrapper> getTypeDefs()
- Specified by:
getTypeDefs
in interfaceCMISDictionaryRegistry
-
getTypeDefs
public Collection<AbstractTypeDefinitionWrapper> getTypeDefs(boolean includeParent)
- Specified by:
getTypeDefs
in interfaceCMISDictionaryRegistry
-
getAssocDefs
public Collection<AbstractTypeDefinitionWrapper> getAssocDefs()
- Specified by:
getAssocDefs
in interfaceCMISDictionaryRegistry
-
getAssocDefs
public Collection<AbstractTypeDefinitionWrapper> getAssocDefs(boolean includeParent)
- Specified by:
getAssocDefs
in interfaceCMISDictionaryRegistry
-
addModel
public void addModel(CompiledModel model)
- Specified by:
addModel
in interfaceCMISDictionaryRegistry
-
updateModel
public void updateModel(CompiledModel model)
- Specified by:
updateModel
in interfaceCMISDictionaryRegistry
-
removeModel
public void removeModel(CompiledModel model)
- Specified by:
removeModel
in interfaceCMISDictionaryRegistry
-
init
public void init()
-
getBaseTypes
public List<TypeDefinitionWrapper> getBaseTypes()
- Specified by:
getBaseTypes
in interfaceCMISDictionaryRegistry
-
getBaseTypes
public List<TypeDefinitionWrapper> getBaseTypes(boolean includeParent)
- Specified by:
getBaseTypes
in interfaceCMISDictionaryRegistry
-
registerTypeDefinition
public void registerTypeDefinition(AbstractTypeDefinitionWrapper typeDef)
Register type definition.- Specified by:
registerTypeDefinition
in interfaceCMISDictionaryRegistry
- Parameters:
typeDef
- AbstractTypeDefinitionWrapper
-
registerPropertyDefinitions
public void registerPropertyDefinitions(AbstractTypeDefinitionWrapper typeDef)
Register property definitions.- Parameters:
typeDef
- AbstractTypeDefinitionWrapper
-
-