From 582886e7a6d32869077b4c100d39bcfbcd569769 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 22 Sep 2016 09:37:14 +0000 Subject: [PATCH] Fixed publicLink to false git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@131615 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../server/social/AlgorithmNotification.java | 21 +------------------ .../server/storage/FilesStorage.java | 2 +- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java index 195861f..4e2c399 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/social/AlgorithmNotification.java @@ -53,26 +53,7 @@ public class AlgorithmNotification extends Thread { algorithmPublicationEmail(); } - // private void algorithmPublicationNotify() { - // NotificationsManager nm = new ApplicationNotificationsManager( - // aslSession, Constants.APPLICATION_ID); - /* - * List members = Arrays.asList("gianpaolo.coro", - * "giancarlo.panichi", "roberto.cirillo"); for (String member : members) { - * try { nm.notifyAlgorithmPublicationRequest( member, - * project.getInputData().getProjectInfo() .getAlgorithmName(), new String( - * Constants.STATISTICAL_ALGORITHMS_IMPORTER_JAR_PUBLIC_LINK + "=" + - * project.getProjectTarget() .getCodeJar().getPublicLink())); - * - * } catch (Exception e) { logger.error("Error in the notification(Type: " + - * notificationType + " - " + aslSession.getUsername() + " =" + - * "Algorithm [AlgorithmName=" + project.getInputData().getProjectInfo() - * .getAlgorithmName() + ", JarPublicLink=" + - * project.getProjectTarget().getCodeJar() .getPublicLink() + "] to " + - * member + "): " + e.getLocalizedMessage()); e.printStackTrace(); } } - */ - - // } + private void algorithmPublicationEmail() { try { diff --git a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/storage/FilesStorage.java b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/storage/FilesStorage.java index 2df6acf..d3f0cff 100644 --- a/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/storage/FilesStorage.java +++ b/src/main/java/org/gcube/portlets/user/statisticalalgorithmsimporter/server/storage/FilesStorage.java @@ -68,7 +68,7 @@ public class FilesStorage { } if (workSpaceItem instanceof FolderItem) { - return workSpaceItem.getPublicLink(true); + return workSpaceItem.getPublicLink(false); } else { throw new StatAlgoImporterServiceException( "Attention no public link for this item!");