Package org.alfresco.repo.dictionary
Class TenantDictionaryRegistryImpl
- java.lang.Object
-
- org.alfresco.repo.dictionary.AbstractDictionaryRegistry
-
- org.alfresco.repo.dictionary.TenantDictionaryRegistryImpl
-
- All Implemented Interfaces:
DictionaryRegistry
public class TenantDictionaryRegistryImpl extends AbstractDictionaryRegistry
Tenant-specific dictionary registry.- Author:
- sglover
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.dictionary.AbstractDictionaryRegistry
dictionaryDAO, logger
-
-
Constructor Summary
Constructors Constructor Description TenantDictionaryRegistryImpl(DictionaryDAO dictionaryDAO, String tenantDomain)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPrefix(String prefix, String uri)
void
addURI(String uri)
AspectDefinition
getAspect(QName aspectName)
Map<QName,CompiledModel>
getCompiledModels(boolean includeInherited)
CompiledModel
getModel(QName name)
List<CompiledModel>
getModelsForUri(String uri)
Collection<String>
getPrefixes(String URI)
Map<String,String>
getPrefixesCache()
String
getTenantDomain()
TypeDefinition
getType(QName typeName)
List<String>
getUrisCache()
protected void
initImpl()
boolean
isModelInherited(QName modelName)
QName
putModelImpl(CompiledModel model)
void
removeImpl()
void
removeModel(QName modelName)
void
removePrefix(String prefix)
void
removeURI(String uri)
-
Methods inherited from class org.alfresco.repo.dictionary.AbstractDictionaryRegistry
addPrefixImpl, addURIImpl, clear, getAspectImpl, getAspects, getAssociation, getAssociationImpl, getAssociations, getClass, getClassImpl, getConstraint, getConstraintImpl, getDataType, getDataType, getDataTypeImp, getDataTypeImpl, getModelImpl, getModelsForUriImpl, getNamespaceURI, getPrefixesCacheImpl, getPrefixesImpl, getProperty, getPropertyImpl, getTypeImpl, getTypes, getUrisCacheImpl, getUriToModels, hasPrefix, hasURI, init, mapUriToModel, modelExists, putModel, remove, removeModelImpl, removePrefixImpl, removeURIImpl, unmapUriToModel
-
-
-
-
Constructor Detail
-
TenantDictionaryRegistryImpl
public TenantDictionaryRegistryImpl(DictionaryDAO dictionaryDAO, String tenantDomain)
-
-
Method Detail
-
getTenantDomain
public String getTenantDomain()
-
putModelImpl
public QName putModelImpl(CompiledModel model)
- Overrides:
putModelImpl
in classAbstractDictionaryRegistry
-
getCompiledModels
public Map<QName,CompiledModel> getCompiledModels(boolean includeInherited)
- Specified by:
getCompiledModels
in interfaceDictionaryRegistry
- Overrides:
getCompiledModels
in classAbstractDictionaryRegistry
-
getModelsForUri
public List<CompiledModel> getModelsForUri(String uri)
- Specified by:
getModelsForUri
in interfaceDictionaryRegistry
- Overrides:
getModelsForUri
in classAbstractDictionaryRegistry
-
getModel
public CompiledModel getModel(QName name)
- Specified by:
getModel
in interfaceDictionaryRegistry
- Overrides:
getModel
in classAbstractDictionaryRegistry
-
removeModel
public void removeModel(QName modelName)
- Specified by:
removeModel
in interfaceDictionaryRegistry
- Overrides:
removeModel
in classAbstractDictionaryRegistry
-
getAspect
public AspectDefinition getAspect(QName aspectName)
- Specified by:
getAspect
in interfaceDictionaryRegistry
- Overrides:
getAspect
in classAbstractDictionaryRegistry
-
isModelInherited
public boolean isModelInherited(QName modelName)
- Specified by:
isModelInherited
in interfaceDictionaryRegistry
- Overrides:
isModelInherited
in classAbstractDictionaryRegistry
-
getPrefixesCache
public Map<String,String> getPrefixesCache()
- Specified by:
getPrefixesCache
in interfaceDictionaryRegistry
- Overrides:
getPrefixesCache
in classAbstractDictionaryRegistry
-
getUrisCache
public List<String> getUrisCache()
- Specified by:
getUrisCache
in interfaceDictionaryRegistry
- Overrides:
getUrisCache
in classAbstractDictionaryRegistry
-
getPrefixes
public Collection<String> getPrefixes(String URI)
- Specified by:
getPrefixes
in interfaceDictionaryRegistry
- Overrides:
getPrefixes
in classAbstractDictionaryRegistry
-
addURI
public void addURI(String uri)
- Specified by:
addURI
in interfaceDictionaryRegistry
- Overrides:
addURI
in classAbstractDictionaryRegistry
-
addPrefix
public void addPrefix(String prefix, String uri)
- Specified by:
addPrefix
in interfaceDictionaryRegistry
- Overrides:
addPrefix
in classAbstractDictionaryRegistry
-
removeURI
public void removeURI(String uri)
- Specified by:
removeURI
in interfaceDictionaryRegistry
- Overrides:
removeURI
in classAbstractDictionaryRegistry
-
removePrefix
public void removePrefix(String prefix)
- Specified by:
removePrefix
in interfaceDictionaryRegistry
- Overrides:
removePrefix
in classAbstractDictionaryRegistry
-
initImpl
protected void initImpl()
- Specified by:
initImpl
in classAbstractDictionaryRegistry
-
getType
public TypeDefinition getType(QName typeName)
- Specified by:
getType
in interfaceDictionaryRegistry
- Overrides:
getType
in classAbstractDictionaryRegistry
-
removeImpl
public void removeImpl()
- Specified by:
removeImpl
in classAbstractDictionaryRegistry
-
-