public class SocialCommunications extends Object
| Constructor and Description |
|---|
SocialCommunications() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getBaseUrlSocialService(javax.servlet.http.HttpServletRequest httpServletRequest) |
static String |
getEncodedUrlManage(RevertableOperations operation,
String administrator,
long timestamp,
String uuid,
javax.servlet.http.HttpServletRequest httpServletRequest)
Create the url to be send for reverting the operation
|
static void |
sendEmailAdministratorsOnMerge(String serviceUrl,
ManageProductBean bean,
org.gcube.datacatalogue.ckanutillibrary.server.DataCatalogue catalogue,
String username,
String fullName,
long groupId,
javax.servlet.http.HttpServletRequest httpServletRequest,
boolean isMergeInvolved)
Send an email to the administrator as well as the
|
static void |
sendEmailAdministratorsOnOperationReverted(String serviceUrl,
RevertableOperationInfo rInfo,
long groupId) |
static void |
writePostOnRevert(String serviceUrl,
RevertableOperationInfo rInfo,
boolean enablePostNotification)
Notify the users about the required changes.
|
static void |
writeProductPost(String serviceUrl,
ManageProductBean bean,
String username,
String fullName,
boolean enablePostNotification)
Notify the users about the required changes.
|
public static String getBaseUrlSocialService(javax.servlet.http.HttpServletRequest httpServletRequest)
httpServletRequest - context - public static void writePostOnRevert(String serviceUrl, RevertableOperationInfo rInfo, boolean enablePostNotification) throws Exception
bean - url - username - fullName - hashtags - enablePostNotification - Exceptionpublic static void writeProductPost(String serviceUrl, ManageProductBean bean, String username, String fullName, boolean enablePostNotification) throws Exception
bean - url - username - fullName - hashtags - enablePostNotification - Exceptionpublic static void sendEmailAdministratorsOnMerge(String serviceUrl, ManageProductBean bean, org.gcube.datacatalogue.ckanutillibrary.server.DataCatalogue catalogue, String username, String fullName, long groupId, javax.servlet.http.HttpServletRequest httpServletRequest, boolean isMergeInvolved) throws Exception
bean - catalogue - username - fullName - isMergeInvolved - httpSession - ExceptioExceptionpublic static void sendEmailAdministratorsOnOperationReverted(String serviceUrl, RevertableOperationInfo rInfo, long groupId) throws Exception
Exceptionpublic static String getEncodedUrlManage(RevertableOperations operation, String administrator, long timestamp, String uuid, javax.servlet.http.HttpServletRequest httpServletRequest) throws Exception
httpSession - ExceptionCopyright © 2018. All Rights Reserved.