public abstract class BaseNotificationPlugin
extends org.exoplatform.container.component.BaseComponentPlugin
| Constructor and Description |
|---|
BaseNotificationPlugin(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
NotificationInfo |
buildNotification(NotificationContext ctx)
Makes notification
|
void |
end(NotificationContext ctx)
End the plug in
|
abstract String |
getId()
Gets Notification Plug in key
|
PluginKey |
getKey()
Creates the key for NotificationPlugin
|
protected org.exoplatform.services.organization.OrganizationService |
getOrganizationService() |
List<PluginConfig> |
getPluginConfigs() |
boolean |
isOldPlugin()
Determines the plugin is old or new mechanism
The target adapts the old plugin from PLF 4.1 to work well new mechanism
|
abstract boolean |
isValid(NotificationContext ctx)
Check, for each plugin, if we will send notification
|
protected abstract NotificationInfo |
makeNotification(NotificationContext ctx)
Makes MessageInfo from given information what keep inside NotificationContext
|
void |
setOldPlugin(boolean isOldPlugin)
Sets the flag value TRUE/FALSE
The target adapts the old plugin on PLF 4.1 to work well new mechanism
|
void |
start(NotificationContext ctx)
Start the plug in
|
public BaseNotificationPlugin(org.exoplatform.container.xml.InitParams initParams)
public List<PluginConfig> getPluginConfigs()
public void start(NotificationContext ctx)
ctx - public void end(NotificationContext ctx)
ctx - public boolean isOldPlugin()
public void setOldPlugin(boolean isOldPlugin)
isOldPlugin - public abstract String getId()
public abstract boolean isValid(NotificationContext ctx)
protected abstract NotificationInfo makeNotification(NotificationContext ctx)
ctx - public NotificationInfo buildNotification(NotificationContext ctx)
ctx - public PluginKey getKey()
protected org.exoplatform.services.organization.OrganizationService getOrganizationService()
Copyright © 2003–2021 eXo Platform SAS. All rights reserved.