Class ShareFileToSpacePlugin
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
-
- org.exoplatform.wcm.notification.plugin.ShareFileToSpacePlugin
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class ShareFileToSpacePlugin 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_IDstatic StringCOMMENTstatic StringDOCUMENT_ICONstatic StringDOCUMENT_NAMEstatic StringDOCUMENT_URLstatic StringFULL_DISUSSIONstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>ICONstatic StringIDstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>MESSAGEstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>MIMETYPEstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<javax.jcr.Node>NODEstatic StringNODE_IDstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>NODEIDstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>PERMstatic StringPERMISSIONstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>RECEIVERstatic StringREPLYstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>SENDERstatic StringSPACE_NAMEstatic StringSPACE_URLstatic StringTYPEstatic org.exoplatform.commons.api.notification.model.ArgumentLiteral<String>URL
-
Constructor Summary
Constructors Constructor Description ShareFileToSpacePlugin(org.exoplatform.container.xml.InitParams initParams)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringcapitalizeFirstLetter(String word)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
-
DOCUMENT_URL
public static final String DOCUMENT_URL
- See Also:
- Constant Field Values
-
SPACE_URL
public static final String SPACE_URL
- See Also:
- Constant Field Values
-
DOCUMENT_NAME
public static final String DOCUMENT_NAME
- See Also:
- Constant Field Values
-
SPACE_NAME
public static final String SPACE_NAME
- See Also:
- Constant Field Values
-
DOCUMENT_ICON
public static final String DOCUMENT_ICON
- See Also:
- Constant Field Values
-
COMMENT
public static final String COMMENT
- See Also:
- Constant Field Values
-
PERMISSION
public static final String PERMISSION
- See Also:
- Constant Field Values
-
REPLY
public static final String REPLY
- See Also:
- Constant Field Values
-
FULL_DISUSSION
public static final String FULL_DISUSSION
- See Also:
- Constant Field Values
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
NODE_ID
public static final String NODE_ID
- See Also:
- Constant Field Values
-
NODE
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<javax.jcr.Node> NODE
-
SENDER
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> SENDER
-
NODEID
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> NODEID
-
RECEIVER
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> RECEIVER
-
PERM
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> PERM
-
URL
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> URL
-
MESSAGE
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> MESSAGE
-
ICON
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> ICON
-
ACTIVITY_ID
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> ACTIVITY_ID
-
MIMETYPE
public static org.exoplatform.commons.api.notification.model.ArgumentLiteral<String> MIMETYPE
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getIdin 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
-
isValid
public boolean isValid(org.exoplatform.commons.api.notification.NotificationContext ctx)
- Specified by:
isValidin classorg.exoplatform.commons.api.notification.plugin.BaseNotificationPlugin
-
-