Class ChatUserEventListener
- java.lang.Object
-
- org.silverpeas.core.notification.system.CDIResourceEventListener<UserEvent>
-
- org.silverpeas.core.chat.listeners.ChatUserEventListener
-
- All Implemented Interfaces:
ResourceEventListener<UserEvent>
@Service public class ChatUserEventListener extends CDIResourceEventListener<UserEvent>
Listen user modifications to clone them in Chat server- Author:
- remipassmoilesel
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.notification.system.CDIResourceEventListener
logger
-
-
Constructor Summary
Constructors Constructor Description ChatUserEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
Is this listener enabled?void
onCreation(UserEvent event)
An event on the creation of a resource has be listened.void
onDeletion(UserEvent event)
An event on the deletion of a resource has be listened.-
Methods inherited from class org.silverpeas.core.notification.system.CDIResourceEventListener
onEvent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.notification.system.ResourceEventListener
dispatchEvent, onMove, onRemoving, onUnlock, onUpdate
-
-
-
-
Method Detail
-
onCreation
public void onCreation(UserEvent event)
Description copied from interface:ResourceEventListener
An event on the creation of a resource has be listened. By default, this method does nothing.- Parameters:
event
- the event on the creation of a resource.
-
onDeletion
public void onDeletion(UserEvent event)
Description copied from interface:ResourceEventListener
An event on the deletion of a resource has be listened. A deleted resource is nonexistent and nonrecoverable. By default, this method does nothing.- Parameters:
event
- the event on the deletion of a resource.
-
isEnabled
public boolean isEnabled()
Description copied from interface:ResourceEventListener
Is this listener enabled? When a listener is enabled, it processes then all the incoming events it listens for. Otherwise, nothing the event isn't consumed. By default, the listener is enabled. If the listener has to be enabled according to some conditions, then overrides this method.- Returns:
- true if this listener has to consume the events it listens for. False otherwise. Returns true by default.
-
-