added support for Tabular Data Manager notifications
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/application-support-layer/applicationSupportLayerSocial@115313 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
026db663d2
commit
46fb568e69
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
|||
|
||||
<groupId>org.gcube.applicationsupportlayer</groupId>
|
||||
<artifactId>aslsocial</artifactId>
|
||||
<version>0.13.1-SNAPSHOT</version>
|
||||
<version>0.14.0-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>Social Portal ASL Extension</name>
|
||||
<description>
|
||||
|
|
|
@ -778,7 +778,6 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
|||
|
||||
return saveNotification(not);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
@ -811,7 +810,28 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
|||
aslSession.getUserAvatarId());
|
||||
|
||||
return saveNotification(not);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean notifyTDMTabularResourceSharing(String userIdToNotify,
|
||||
String tabularResourceName, String encodedTabularResourceParams,
|
||||
String vreName) throws Exception {
|
||||
// TODO Auto-generated method stub
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public boolean notifyTDMObjectSharing(String userIdToNotify,
|
||||
NotificationType type, String tdmObjectName,
|
||||
String encodedTabularResourceParams, String vreName)
|
||||
throws Exception {
|
||||
// TODO Auto-generated method stub
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* read the portal instance name from a property file and returns it
|
||||
|
@ -862,6 +882,4 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen
|
|||
_log.debug("Returning SENDER_EMAIL: " + toReturn );
|
||||
return toReturn;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.gcube.common.homelibrary.home.workspace.WorkspaceFolder;
|
|||
import org.gcube.common.homelibrary.home.workspace.WorkspaceItem;
|
||||
import org.gcube.common.homelibrary.home.workspace.WorkspaceSharedFolder;
|
||||
import org.gcube.portal.databook.shared.ApplicationProfile;
|
||||
import org.gcube.portal.databook.shared.NotificationType;
|
||||
import org.gcube.portal.databook.shared.RunningJob;
|
||||
/**
|
||||
*
|
||||
|
@ -284,5 +285,26 @@ public interface NotificationsManager {
|
|||
* @return true if the notification is correctly delivered, false otherwise
|
||||
*/
|
||||
boolean notifyDocumentWorkflowStepForwardComplete(String userIdToNotify, String documentWorkflowId, String documentName, String fromStepName, String toStepName);
|
||||
/**
|
||||
* use to notify a user he got a Tabular Data Resource shared
|
||||
*
|
||||
* @param userIdToNotify the user you want to notify
|
||||
* @param tabularResourceName the shared tabular resource name
|
||||
* @param encodedTabularResourceParams the parameters to be placed in the HTTP GET Request (must be encoded)
|
||||
* @param vreName the VRE in which the action was performed
|
||||
* @return true if the notification is correctly delivered, false otherwise
|
||||
*/
|
||||
boolean notifyTDMTabularResourceSharing(String userIdToNotify, String tabularResourceName, String encodedTabularResourceParams, String vreName) throws Exception;
|
||||
/**
|
||||
* use to notify a user he got a Tabular Data Resource shared
|
||||
*
|
||||
* @param userIdToNotify the user you want to notify
|
||||
* @param type type of the shared tdm object (TDM Rule or TDM Template at the moment)
|
||||
* @param tdmObjectName the name
|
||||
* @param encodedTabularResourceParams the parameters to be placed in the HTTP GET Request (must be encoded)
|
||||
* @param vreName the VRE in which the action was performed
|
||||
* @return true if the notification is correctly delivered, false otherwise
|
||||
*/
|
||||
boolean notifyTDMObjectSharing(String userIdToNotify, NotificationType type, String tdmObjectName, String encodedTabularResourceParams, String vreName) throws Exception;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue