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
This commit is contained in:
Giancarlo Panichi 2016-09-22 09:37:14 +00:00
parent f32505da19
commit 582886e7a6
2 changed files with 2 additions and 21 deletions

View File

@ -53,26 +53,7 @@ public class AlgorithmNotification extends Thread {
algorithmPublicationEmail();
}
// private void algorithmPublicationNotify() {
// NotificationsManager nm = new ApplicationNotificationsManager(
// aslSession, Constants.APPLICATION_ID);
/*
* List<String> 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 {

View File

@ -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!");