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 StringALFRESCO_EXTENSION_NAMESPACEprotected CMISAbstractDictionaryServicecmisDictionaryServiceprotected static org.apache.commons.logging.Logloggerstatic StringMANDATORY_ASPECTstatic StringMANDATORY_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:
getTenantin interfaceCMISDictionaryRegistry
-
getChildren
public List<TypeDefinitionWrapper> getChildren(String typeId)
- Specified by:
getChildrenin interfaceCMISDictionaryRegistry
-
setChildren
public void setChildren(String typeId, List<TypeDefinitionWrapper> children)
- Specified by:
setChildrenin interfaceCMISDictionaryRegistry
-
addChild
public void addChild(String typeId, TypeDefinitionWrapper child)
- Specified by:
addChildin interfaceCMISDictionaryRegistry
-
getTypeDefByTypeId
public TypeDefinitionWrapper getTypeDefByTypeId(String typeId)
- Specified by:
getTypeDefByTypeIdin interfaceCMISDictionaryRegistry
-
getTypeDefByTypeId
public TypeDefinitionWrapper getTypeDefByTypeId(String typeId, boolean includeParent)
- Specified by:
getTypeDefByTypeIdin interfaceCMISDictionaryRegistry
-
getAssocDefByQName
public TypeDefinitionWrapper getAssocDefByQName(QName qname)
- Specified by:
getAssocDefByQNamein interfaceCMISDictionaryRegistry
-
getTypeDefByQueryName
public TypeDefinitionWrapper getTypeDefByQueryName(Object queryName)
- Specified by:
getTypeDefByQueryNamein interfaceCMISDictionaryRegistry
-
getTypeDefByQName
public TypeDefinitionWrapper getTypeDefByQName(QName qname)
- Specified by:
getTypeDefByQNamein interfaceCMISDictionaryRegistry
-
getPropDefByPropId
public PropertyDefinitionWrapper getPropDefByPropId(String propId)
- Specified by:
getPropDefByPropIdin interfaceCMISDictionaryRegistry
-
getPropDefByQueryName
public PropertyDefinitionWrapper getPropDefByQueryName(Object queryName)
- Specified by:
getPropDefByQueryNamein interfaceCMISDictionaryRegistry
-
getTypeDefs
public Collection<AbstractTypeDefinitionWrapper> getTypeDefs()
- Specified by:
getTypeDefsin interfaceCMISDictionaryRegistry
-
getTypeDefs
public Collection<AbstractTypeDefinitionWrapper> getTypeDefs(boolean includeParent)
- Specified by:
getTypeDefsin interfaceCMISDictionaryRegistry
-
getAssocDefs
public Collection<AbstractTypeDefinitionWrapper> getAssocDefs()
- Specified by:
getAssocDefsin interfaceCMISDictionaryRegistry
-
getAssocDefs
public Collection<AbstractTypeDefinitionWrapper> getAssocDefs(boolean includeParent)
- Specified by:
getAssocDefsin interfaceCMISDictionaryRegistry
-
addModel
public void addModel(CompiledModel model)
- Specified by:
addModelin interfaceCMISDictionaryRegistry
-
updateModel
public void updateModel(CompiledModel model)
- Specified by:
updateModelin interfaceCMISDictionaryRegistry
-
removeModel
public void removeModel(CompiledModel model)
- Specified by:
removeModelin interfaceCMISDictionaryRegistry
-
init
public void init()
-
getBaseTypes
public List<TypeDefinitionWrapper> getBaseTypes()
- Specified by:
getBaseTypesin interfaceCMISDictionaryRegistry
-
getBaseTypes
public List<TypeDefinitionWrapper> getBaseTypes(boolean includeParent)
- Specified by:
getBaseTypesin interfaceCMISDictionaryRegistry
-
registerTypeDefinition
public void registerTypeDefinition(AbstractTypeDefinitionWrapper typeDef)
Register type definition.- Specified by:
registerTypeDefinitionin interfaceCMISDictionaryRegistry- Parameters:
typeDef- AbstractTypeDefinitionWrapper
-
registerPropertyDefinitions
public void registerPropertyDefinitions(AbstractTypeDefinitionWrapper typeDef)
Register property definitions.- Parameters:
typeDef- AbstractTypeDefinitionWrapper
-
-