ready to release
This commit is contained in:
parent
7b3b7bd8b2
commit
3d61223be3
4
pom.xml
4
pom.xml
|
@ -13,7 +13,7 @@
|
||||||
<artifactId>sbd-uploadshare-portlet</artifactId>
|
<artifactId>sbd-uploadshare-portlet</artifactId>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
<name>SBD-UploadAndSharePortlets Portlet</name>
|
<name>SBD-UploadAndSharePortlets Portlet</name>
|
||||||
<version>1.3.0-SNAPSHOT</version>
|
<version>1.3.0</version>
|
||||||
<description>
|
<description>
|
||||||
Upload Dataset And Share Idea Portlets
|
Upload Dataset And Share Idea Portlets
|
||||||
</description>
|
</description>
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.distribution</groupId>
|
<groupId>org.gcube.distribution</groupId>
|
||||||
<artifactId>maven-portal-bom</artifactId>
|
<artifactId>maven-portal-bom</artifactId>
|
||||||
<version>4.0.0-SNAPSHOT</version>
|
<version>4.0.0</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
|
@ -288,11 +288,12 @@ public class RequestVRE extends MVCPortlet {
|
||||||
body += getPublicLinksForAttachs(workspace, attachmentsList);
|
body += getPublicLinksForAttachs(workspace, attachmentsList);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
_log.error("Ops, could not generate publick link for some of the attachments");
|
_log.error("Ops, could not generate publick link for some of the attachments");
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageManagerClient client = AbstractPlugin.messages().build();
|
MessageManagerClient client = AbstractPlugin.messages().build();
|
||||||
String messageId = client.sendMessage(recipientIds, subject, body, attachmentsList);
|
String messageId = client.sendMessage(recipientIds, subject, body, attachmentsList);
|
||||||
_log.info("Sending new VRE Request message notification to: " + recipientIds.toString());
|
_log.debug("Sending new VRE Request message notification to: " + recipientIds.toString());
|
||||||
NotificationsManager nm = new ApplicationNotificationsManager(new SocialNetworkingSite(request), context,
|
NotificationsManager nm = new ApplicationNotificationsManager(new SocialNetworkingSite(request), context,
|
||||||
new SocialNetworkingUser(currentUser.getScreenName(), currentUser.getEmailAddress(),
|
new SocialNetworkingUser(currentUser.getScreenName(), currentUser.getEmailAddress(),
|
||||||
currentUser.getFullName(), ""));
|
currentUser.getFullName(), ""));
|
||||||
|
@ -314,6 +315,7 @@ public class RequestVRE extends MVCPortlet {
|
||||||
private String getPublicLinksForAttachs(Workspace workspace, List<String> listAttachmentsId)
|
private String getPublicLinksForAttachs(Workspace workspace, List<String> listAttachmentsId)
|
||||||
throws ItemNotFoundException, InternalErrorException {
|
throws ItemNotFoundException, InternalErrorException {
|
||||||
|
|
||||||
|
_log.debug("Generating public link for attachments: " + listAttachmentsId.toString());
|
||||||
if (listAttachmentsId != null && (!listAttachmentsId.isEmpty())) {
|
if (listAttachmentsId != null && (!listAttachmentsId.isEmpty())) {
|
||||||
List<WorkspaceItem> attachments = new ArrayList<WorkspaceItem>();
|
List<WorkspaceItem> attachments = new ArrayList<WorkspaceItem>();
|
||||||
for (String itemId : listAttachmentsId) {
|
for (String itemId : listAttachmentsId) {
|
||||||
|
@ -321,7 +323,7 @@ public class RequestVRE extends MVCPortlet {
|
||||||
attachments.add(workspace.getItem(itemId));
|
attachments.add(workspace.getItem(itemId));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
_log.error(
|
_log.error(
|
||||||
"getPublicLinksForAttachs FAILED while trying workspace.getItem id=" + itemId);
|
"in getPublicLinksForAttachs FAILED while trying workspace.getItem id=" + itemId);
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue