net.sourceforge.sconman.helpers
Class ContentUriHelper

java.lang.Object
  extended by net.sourceforge.sconman.helpers.ContentUriHelper

public class ContentUriHelper
extends java.lang.Object

Author:
mballesteros

Constructor Summary
ContentUriHelper()
           
 
Method Summary
static java.lang.String getCategoryIdFromURI(java.lang.String contentUri)
          Returns the category Id, known the URI
static java.lang.String getContentURI(Category cat, java.lang.String repositoryPath)
          Returns the content URI, known the content's category and repository path
static java.lang.String getFilePathFromURI(java.lang.String contentUri)
          Returns the content's repository location, known the URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentUriHelper

public ContentUriHelper()
Method Detail

getContentURI

public static java.lang.String getContentURI(Category cat,
                                             java.lang.String repositoryPath)
Returns the content URI, known the content's category and repository path

Parameters:
cat -
repositoryPath -
Returns:
The content URI

getCategoryIdFromURI

public static java.lang.String getCategoryIdFromURI(java.lang.String contentUri)
Returns the category Id, known the URI

Parameters:
contentUri -
Returns:
The category Id

getFilePathFromURI

public static java.lang.String getFilePathFromURI(java.lang.String contentUri)
Returns the content's repository location, known the URI

Parameters:
contentUri -
Returns:
The category Id


Copyright null null. All Rights Reserved.