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 voidaddPrefix(String prefix, String uri)voidaddURI(String uri)AspectDefinitiongetAspect(QName aspectName)Map<QName,CompiledModel>getCompiledModels(boolean includeInherited)CompiledModelgetModel(QName name)List<CompiledModel>getModelsForUri(String uri)Collection<String>getPrefixes(String URI)Map<String,String>getPrefixesCache()StringgetTenantDomain()TypeDefinitiongetType(QName typeName)List<String>getUrisCache()protected voidinitImpl()booleanisModelInherited(QName modelName)QNameputModelImpl(CompiledModel model)voidremoveImpl()voidremoveModel(QName modelName)voidremovePrefix(String prefix)voidremoveURI(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:
putModelImplin classAbstractDictionaryRegistry
-
getCompiledModels
public Map<QName,CompiledModel> getCompiledModels(boolean includeInherited)
- Specified by:
getCompiledModelsin interfaceDictionaryRegistry- Overrides:
getCompiledModelsin classAbstractDictionaryRegistry
-
getModelsForUri
public List<CompiledModel> getModelsForUri(String uri)
- Specified by:
getModelsForUriin interfaceDictionaryRegistry- Overrides:
getModelsForUriin classAbstractDictionaryRegistry
-
getModel
public CompiledModel getModel(QName name)
- Specified by:
getModelin interfaceDictionaryRegistry- Overrides:
getModelin classAbstractDictionaryRegistry
-
removeModel
public void removeModel(QName modelName)
- Specified by:
removeModelin interfaceDictionaryRegistry- Overrides:
removeModelin classAbstractDictionaryRegistry
-
getAspect
public AspectDefinition getAspect(QName aspectName)
- Specified by:
getAspectin interfaceDictionaryRegistry- Overrides:
getAspectin classAbstractDictionaryRegistry
-
isModelInherited
public boolean isModelInherited(QName modelName)
- Specified by:
isModelInheritedin interfaceDictionaryRegistry- Overrides:
isModelInheritedin classAbstractDictionaryRegistry
-
getPrefixesCache
public Map<String,String> getPrefixesCache()
- Specified by:
getPrefixesCachein interfaceDictionaryRegistry- Overrides:
getPrefixesCachein classAbstractDictionaryRegistry
-
getUrisCache
public List<String> getUrisCache()
- Specified by:
getUrisCachein interfaceDictionaryRegistry- Overrides:
getUrisCachein classAbstractDictionaryRegistry
-
getPrefixes
public Collection<String> getPrefixes(String URI)
- Specified by:
getPrefixesin interfaceDictionaryRegistry- Overrides:
getPrefixesin classAbstractDictionaryRegistry
-
addURI
public void addURI(String uri)
- Specified by:
addURIin interfaceDictionaryRegistry- Overrides:
addURIin classAbstractDictionaryRegistry
-
addPrefix
public void addPrefix(String prefix, String uri)
- Specified by:
addPrefixin interfaceDictionaryRegistry- Overrides:
addPrefixin classAbstractDictionaryRegistry
-
removeURI
public void removeURI(String uri)
- Specified by:
removeURIin interfaceDictionaryRegistry- Overrides:
removeURIin classAbstractDictionaryRegistry
-
removePrefix
public void removePrefix(String prefix)
- Specified by:
removePrefixin interfaceDictionaryRegistry- Overrides:
removePrefixin classAbstractDictionaryRegistry
-
initImpl
protected void initImpl()
- Specified by:
initImplin classAbstractDictionaryRegistry
-
getType
public TypeDefinition getType(QName typeName)
- Specified by:
getTypein interfaceDictionaryRegistry- Overrides:
getTypein classAbstractDictionaryRegistry
-
removeImpl
public void removeImpl()
- Specified by:
removeImplin classAbstractDictionaryRegistry
-
-