|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.dictionary.NamespaceDAOImpl
public class NamespaceDAOImpl
Simple in-memory namespace DAO
| Nested Class Summary | |
|---|---|
class |
NamespaceDAOImpl.NamespaceRegistry
|
| Constructor Summary | |
|---|---|
NamespaceDAOImpl()
|
|
| Method Summary | |
|---|---|
void |
addPrefix(java.lang.String prefix,
java.lang.String uri)
Add a namespace prefix |
void |
addURI(java.lang.String uri)
Add a namespace URI |
void |
afterDictionaryDestroy()
|
void |
afterDictionaryInit()
Complete the initialisation |
void |
destroy()
Destroy the namespaces |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Gets the namespace URI registered for the given prefix |
java.util.Collection |
getPrefixes()
Gets all registered Prefixes |
java.util.Collection |
getPrefixes(java.lang.String URI)
Gets the registered prefixes for the given namespace URI |
java.util.Collection |
getURIs()
Gets all registered Uris |
void |
init()
Initialise empty namespaces |
void |
onDictionaryInit()
|
void |
registerDictionary(DictionaryDAO dictionaryDAO)
Register with the Dictionary |
void |
removePrefix(java.lang.String prefix)
Remove a namspace prefix |
void |
removeURI(java.lang.String uri)
Remove the specified URI |
void |
setNamespaceRegistryCache(SimpleCache namespaceRegistryCache)
|
void |
setTenantService(TenantService tenantService)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamespaceDAOImpl()
| Method Detail |
|---|
public void setTenantService(TenantService tenantService)
public void setNamespaceRegistryCache(SimpleCache namespaceRegistryCache)
public void registerDictionary(DictionaryDAO dictionaryDAO)
NamespaceDAO
registerDictionary in interface NamespaceDAOpublic void afterDictionaryDestroy()
afterDictionaryDestroy in interface DictionaryListenerpublic void onDictionaryInit()
onDictionaryInit in interface DictionaryListenerpublic void afterDictionaryInit()
afterDictionaryInit in interface DictionaryListenerafterDictionaryInit in interface NamespaceDAOpublic void init()
init in interface NamespaceDAOpublic void destroy()
destroy in interface NamespaceDAOpublic java.util.Collection getURIs()
NamespacePrefixResolver
getURIs in interface NamespacePrefixResolverpublic java.util.Collection getPrefixes()
NamespacePrefixResolver
getPrefixes in interface NamespacePrefixResolverpublic void addURI(java.lang.String uri)
NamespaceDAO
addURI in interface NamespaceDAOuri - the namespace uri to add
public void addPrefix(java.lang.String prefix,
java.lang.String uri)
NamespaceDAO
addPrefix in interface NamespaceDAOprefix - the prefixuri - the uri to prefixpublic void removeURI(java.lang.String uri)
NamespaceDAO
removeURI in interface NamespaceDAOuri - the uri to removepublic void removePrefix(java.lang.String prefix)
NamespaceDAO
removePrefix in interface NamespaceDAOprefix - the prefix to removepublic java.lang.String getNamespaceURI(java.lang.String prefix)
NamespacePrefixResolver
getNamespaceURI in interface NamespacePrefixResolverprefix - prefix to lookup
public java.util.Collection getPrefixes(java.lang.String URI)
NamespacePrefixResolver
getPrefixes in interface NamespacePrefixResolverURI - namespace URI to lookup
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||