Class SettingKey
java.lang.Object
org.exoplatform.commons.api.settings.data.SettingContext
org.exoplatform.commons.api.settings.data.SettingScope
org.exoplatform.commons.api.settings.data.SettingKey
- All Implemented Interfaces:
Serializable
Associates setting properties with a specified key.
SettingKey is composed by [context, scope, key], and is used to
specify context of setting properties at the Key level when working with database, cache or dispatching the setting event.
- See Also:
- eXo level API
- Experimental
-
Field Summary
Fields inherited from class org.exoplatform.commons.api.settings.data.SettingScope
scope, scopePathFields inherited from class org.exoplatform.commons.api.settings.data.SettingContext
context, contextPath -
Constructor Summary
ConstructorsConstructorDescriptionSettingKey(Context context, Scope scope, String key) Creates a SettingKey with a composite value [context, scope, key]. -
Method Summary
Methods inherited from class org.exoplatform.commons.api.settings.data.SettingScope
getScope, getScopePathMethods inherited from class org.exoplatform.commons.api.settings.data.SettingContext
getContext, getContextPath
-
Constructor Details
-
SettingKey
Creates a SettingKey with a composite value [context, scope, key].- Parameters:
context- The context value.scope- The scope value.key- The key value.- eXo level API
- Experimental
-
-
Method Details
-
getKey
Gets a key value of the SettingKey object.- Returns:
- The key value.
- eXo level API
- Experimental
-
setKey
Sets a key value of the SettingKey object.- Parameters:
key- The key value.- eXo level API
- Experimental
-
equals
Compares a specified object with the SettingKey for equality.- Overrides:
equalsin classSettingScope
-
hashCode
public int hashCode()Returns the hash code value for the SettingKey object.- Overrides:
hashCodein classSettingScope
-