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