org.exoplatform.commons.api.settings.data
Class Tools

java.lang.Object
  extended by org.exoplatform.commons.api.settings.data.Tools

public class Tools
extends Object

This class is useful to build the path of object saved in Jcr.


Constructor Summary
Tools()
           
 
Method Summary
static String buildContextPath(Context context)
          Build path to a specified context in database
static String buildFullPath(Context context, Scope scope, String key)
          Build path of a specified setting property stored in database
static String buildScopePath(Context context, Scope scope)
          Build the path to a specified scope in database
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

buildScopePath

public static String buildScopePath(Context context,
                                    Scope scope)
Build the path to a specified scope in database

Parameters:
context - context with which the path is to be associated
scope - scope with which the path is to be associated
Returns:
path to setting data zone of this scope in the database

buildContextPath

public static String buildContextPath(Context context)
Build path to a specified context in database

Parameters:
context - context with which the path is to be associated
Returns:
path to setting data zone of specified context in the database

buildFullPath

public static String buildFullPath(Context context,
                                   Scope scope,
                                   String key)
Build path of a specified setting property stored in database

Parameters:
context - associated context to setting property
scope - associated scope to setting property
key - associated key to setting property
Returns:
path to a specified setting properties in the database


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.