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 DictionaryDAOdictionaryDAOprotected static org.apache.commons.logging.Loglogger
-
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:
clearin interfaceDictionaryRegistry
-
getUriToModels
public Map<String,List<CompiledModel>> getUriToModels()
- Specified by:
getUriToModelsin interfaceDictionaryRegistry
-
getCompiledModels
public Map<QName,CompiledModel> getCompiledModels(boolean includeInherited)
- Specified by:
getCompiledModelsin interfaceDictionaryRegistry
-
getModelsForUri
public List<CompiledModel> getModelsForUri(String uri)
- Specified by:
getModelsForUriin interfaceDictionaryRegistry
-
putModel
public QName putModel(CompiledModel model)
- Specified by:
putModelin interfaceDictionaryRegistry
-
getModel
public CompiledModel getModel(QName modelName)
- Specified by:
getModelin interfaceDictionaryRegistry
-
modelExists
public boolean modelExists(QName modelName)
- Specified by:
modelExistsin interfaceDictionaryRegistry
-
removeModel
public void removeModel(QName modelName)
- Specified by:
removeModelin 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:
getAspectin interfaceDictionaryRegistry
-
getAspectImpl
protected AspectDefinition getAspectImpl(QName aspectName)
-
getAssociation
public AssociationDefinition getAssociation(QName assocName)
- Specified by:
getAssociationin interfaceDictionaryRegistry
-
getAssociationImpl
protected AssociationDefinition getAssociationImpl(QName assocName)
-
getClass
public ClassDefinition getClass(QName className)
- Specified by:
getClassin interfaceDictionaryRegistry
-
getClassImpl
protected ClassDefinition getClassImpl(QName className)
-
getProperty
public PropertyDefinition getProperty(QName propertyName)
- Specified by:
getPropertyin interfaceDictionaryRegistry
-
getPropertyImpl
protected PropertyDefinition getPropertyImpl(QName propertyName)
-
getType
public TypeDefinition getType(QName typeName)
- Specified by:
getTypein interfaceDictionaryRegistry
-
getTypeImpl
protected TypeDefinition getTypeImpl(QName typeName)
-
getConstraint
public ConstraintDefinition getConstraint(QName constraintQName)
- Specified by:
getConstraintin interfaceDictionaryRegistry
-
getConstraintImpl
protected ConstraintDefinition getConstraintImpl(QName constraintQName)
-
getDataType
public DataTypeDefinition getDataType(QName typeName)
- Specified by:
getDataTypein interfaceDictionaryRegistry
-
getDataTypeImp
protected DataTypeDefinition getDataTypeImp(QName typeName)
-
getDataType
public DataTypeDefinition getDataType(Class javaClass)
- Specified by:
getDataTypein interfaceDictionaryRegistry
-
getDataTypeImpl
protected DataTypeDefinition getDataTypeImpl(Class javaClass)
-
getPrefixesCache
public Map<String,String> getPrefixesCache()
- Specified by:
getPrefixesCachein interfaceDictionaryRegistry
-
getUrisCache
public List<String> getUrisCache()
- Specified by:
getUrisCachein interfaceDictionaryRegistry
-
getPrefixes
public Collection<String> getPrefixes(String URI)
- Specified by:
getPrefixesin interfaceDictionaryRegistry
-
getPrefixesImpl
protected Collection<String> getPrefixesImpl(String URI)
-
addURI
public void addURI(String uri)
- Specified by:
addURIin interfaceDictionaryRegistry
-
addURIImpl
protected void addURIImpl(String uri)
-
hasURI
public boolean hasURI(String uri)
- Specified by:
hasURIin interfaceDictionaryRegistry
-
addPrefix
public void addPrefix(String prefix, String uri)
- Specified by:
addPrefixin interfaceDictionaryRegistry
-
hasPrefix
public boolean hasPrefix(String prefix)
- Specified by:
hasPrefixin interfaceDictionaryRegistry
-
removeURI
public void removeURI(String uri)
- Specified by:
removeURIin interfaceDictionaryRegistry
-
removePrefix
public void removePrefix(String prefix)
- Specified by:
removePrefixin interfaceDictionaryRegistry
-
removeURIImpl
protected boolean removeURIImpl(String uri)
-
removePrefixImpl
protected boolean removePrefixImpl(String prefix)
-
getTypes
public Collection<QName> getTypes(boolean includeInherited)
- Specified by:
getTypesin interfaceDictionaryRegistry
-
getAssociations
public Collection<QName> getAssociations(boolean includeInherited)
- Specified by:
getAssociationsin interfaceDictionaryRegistry
-
getAspects
public Collection<QName> getAspects(boolean includeInherited)
- Specified by:
getAspectsin interfaceDictionaryRegistry
-
initImpl
protected abstract void initImpl()
-
init
public void init()
- Specified by:
initin interfaceDictionaryRegistry
-
removeImpl
protected abstract void removeImpl()
-
remove
public void remove()
- Specified by:
removein interfaceDictionaryRegistry
-
isModelInherited
public boolean isModelInherited(QName modelName)
- Specified by:
isModelInheritedin interfaceDictionaryRegistry
-
getNamespaceURI
public String getNamespaceURI(String prefix)
- Specified by:
getNamespaceURIin interfaceDictionaryRegistry
-
-