Class SettingData
java.lang.Object
org.exoplatform.commons.api.settings.data.SettingData
Supports the setting event management that contains all information of event.
- eXo level API
- Experimental
-
Constructor Summary
ConstructorsConstructorDescriptionSettingData(EventType eventType, SettingContext settingContext) Creates the setting data with the specified event type and context.SettingData(EventType eventType, SettingContext settingContext, SettingValue<?> settingValue) Creates the setting data with the specified event type and setting properties. -
Method Summary
Modifier and TypeMethodDescriptionGets an event type associated with the setting data.Gets a setting context associated with the setting data.SettingValue<?> Gets a setting value of setting property associated with the setting data.voidsetEventType(EventType eventType) Sets an event type associated with the setting data.voidsetSettingContext(SettingContext settingContext) Sets a setting context associated with the setting data.voidsetSettingValue(SettingValue<?> settingValue) Sets a setting value of setting property (SettingKey) associated with the setting data.
-
Constructor Details
-
SettingData
Creates the setting data with the specified event type and context. The context could be USER/GLOBAL context or a specified scope or a specified setting property.- Parameters:
eventType- The event type that has been dispatched.settingContext- The event setting context.- eXo level API
- Experimental
-
SettingData
public SettingData(EventType eventType, SettingContext settingContext, SettingValue<?> settingValue) Creates the setting data with the specified event type and setting properties.- Parameters:
eventType- The event type that has been dispatched.settingContext- The event setting context.settingValue- The event setting value.- eXo level API
- Experimental
-
-
Method Details
-
getEventType
Gets an event type associated with the setting data.- Returns:
- The event type.
- eXo level API
- Experimental
-
setEventType
Sets an event type associated with the setting data.- eXo level API
- Experimental
-
getSettingContext
Gets a setting context associated with the setting data.- Returns:
- The setting context.
- eXo level API
- Experimental
-
setSettingContext
Sets a setting context associated with the setting data.- eXo level API
- Experimental
-
getSettingValue
Gets a setting value of setting property associated with the setting data.- Returns:
- The setting value object, or "null" if context is at the Context or Scope level.
- eXo level API
- Experimental
-
setSettingValue
Sets a setting value of setting property (SettingKey) associated with the setting data.- eXo level API
- Experimental
-