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>
|
||||
<packaging>war</packaging>
|
||||
<name>SBD-UploadAndSharePortlets Portlet</name>
|
||||
<version>1.3.0-SNAPSHOT</version>
|
||||
<version>1.3.0</version>
|
||||
<description>
|
||||
Upload Dataset And Share Idea Portlets
|
||||
</description>
|
||||
|
@ -37,7 +37,7 @@
|
|||
<dependency>
|
||||
<groupId>org.gcube.distribution</groupId>
|
||||
<artifactId>maven-portal-bom</artifactId>
|
||||
<version>4.0.0-SNAPSHOT</version>
|
||||
<version>4.0.0</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -288,11 +288,12 @@ public class RequestVRE extends MVCPortlet {
|
|||
body += getPublicLinksForAttachs(workspace, attachmentsList);
|
||||
} catch (Exception e) {
|
||||
_log.error("Ops, could not generate publick link for some of the attachments");
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
MessageManagerClient client = AbstractPlugin.messages().build();
|
||||
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,
|
||||
new SocialNetworkingUser(currentUser.getScreenName(), currentUser.getEmailAddress(),
|
||||
currentUser.getFullName(), ""));
|
||||
|
@ -314,6 +315,7 @@ public class RequestVRE extends MVCPortlet {
|
|||
private String getPublicLinksForAttachs(Workspace workspace, List<String> listAttachmentsId)
|
||||
throws ItemNotFoundException, InternalErrorException {
|
||||
|
||||
_log.debug("Generating public link for attachments: " + listAttachmentsId.toString());
|
||||
if (listAttachmentsId != null && (!listAttachmentsId.isEmpty())) {
|
||||
List<WorkspaceItem> attachments = new ArrayList<WorkspaceItem>();
|
||||
for (String itemId : listAttachmentsId) {
|
||||
|
@ -321,7 +323,7 @@ public class RequestVRE extends MVCPortlet {
|
|||
attachments.add(workspace.getItem(itemId));
|
||||
} catch (Exception e) {
|
||||
_log.error(
|
||||
"getPublicLinksForAttachs FAILED while trying workspace.getItem id=" + itemId);
|
||||
"in getPublicLinksForAttachs FAILED while trying workspace.getItem id=" + itemId);
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue