Class NotificationUserEventListener
- java.lang.Object
-
- org.silverpeas.core.notification.system.CDIResourceEventListener<UserEvent>
-
- org.silverpeas.core.notification.user.client.NotificationUserEventListener
-
- All Implemented Interfaces:
ResourceEventListener<UserEvent>
@Bean @Singleton public class NotificationUserEventListener extends CDIResourceEventListener<UserEvent>
A listener of events about a given user account in Silverpeas.- Author:
- mmoquillon
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.notification.system.CDIResourceEventListener
logger
-
-
Constructor Summary
Constructors Constructor Description NotificationUserEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkNotificationChannel(UserDetail user)
void
dereferenceUserFromUserNotification(UserEvent event)
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, isEnabled, onMove, onRecovery, onRemoving, onUnlock, onUpdate
-
-
-
-
Method Detail
-
onDeletion
public void onDeletion(UserEvent event) throws Exception
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.- Throws:
Exception
- if an error occurs while treating the event.
-
dereferenceUserFromUserNotification
public void dereferenceUserFromUserNotification(UserEvent event) throws SQLException
- Throws:
SQLException
-
onCreation
public void onCreation(UserEvent event) throws Exception
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.- Throws:
Exception
- if an error occurs while treating the event.
-
checkNotificationChannel
public void checkNotificationChannel(UserDetail user) throws SQLException
- Throws:
SQLException
-
-