org.pentaho.platform.repository2.unified.jcr
Class DefaultPathConversionHelper

java.lang.Object
  extended by org.pentaho.platform.repository2.unified.jcr.DefaultPathConversionHelper
All Implemented Interfaces:
IPathConversionHelper

public class DefaultPathConversionHelper
extends Object
implements IPathConversionHelper

Default IPathConversionHelper implementation. Uses ServerRepositoryPaths.

Author:
mlowery

Constructor Summary
DefaultPathConversionHelper()
           
 
Method Summary
 String absToRel(String absPath)
          Returns null if path is not at or under the tenant root.
 String relToAbs(String relPath)
          Unconditionally adds tenant root path to given path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPathConversionHelper

public DefaultPathConversionHelper()
Method Detail

absToRel

public String absToRel(String absPath)
Returns null if path is not at or under the tenant root.

Specified by:
absToRel in interface IPathConversionHelper

relToAbs

public String relToAbs(String relPath)
Unconditionally adds tenant root path to given path.

Specified by:
relToAbs in interface IPathConversionHelper