Class SettingContext

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

public class SettingContext extends Object implements Serializable
Associates setting properties with a specified context (GLOBAL/USER). This is used to specify context of setting properties at the Context level when working with database and cache or dispatching the setting event.
See Also:
  • Field Details

    • context

      protected Context context
      Context of the setting object.
    • contextPath

      protected String contextPath
      Path of the context.
  • Constructor Details

    • SettingContext

      public SettingContext(Context context)
      Creates a SettingContext object with a specified context type.
      Parameters:
      context - The context type.
      eXo level API
      Experimental
  • Method Details

    • equals

      public boolean equals(Object obj)
      Compares a specified object with the SettingContext for equality.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns the hash code value for the SettingContext object.
      Overrides:
      hashCode in class Object
    • getContextPath

      public String getContextPath()
      Gets path of the SettingContext object.
      Returns:
      The setting context path.
      eXo level API
      Experimental
    • getContext

      public Context getContext()
      Gets a context object associated with the SettingContext object.
      Returns:
      The context object.
      eXo level API
      Experimental