|
||||||||||
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()
|
String |
getHandle(String uri)
Get the handle for this uri. |
static URI2RepositoryManager |
getInstance()
|
URI2RepositoryMapping |
getMapping(String uri)
The mapping to use for this uri. |
protected Comparator<URI2RepositoryMapping> |
getMappingComparator()
|
Collection<URI2RepositoryMapping> |
getMappings()
|
String |
getRepository(String uri)
Get the repository to use for this uri. |
String |
getURI(Link uuidLink)
|
String |
getURI(String repository,
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 Comparator<URI2RepositoryMapping> getMappingComparator()
public URI2RepositoryMapping getMapping(String uri)
public URI2RepositoryMapping getDefaultMapping()
public String getHandle(String uri)
public String getRepository(String uri)
public String getURI(String repository, String handle)
public String getURI(Link uuidLink)
public void addMapping(URI2RepositoryMapping mapping)
public static URI2RepositoryManager getInstance()
public Collection<URI2RepositoryMapping> getMappings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |