|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.listener.Listener<SettingService,SettingData>
org.exoplatform.commons.api.settings.SettingListener
public abstract class SettingListener
This class is registered with the SettingsService and is invoked when an event with the same name is broadcasted. There may be many listeners with the same name to listen to an event.
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
desc, name |
| Constructor Summary | |
|---|---|
SettingListener()
|
|
| Method Summary | |
|---|---|
void |
onEvent(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
Calls back a function when the setting service dispatches an event. |
abstract void |
onRemoveContext(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
Calls back a function when all setting properties in a context are removed. |
abstract void |
onRemoveKey(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
Calls back a function when a setting property is removed with a specified composite key (context, scope, key). |
abstract void |
onRemoveScope(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
Calls back a function when all setting properties in a scope are removed. |
abstract void |
onSet(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
Calls back a function when a new setting property is saved. |
| Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
getDescription, getName, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SettingListener()
| Method Detail |
|---|
public abstract void onSet(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
event - The event that the setting service dispatches when a new setting property is saved successfully.public abstract void onRemoveKey(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
event - The event that the setting service dispatches when a new setting property is removed successfully.public abstract void onRemoveScope(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
event - The event that the setting service dispatches when all setting properties in a scope are removed successfully.public abstract void onRemoveContext(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
event - The event that the setting service dispatches when all setting properties in a context are removed successfully.
public void onEvent(org.exoplatform.services.listener.Event<SettingService,SettingData> event)
throws Exception
onEvent in class org.exoplatform.services.listener.Listener<SettingService,SettingData>event - The event that the setting service dispatches.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||