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 java.lang.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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddPrefix(java.lang.String prefix, java.lang.String uri)protected voidaddPrefixImpl(java.lang.String prefix, java.lang.String uri)voidaddURI(java.lang.String uri)protected voidaddURIImpl(java.lang.String uri)voidclear()AspectDefinitiongetAspect(QName aspectName)protected AspectDefinitiongetAspectImpl(QName aspectName)java.util.Collection<QName>getAspects(boolean includeInherited)AssociationDefinitiongetAssociation(QName assocName)protected AssociationDefinitiongetAssociationImpl(QName assocName)java.util.Collection<QName>getAssociations(boolean includeInherited)ClassDefinitiongetClass(QName className)protected ClassDefinitiongetClassImpl(QName className)java.util.Map<QName,CompiledModel>getCompiledModels(boolean includeInherited)ConstraintDefinitiongetConstraint(QName constraintQName)protected ConstraintDefinitiongetConstraintImpl(QName constraintQName)DataTypeDefinitiongetDataType(java.lang.Class javaClass)DataTypeDefinitiongetDataType(QName typeName)protected DataTypeDefinitiongetDataTypeImp(QName typeName)protected DataTypeDefinitiongetDataTypeImpl(java.lang.Class javaClass)CompiledModelgetModel(QName modelName)protected CompiledModelgetModelImpl(QName modelName)java.util.List<CompiledModel>getModelsForUri(java.lang.String uri)protected java.util.List<CompiledModel>getModelsForUriImpl(java.lang.String uri)java.lang.StringgetNamespaceURI(java.lang.String prefix)java.util.Collection<java.lang.String>getPrefixes(java.lang.String URI)java.util.Map<java.lang.String,java.lang.String>getPrefixesCache()protected java.util.Map<java.lang.String,java.lang.String>getPrefixesCacheImpl()protected java.util.Collection<java.lang.String>getPrefixesImpl(java.lang.String URI)PropertyDefinitiongetProperty(QName propertyName)protected PropertyDefinitiongetPropertyImpl(QName propertyName)TypeDefinitiongetType(QName typeName)protected TypeDefinitiongetTypeImpl(QName typeName)java.util.Collection<QName>getTypes(boolean includeInherited)java.util.List<java.lang.String>getUrisCache()protected java.util.List<java.lang.String>getUrisCacheImpl()java.util.Map<java.lang.String,java.util.List<CompiledModel>>getUriToModels()booleanhasPrefix(java.lang.String prefix)booleanhasURI(java.lang.String uri)voidinit()protected abstract voidinitImpl()booleanisModelInherited(QName modelName)protected voidmapUriToModel(java.lang.String uri, CompiledModel model)booleanmodelExists(QName modelName)QNameputModel(CompiledModel model)protected QNameputModelImpl(CompiledModel model)voidremove()protected abstract voidremoveImpl()voidremoveModel(QName modelName)protected CompiledModelremoveModelImpl(QName modelName)voidremovePrefix(java.lang.String prefix)protected booleanremovePrefixImpl(java.lang.String prefix)voidremoveURI(java.lang.String uri)protected booleanremoveURIImpl(java.lang.String uri)protected voidunmapUriToModel(java.lang.String uri, CompiledModel model)-
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 java.util.Map<java.lang.String,java.util.List<CompiledModel>> getUriToModels()
- Specified by:
getUriToModelsin interfaceDictionaryRegistry
-
getCompiledModels
public java.util.Map<QName,CompiledModel> getCompiledModels(boolean includeInherited)
- Specified by:
getCompiledModelsin interfaceDictionaryRegistry
-
getModelsForUri
public java.util.List<CompiledModel> getModelsForUri(java.lang.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 java.util.List<CompiledModel> getModelsForUriImpl(java.lang.String uri)
-
unmapUriToModel
protected void unmapUriToModel(java.lang.String uri, CompiledModel model)
-
mapUriToModel
protected void mapUriToModel(java.lang.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(java.lang.Class javaClass)
- Specified by:
getDataTypein interfaceDictionaryRegistry
-
getDataTypeImpl
protected DataTypeDefinition getDataTypeImpl(java.lang.Class javaClass)
-
getPrefixesCacheImpl
protected java.util.Map<java.lang.String,java.lang.String> getPrefixesCacheImpl()
-
getPrefixesCache
public java.util.Map<java.lang.String,java.lang.String> getPrefixesCache()
- Specified by:
getPrefixesCachein interfaceDictionaryRegistry
-
getUrisCache
public java.util.List<java.lang.String> getUrisCache()
- Specified by:
getUrisCachein interfaceDictionaryRegistry
-
getUrisCacheImpl
protected java.util.List<java.lang.String> getUrisCacheImpl()
-
getPrefixes
public java.util.Collection<java.lang.String> getPrefixes(java.lang.String URI)
- Specified by:
getPrefixesin interfaceDictionaryRegistry
-
getPrefixesImpl
protected java.util.Collection<java.lang.String> getPrefixesImpl(java.lang.String URI)
-
addURI
public void addURI(java.lang.String uri)
- Specified by:
addURIin interfaceDictionaryRegistry
-
addURIImpl
protected void addURIImpl(java.lang.String uri)
-
hasURI
public boolean hasURI(java.lang.String uri)
- Specified by:
hasURIin interfaceDictionaryRegistry
-
addPrefix
public void addPrefix(java.lang.String prefix, java.lang.String uri)- Specified by:
addPrefixin interfaceDictionaryRegistry
-
hasPrefix
public boolean hasPrefix(java.lang.String prefix)
- Specified by:
hasPrefixin interfaceDictionaryRegistry
-
addPrefixImpl
protected void addPrefixImpl(java.lang.String prefix, java.lang.String uri)
-
removeURI
public void removeURI(java.lang.String uri)
- Specified by:
removeURIin interfaceDictionaryRegistry
-
removePrefix
public void removePrefix(java.lang.String prefix)
- Specified by:
removePrefixin interfaceDictionaryRegistry
-
removeURIImpl
protected boolean removeURIImpl(java.lang.String uri)
-
removePrefixImpl
protected boolean removePrefixImpl(java.lang.String prefix)
-
getTypes
public java.util.Collection<QName> getTypes(boolean includeInherited)
- Specified by:
getTypesin interfaceDictionaryRegistry
-
getAssociations
public java.util.Collection<QName> getAssociations(boolean includeInherited)
- Specified by:
getAssociationsin interfaceDictionaryRegistry
-
getAspects
public java.util.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 java.lang.String getNamespaceURI(java.lang.String prefix)
- Specified by:
getNamespaceURIin interfaceDictionaryRegistry
-
-