|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.beans.config.URI2RepositoryManager
public class URI2RepositoryManager
Maps uri prefixes to repositories.
Field Summary | |
---|---|
protected static URI2RepositoryMapping |
DEFAULT_MAPPING
|
Constructor Summary | |
---|---|
URI2RepositoryManager()
|
Method Summary | |
---|---|
void |
addMapping(URI2RepositoryMapping mapping)
|
URI2RepositoryMapping |
getDefaultMapping()
|
java.lang.String |
getHandle(java.lang.String uri)
Get the handle for this uri. |
static URI2RepositoryManager |
getInstance()
|
URI2RepositoryMapping |
getMapping(java.lang.String uri)
The mapping to use for this uri. |
protected java.util.Comparator<URI2RepositoryMapping> |
getMappingComparator()
|
java.util.Collection<URI2RepositoryMapping> |
getMappings()
|
java.lang.String |
getRepository(java.lang.String uri)
Get the repository to use for this uri. |
java.lang.String |
getURI(Link uuidLink)
|
java.lang.String |
getURI(java.lang.String repository,
java.lang.String handle)
Get the uri to use for this handle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final URI2RepositoryMapping DEFAULT_MAPPING
Constructor Detail |
---|
public URI2RepositoryManager()
Method Detail |
---|
protected java.util.Comparator<URI2RepositoryMapping> getMappingComparator()
public URI2RepositoryMapping getMapping(java.lang.String uri)
public URI2RepositoryMapping getDefaultMapping()
public java.lang.String getHandle(java.lang.String uri)
public java.lang.String getRepository(java.lang.String uri)
public java.lang.String getURI(java.lang.String repository, java.lang.String handle)
public java.lang.String getURI(Link uuidLink)
public void addMapping(URI2RepositoryMapping mapping)
public static URI2RepositoryManager getInstance()
public java.util.Collection<URI2RepositoryMapping> getMappings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |