|
|||||||||
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 |
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 |
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 NamespaceDAO
public void afterDictionaryInit()
afterDictionaryInit
in interface NamespaceDAO
public void init()
init
in interface NamespaceDAO
public void destroy()
destroy
in interface NamespaceDAO
public java.util.Collection getURIs()
NamespacePrefixResolver
getURIs
in interface NamespacePrefixResolver
public java.util.Collection getPrefixes()
NamespacePrefixResolver
getPrefixes
in interface NamespacePrefixResolver
public void addURI(java.lang.String uri)
NamespaceDAO
addURI
in interface NamespaceDAO
uri
- the namespace uri to addpublic void addPrefix(java.lang.String prefix, java.lang.String uri)
NamespaceDAO
addPrefix
in interface NamespaceDAO
prefix
- the prefixuri
- the uri to prefixpublic void removeURI(java.lang.String uri)
NamespaceDAO
removeURI
in interface NamespaceDAO
uri
- the uri to removepublic void removePrefix(java.lang.String prefix)
NamespaceDAO
removePrefix
in interface NamespaceDAO
prefix
- the prefix to removepublic java.lang.String getNamespaceURI(java.lang.String prefix)
NamespacePrefixResolver
getNamespaceURI
in interface NamespacePrefixResolver
prefix
- prefix to lookup
public java.util.Collection getPrefixes(java.lang.String URI)
NamespacePrefixResolver
getPrefixes
in interface NamespacePrefixResolver
URI
- namespace URI to lookup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |