Class BaseNotificationPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
- Direct Known Subclasses:
AbstractNotificationChildPlugin,AbstractNotificationPlugin
public abstract class BaseNotificationPlugin
extends org.exoplatform.container.component.BaseComponentPlugin
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMakes notificationvoidend(NotificationContext ctx) End the plug inabstract StringgetId()Gets Notification Plug in keygetKey()Creates the key for NotificationPluginprotected org.exoplatform.services.organization.OrganizationServicebooleanDetermines the plugin is old or new mechanism The target adapts the old plugin from PLF 4.1 to work well new mechanismabstract booleanCheck, for each plugin, if we will send notificationprotected abstract NotificationInfoMakes MessageInfo from given information what keep inside NotificationContextvoidsetOldPlugin(boolean isOldPlugin) Sets the flag value TRUE/FALSE The target adapts the old plugin on PLF 4.1 to work well new mechanismvoidstart(NotificationContext ctx) Start the plug inMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
BaseNotificationPlugin
public BaseNotificationPlugin(org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
getPluginConfigs
-
start
Start the plug in- Parameters:
ctx-
-
end
End the plug in- Parameters:
ctx-
-
isOldPlugin
public 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- Returns:
-
setOldPlugin
public 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- Parameters:
isOldPlugin-
-
getId
Gets Notification Plug in key- Returns:
-
isValid
Check, for each plugin, if we will send notification- Returns:
-
makeNotification
Makes MessageInfo from given information what keep inside NotificationContext- Parameters:
ctx-- Returns:
-
buildNotification
Makes notification- Parameters:
ctx-- Returns:
-
getKey
Creates the key for NotificationPlugin- Returns:
-
getOrganizationService
protected org.exoplatform.services.organization.OrganizationService getOrganizationService()
-