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

java.lang.Object
  extended by org.exoplatform.commons.api.settings.data.SettingContext
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SettingScope

public class SettingContext
extends Object
implements Serializable

SettingContext associates setting properties with a specified context (GLOBAL/USER). Use SettingScope to specify context of setting properties in action with database, cache or in dispatching setting event.

See Also:
Serialized Form

Field Summary
protected  Context context
           
protected  String ContextPath
          path of context in jcr
protected  String repositoryName
           
 
Constructor Summary
SettingContext(Context context)
          Create a setting context object with a specified context
 
Method Summary
 boolean equals(Object obj)
           
 Context getContext()
          get context object associated to this setting-context
 String getContextPath()
          get path associated to this setting-context
static String getCurrentRepositoryName()
           
 String getRepositoryName()
          get repository name associated to this setting-context
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repositoryName

protected String repositoryName

context

protected Context context

ContextPath

protected String ContextPath
path of context in jcr

Constructor Detail

SettingContext

public SettingContext(Context context)
Create a setting context object with a specified context

Parameters:
context - context with which the specified value is to be associated
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getContextPath

public String getContextPath()
get path associated to this setting-context

Returns:
path to setting data zone of this context in the database

getRepositoryName

public String getRepositoryName()
get repository name associated to this setting-context

Returns:
repository name

getContext

public Context getContext()
get context object associated to this setting-context

Returns:
Context object

getCurrentRepositoryName

public static String getCurrentRepositoryName()


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