info.magnolia.cms.beans.config
Class URI2RepositoryMapping

java.lang.Object
  extended by info.magnolia.cms.beans.config.URI2RepositoryMapping

public class URI2RepositoryMapping
extends Object

Describes a uri to repository mapping.

Version:
$Id$
Author:
Philipp Bracher

Constructor Summary
URI2RepositoryMapping()
           
URI2RepositoryMapping(String uriPrefix, String repository, String handlePrefix)
           
 
Method Summary
protected  String cleanHandle(String handle)
          Clean a handle.
 String getHandle(String uri)
          Create a node handle based on an uri.
 String getHandlePrefix()
           
 String getRepository()
           
 String getURI(Link uuidLink)
           
 String getURI(String handle)
          Create a uri based on a handle.
 String getURIPrefix()
           
 boolean matches(String uri)
          True if this mapping can get applied to the specified uri.
 void setHandlePrefix(String handlePrefix)
           
 void setRepository(String repository)
           
 void setURIPrefix(String uriPrefix)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

URI2RepositoryMapping

public URI2RepositoryMapping(String uriPrefix,
                             String repository,
                             String handlePrefix)

URI2RepositoryMapping

public URI2RepositoryMapping()
Method Detail

matches

public boolean matches(String uri)
True if this mapping can get applied to the specified uri.


getHandle

public String getHandle(String uri)
Create a node handle based on an uri.


cleanHandle

protected String cleanHandle(String handle)
Clean a handle. Remove double / and add always a leading /.


getURI

public String getURI(String handle)
Create a uri based on a handle.


getURI

public String getURI(Link uuidLink)

getHandlePrefix

public String getHandlePrefix()

setHandlePrefix

public void setHandlePrefix(String handlePrefix)

getRepository

public String getRepository()

setRepository

public void setRepository(String repository)

getURIPrefix

public String getURIPrefix()

setURIPrefix

public void setURIPrefix(String uriPrefix)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.