Class PostNewsNotificationPlugin
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
-
- org.exoplatform.news.notification.plugin.PostNewsNotificationPlugin
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class PostNewsNotificationPlugin extends org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
-
-
Field Summary
Fields Modifier and Type Field Description static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>ACTIVITY_LINKstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>AUTHOR_AVATAR_URLstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>CONTENT_AUTHORstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>CONTENT_SPACEstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>CONTENT_SPACE_IDstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>CONTENT_TITLEstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<NotificationConstants.NOTIFICATION_CONTEXT>CONTEXTstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>CURRENT_USERstatic StringIDstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>ILLUSTRATION_URLstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>NEWS_ID
-
Constructor Summary
Constructors Constructor Description PostNewsNotificationPlugin(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.organization.OrganizationService organizationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetId()booleanisValid(org.exoplatform.commons.api.notification.NotificationContext ctx)protected org.exoplatform.commons.api.notification.model.NotificationInfomakeNotification(org.exoplatform.commons.api.notification.NotificationContext ctx)-
Methods inherited from class org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
buildNotification, end, getKey, getOrganizationService, getPluginConfigs, isOldPlugin, setOldPlugin, start
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
CONTENT_TITLE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> CONTENT_TITLE
-
CONTENT_AUTHOR
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> CONTENT_AUTHOR
-
CONTENT_SPACE
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> CONTENT_SPACE
-
CONTENT_SPACE_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> CONTENT_SPACE_ID
-
ILLUSTRATION_URL
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> ILLUSTRATION_URL
-
AUTHOR_AVATAR_URL
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> AUTHOR_AVATAR_URL
-
ACTIVITY_LINK
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> ACTIVITY_LINK
-
NEWS_ID
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> NEWS_ID
-
CONTEXT
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<NotificationConstants.NOTIFICATION_CONTEXT> CONTEXT
-
CURRENT_USER
public static final org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> CURRENT_USER
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin classorg.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
-
isValid
public boolean isValid(org.exoplatform.commons.api.notification.NotificationContext ctx)
- Specified by:
isValidin classorg.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
-
makeNotification
protected org.exoplatform.commons.api.notification.model.NotificationInfo makeNotification(org.exoplatform.commons.api.notification.NotificationContext ctx)
- Specified by:
makeNotificationin classorg.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
-
-