Updated support for Storage
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@134535 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
7edfb95f6a
commit
91ad8e8b6c
|
@ -1,12 +1,12 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="target/statistical-algorithms-importer-1.3.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
<classpathentry kind="src" output="target/statistical-algorithms-importer-1.4.0-SNAPSHOT/WEB-INF/classes" path="src/main/java">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="optional" value="true"/>
|
<attribute name="optional" value="true"/>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry excluding="**" kind="src" output="target/statistical-algorithms-importer-1.3.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
<classpathentry excluding="**" kind="src" output="target/statistical-algorithms-importer-1.4.0-SNAPSHOT/WEB-INF/classes" path="src/main/resources">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="maven.pomderived" value="true"/>
|
<attribute name="maven.pomderived" value="true"/>
|
||||||
</attributes>
|
</attributes>
|
||||||
|
@ -45,5 +45,5 @@
|
||||||
</classpathentry>
|
</classpathentry>
|
||||||
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA.jar" sourcepath="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA.jar" sourcepath="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
<classpathentry kind="lib" path="/home/giancarlo/gwt/gwt-2.6.1/validation-api-1.0.0.GA-sources.jar"/>
|
||||||
<classpathentry kind="output" path="target/statistical-algorithms-importer-1.3.0-SNAPSHOT/WEB-INF/classes"/>
|
<classpathentry kind="output" path="target/statistical-algorithms-importer-1.4.0-SNAPSHOT/WEB-INF/classes"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<ReleaseNotes>
|
<ReleaseNotes>
|
||||||
|
<Changeset component="${groupId}.${artifactId}.1-4-0" date="2016-12-01">
|
||||||
|
<Change>Updated Storage support</Change>
|
||||||
|
</Changeset>
|
||||||
<Changeset component="${groupId}.${artifactId}.1-3-0" date="2016-10-01">
|
<Changeset component="${groupId}.${artifactId}.1-3-0" date="2016-10-01">
|
||||||
<Change>SAI enhancements [Ticket #4896]</Change>
|
<Change>SAI enhancements [Ticket #4896]</Change>
|
||||||
<Change>Updated to Auth 2.0</Change>
|
<Change>Updated to Auth 2.0</Change>
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -13,7 +13,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
<artifactId>statistical-algorithms-importer</artifactId>
|
<artifactId>statistical-algorithms-importer</artifactId>
|
||||||
<version>1.3.0-SNAPSHOT</version>
|
<version>1.4.0-SNAPSHOT</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -74,8 +74,7 @@ public class FilesStorage {
|
||||||
"Attention no public link for this item!");
|
"Attention no public link for this item!");
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (WorkspaceFolderNotFoundException | InternalErrorException
|
} catch (Throwable e) {
|
||||||
| HomeNotFoundException | ItemNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
||||||
|
|
||||||
|
@ -284,9 +283,7 @@ public class FilesStorage {
|
||||||
|
|
||||||
return ws.find(name, parentId);
|
return ws.find(name, parentId);
|
||||||
|
|
||||||
} catch (WorkspaceFolderNotFoundException | InternalErrorException
|
} catch (Throwable e) {
|
||||||
| HomeNotFoundException | ItemNotFoundException
|
|
||||||
| WrongItemTypeException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
||||||
|
|
||||||
|
@ -465,9 +462,7 @@ public class FilesStorage {
|
||||||
|
|
||||||
return retrieveImputStream(user, projectItem);
|
return retrieveImputStream(user, projectItem);
|
||||||
|
|
||||||
} catch (WorkspaceFolderNotFoundException | InternalErrorException
|
} catch (Throwable e) {
|
||||||
| HomeNotFoundException | ItemNotFoundException
|
|
||||||
| WrongItemTypeException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
@ -501,9 +496,7 @@ public class FilesStorage {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (WorkspaceFolderNotFoundException | InternalErrorException
|
} catch (Throwable e) {
|
||||||
| HomeNotFoundException | ItemNotFoundException
|
|
||||||
| WrongItemTypeException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
@ -525,8 +518,7 @@ public class FilesStorage {
|
||||||
WorkspaceItem workSpaceItem = ws.getItem(itemId);
|
WorkspaceItem workSpaceItem = ws.getItem(itemId);
|
||||||
return workSpaceItem;
|
return workSpaceItem;
|
||||||
|
|
||||||
} catch (WorkspaceFolderNotFoundException | InternalErrorException
|
} catch (Throwable e) {
|
||||||
| HomeNotFoundException | ItemNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
@ -555,8 +547,7 @@ public class FilesStorage {
|
||||||
|
|
||||||
return retrieveImputStream(user, workSpaceItem);
|
return retrieveImputStream(user, workSpaceItem);
|
||||||
|
|
||||||
} catch (WorkspaceFolderNotFoundException | InternalErrorException
|
} catch (Throwable e) {
|
||||||
| HomeNotFoundException | ItemNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
@ -684,9 +675,7 @@ public class FilesStorage {
|
||||||
|
|
||||||
return fileZip;
|
return fileZip;
|
||||||
|
|
||||||
} catch (IOException | InternalErrorException
|
} catch (Throwable e) {
|
||||||
| WorkspaceFolderNotFoundException | HomeNotFoundException
|
|
||||||
| ItemNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
@ -711,9 +700,7 @@ public class FilesStorage {
|
||||||
|
|
||||||
return fileZip;
|
return fileZip;
|
||||||
|
|
||||||
} catch (IOException | InternalErrorException
|
} catch (Throwable e) {
|
||||||
| WorkspaceFolderNotFoundException | HomeNotFoundException
|
|
||||||
| ItemNotFoundException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
throw new StatAlgoImporterServiceException(e.getLocalizedMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue