java.lang.Object
org.exoplatform.commons.api.settings.data.Context
All Implemented Interfaces:
Serializable, Cloneable

public class Context extends Object implements Cloneable, Serializable
Saves some settings linked to a Context.
See Also:
eXo level API
Experimental
  • Field Details

    • GLOBAL

      public static final Context GLOBAL
      GLOBAL: Settings should impact all users in the underlying scope.
      eXo level API
      Experimental
    • USER

      public static final Context USER
      USER: Each user should be able to save his own settings.
      eXo level API
      Experimental
  • Constructor Details

  • Method Details

    • id

      public Context id(String id)
      Creates a context with a specified Id.
      Parameters:
      id - The Id that is displayed as username.
      eXo level API
      Experimental
    • getId

      public String getId()
      Gets a context Id.
      Returns:
      Returns "null" if the context is GLOBAL or user Id if the context is USER.
      eXo level API
      Experimental
    • getName

      public String getName()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object