info.magnolia.cms.beans.config
Class URI2RepositoryMapping

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

public class URI2RepositoryMapping
extends java.lang.Object

Describes a uri to repository mapping.

Version:
$Id: URI2RepositoryMapping.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
Philipp Bracher

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

Constructor Detail

URI2RepositoryMapping

public URI2RepositoryMapping(java.lang.String uriPrefix,
                             java.lang.String repository,
                             java.lang.String handlePrefix)

URI2RepositoryMapping

public URI2RepositoryMapping()
Method Detail

matches

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


getHandle

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


getURI

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


getURI

public java.lang.String getURI(Link uuidLink)

getHandlePrefix

public java.lang.String getHandlePrefix()

setHandlePrefix

public void setHandlePrefix(java.lang.String handlePrefix)

getRepository

public java.lang.String getRepository()

setRepository

public void setRepository(java.lang.String repository)

getURIPrefix

public java.lang.String getURIPrefix()

setURIPrefix

public void setURIPrefix(java.lang.String uriPrefix)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.