Class RelationShipListener
- java.lang.Object
-
- org.silverpeas.core.notification.system.CDIResourceEventListener<RelationShipEvent>
-
- org.silverpeas.core.chat.listeners.RelationShipListener
-
- All Implemented Interfaces:
ResourceEventListener<RelationShipEvent>
@Technical @Service public class RelationShipListener extends CDIResourceEventListener<RelationShipEvent>
Listen relationship modifications to clone them in the Chat server- Author:
- remipassmoilesel
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.notification.system.CDIResourceEventListener
logger
-
-
Constructor Summary
Constructors Constructor Description RelationShipListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
Is this listener enabled?void
onCreation(RelationShipEvent event)
An event on the creation of a resource has be listened.void
onDeletion(RelationShipEvent 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, onRecovery, onRemoving, onUnlock, onUpdate
-
-
-
-
Method Detail
-
onCreation
public void onCreation(RelationShipEvent 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(RelationShipEvent 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.
-
-