Class AbstractNotificationLifecycle
java.lang.Object
org.exoplatform.commons.api.notification.lifecycle.AbstractNotificationLifecycle
- Direct Known Subclasses:
BaseNotificationLifecycle,DefaultLifecycle
Created by The eXo Platform SAS
Author : eXoPlatform
thanhvc@exoplatform.com
Dec 12, 2014
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the channelabstract voidprocess(NotificationContext ctx, String userId) Process the notification for the userabstract voidprocess(NotificationContext ctx, String... userIds) Process the notification for multi-usersvoidsend(NotificationContext ctx) Sends the message by Mail, UI or any the configured channelvoidsetChannel(AbstractChannel channel) Sets the channel to the lifecyclevoidstore(NotificationInfo notifInfo) Storage the notification into the dbvoidupdate(NotificationInfo notifInfo) Update an existing notification
-
Constructor Details
-
AbstractNotificationLifecycle
public AbstractNotificationLifecycle()
-
-
Method Details
-
getChannel
Gets the channel- Returns:
-
setChannel
Sets the channel to the lifecycle- Parameters:
channel-
-
process
Process the notification for multi-users- Parameters:
ctx-userIds-
-
process
Process the notification for the user- Parameters:
ctx-userId-
-
store
Storage the notification into the db- Parameters:
notifInfo-
-
update
Update an existing notification- Parameters:
notifInfo-
-
send
Sends the message by Mail, UI or any the configured channel- Parameters:
ctx-
-