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:
parent
f32505da19
commit
582886e7a6
|
@ -53,26 +53,7 @@ public class AlgorithmNotification extends Thread {
|
||||||
algorithmPublicationEmail();
|
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() {
|
private void algorithmPublicationEmail() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class FilesStorage {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (workSpaceItem instanceof FolderItem) {
|
if (workSpaceItem instanceof FolderItem) {
|
||||||
return workSpaceItem.getPublicLink(true);
|
return workSpaceItem.getPublicLink(false);
|
||||||
} else {
|
} else {
|
||||||
throw new StatAlgoImporterServiceException(
|
throw new StatAlgoImporterServiceException(
|
||||||
"Attention no public link for this item!");
|
"Attention no public link for this item!");
|
||||||
|
|
Loading…
Reference in New Issue