Package org.alfresco.repo.dictionary
Class AbstractDictionaryRegistry
- java.lang.Object
-
- org.alfresco.repo.dictionary.AbstractDictionaryRegistry
-
- All Implemented Interfaces:
DictionaryRegistry
- Direct Known Subclasses:
CoreDictionaryRegistryImpl
,TenantDictionaryRegistryImpl
public abstract class AbstractDictionaryRegistry extends Object implements DictionaryRegistry
- Author:
- sglover
-
-
Field Summary
Fields Modifier and Type Field Description protected DictionaryDAO
dictionaryDAO
protected static org.apache.commons.logging.Log
logger
-
Constructor Summary
Constructors Constructor Description AbstractDictionaryRegistry(DictionaryDAO dictionaryDAO)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.dictionary.DictionaryRegistry
getTenantDomain
-
-
-
-
Field Detail
-
logger
protected static final org.apache.commons.logging.Log logger
-
dictionaryDAO
protected DictionaryDAO dictionaryDAO
-
-
Constructor Detail
-
AbstractDictionaryRegistry
public AbstractDictionaryRegistry(DictionaryDAO dictionaryDAO)
-
-
Method Detail
-
clear
public void clear()
- Specified by:
clear
in interfaceDictionaryRegistry
-
getUriToModels
public Map<String,List<CompiledModel>> getUriToModels()
- Specified by:
getUriToModels
in interfaceDictionaryRegistry
-
getCompiledModels
public Map<QName,CompiledModel> getCompiledModels(boolean includeInherited)
- Specified by:
getCompiledModels
in interfaceDictionaryRegistry
-
getModelsForUri
public List<CompiledModel> getModelsForUri(String uri)
- Specified by:
getModelsForUri
in interfaceDictionaryRegistry
-
putModel
public QName putModel(CompiledModel model)
- Specified by:
putModel
in interfaceDictionaryRegistry
-
getModel
public CompiledModel getModel(QName modelName)
- Specified by:
getModel
in interfaceDictionaryRegistry
-
modelExists
public boolean modelExists(QName modelName)
- Specified by:
modelExists
in interfaceDictionaryRegistry
-
removeModel
public void removeModel(QName modelName)
- Specified by:
removeModel
in interfaceDictionaryRegistry
-
removeModelImpl
protected CompiledModel removeModelImpl(QName modelName)
-
getModelImpl
protected CompiledModel getModelImpl(QName modelName)
-
getModelsForUriImpl
protected List<CompiledModel> getModelsForUriImpl(String uri)
-
unmapUriToModel
protected void unmapUriToModel(String uri, CompiledModel model)
-
mapUriToModel
protected void mapUriToModel(String uri, CompiledModel model)
-
putModelImpl
protected QName putModelImpl(CompiledModel model)
-
getAspect
public AspectDefinition getAspect(QName aspectName)
- Specified by:
getAspect
in interfaceDictionaryRegistry
-
getAspectImpl
protected AspectDefinition getAspectImpl(QName aspectName)
-
getAssociation
public AssociationDefinition getAssociation(QName assocName)
- Specified by:
getAssociation
in interfaceDictionaryRegistry
-
getAssociationImpl
protected AssociationDefinition getAssociationImpl(QName assocName)
-
getClass
public ClassDefinition getClass(QName className)
- Specified by:
getClass
in interfaceDictionaryRegistry
-
getClassImpl
protected ClassDefinition getClassImpl(QName className)
-
getProperty
public PropertyDefinition getProperty(QName propertyName)
- Specified by:
getProperty
in interfaceDictionaryRegistry
-
getPropertyImpl
protected PropertyDefinition getPropertyImpl(QName propertyName)
-
getType
public TypeDefinition getType(QName typeName)
- Specified by:
getType
in interfaceDictionaryRegistry
-
getTypeImpl
protected TypeDefinition getTypeImpl(QName typeName)
-
getConstraint
public ConstraintDefinition getConstraint(QName constraintQName)
- Specified by:
getConstraint
in interfaceDictionaryRegistry
-
getConstraintImpl
protected ConstraintDefinition getConstraintImpl(QName constraintQName)
-
getDataType
public DataTypeDefinition getDataType(QName typeName)
- Specified by:
getDataType
in interfaceDictionaryRegistry
-
getDataTypeImp
protected DataTypeDefinition getDataTypeImp(QName typeName)
-
getDataType
public DataTypeDefinition getDataType(Class javaClass)
- Specified by:
getDataType
in interfaceDictionaryRegistry
-
getDataTypeImpl
protected DataTypeDefinition getDataTypeImpl(Class javaClass)
-
getPrefixesCache
public Map<String,String> getPrefixesCache()
- Specified by:
getPrefixesCache
in interfaceDictionaryRegistry
-
getUrisCache
public List<String> getUrisCache()
- Specified by:
getUrisCache
in interfaceDictionaryRegistry
-
getPrefixes
public Collection<String> getPrefixes(String URI)
- Specified by:
getPrefixes
in interfaceDictionaryRegistry
-
getPrefixesImpl
protected Collection<String> getPrefixesImpl(String URI)
-
addURI
public void addURI(String uri)
- Specified by:
addURI
in interfaceDictionaryRegistry
-
addURIImpl
protected void addURIImpl(String uri)
-
hasURI
public boolean hasURI(String uri)
- Specified by:
hasURI
in interfaceDictionaryRegistry
-
addPrefix
public void addPrefix(String prefix, String uri)
- Specified by:
addPrefix
in interfaceDictionaryRegistry
-
hasPrefix
public boolean hasPrefix(String prefix)
- Specified by:
hasPrefix
in interfaceDictionaryRegistry
-
removeURI
public void removeURI(String uri)
- Specified by:
removeURI
in interfaceDictionaryRegistry
-
removePrefix
public void removePrefix(String prefix)
- Specified by:
removePrefix
in interfaceDictionaryRegistry
-
removeURIImpl
protected boolean removeURIImpl(String uri)
-
removePrefixImpl
protected boolean removePrefixImpl(String prefix)
-
getTypes
public Collection<QName> getTypes(boolean includeInherited)
- Specified by:
getTypes
in interfaceDictionaryRegistry
-
getAssociations
public Collection<QName> getAssociations(boolean includeInherited)
- Specified by:
getAssociations
in interfaceDictionaryRegistry
-
getAspects
public Collection<QName> getAspects(boolean includeInherited)
- Specified by:
getAspects
in interfaceDictionaryRegistry
-
initImpl
protected abstract void initImpl()
-
init
public void init()
- Specified by:
init
in interfaceDictionaryRegistry
-
removeImpl
protected abstract void removeImpl()
-
remove
public void remove()
- Specified by:
remove
in interfaceDictionaryRegistry
-
isModelInherited
public boolean isModelInherited(QName modelName)
- Specified by:
isModelInherited
in interfaceDictionaryRegistry
-
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURI
in interfaceDictionaryRegistry
-
-