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 object path saved in JCR.


Constructor Summary
Tools()
           
 
Method Summary
static String buildContextPath(Context context)
          Builds a path of a specified context in the database.
static String buildFullPath(Context context, Scope scope, String key)
          Builds a path of a specified setting property stored in the database.
static String buildScopePath(Context context, Scope scope)
          Builds a path of a specified scope in the 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)
Builds a path of a specified scope in the database.

Parameters:
context - The context with which the path is associated.
scope - The scope with which the path is associated.
Returns:
The scope path.

buildContextPath

public static String buildContextPath(Context context)
Builds a path of a specified context in the database.

Parameters:
context - The context with which the path is associated.
Returns:
The context path.

buildFullPath

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

Parameters:
context - Context of the setting property.
scope - Scope of the setting property.
key - Key of the setting property.
Returns:
The path of the specified setting property.


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