Class SettingContext
java.lang.Object
org.exoplatform.commons.api.settings.data.SettingContext
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SettingScope
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSettingContext(Context context) Creates a SettingContext object with a specified context type. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares a specified object with the SettingContext for equality.Gets a context object associated with the SettingContext object.Gets path of the SettingContext object.inthashCode()Returns the hash code value for the SettingContext object.
-
Field Details
-
context
Context of the setting object. -
contextPath
Path of the context.
-
-
Constructor Details
-
SettingContext
Creates a SettingContext object with a specified context type.- Parameters:
context- The context type.- eXo level API
- Experimental
-
-
Method Details
-
equals
Compares a specified object with the SettingContext for equality. -
hashCode
public int hashCode()Returns the hash code value for the SettingContext object. -
getContextPath
Gets path of the SettingContext object.- Returns:
- The setting context path.
- eXo level API
- Experimental
-
getContext
Gets a context object associated with the SettingContext object.- Returns:
- The context object.
- eXo level API
- Experimental
-