ref 11724: SAI - Update to StorageHUB
https://support.d4science.org/issues/11724 Updated to StorageHub git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@169581 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
82b6a37aec
commit
f87af35e07
4
pom.xml
4
pom.xml
|
@ -323,12 +323,12 @@
|
|||
<version>[1.0.0-SNAPSHOT,2.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Workspace Explorer -->
|
||||
<!-- Workspace Explorer -->
|
||||
<dependency>
|
||||
<groupId>org.gcube.portlets.widgets</groupId>
|
||||
<artifactId>workspace-explorer</artifactId>
|
||||
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
|
||||
</dependency>
|
||||
</dependency>
|
||||
|
||||
<!-- Workspace Uploader -->
|
||||
<dependency>
|
||||
|
|
|
@ -35,7 +35,8 @@ public class ProjectFolderSelectionCard extends WizardCard {
|
|||
@Override
|
||||
public void onSelectedItem(Item item) {
|
||||
|
||||
if (item.getType() == ItemType.FOLDER) {
|
||||
if (item.getType() == ItemType.FOLDER||item.getType() == ItemType.PRIVATE_FOLDER
|
||||
||item.getType() == ItemType.SHARED_FOLDER||item.getType() == ItemType.VRE_FOLDER) {
|
||||
createNewProjectFolder(item);
|
||||
|
||||
} else {
|
||||
|
|
|
@ -155,7 +155,8 @@ public class ProjectManager {
|
|||
@Override
|
||||
public void onSelectedItem(Item item) {
|
||||
|
||||
if (item.getType() == ItemType.FOLDER) {
|
||||
if (item.getType() == ItemType.FOLDER||item.getType() == ItemType.PRIVATE_FOLDER
|
||||
||item.getType() == ItemType.SHARED_FOLDER||item.getType() == ItemType.VRE_FOLDER) {
|
||||
openProjectOnServer(item);
|
||||
|
||||
} else {
|
||||
|
@ -235,11 +236,8 @@ public class ProjectManager {
|
|||
public void addResource() {
|
||||
List<ItemType> selectableTypes = new ArrayList<ItemType>();
|
||||
selectableTypes.add(ItemType.EXTERNAL_FILE);
|
||||
selectableTypes.add(ItemType.EXTERNAL_IMAGE);
|
||||
selectableTypes.add(ItemType.IMAGE_DOCUMENT);
|
||||
selectableTypes.add(ItemType.DOCUMENT);
|
||||
selectableTypes.add(ItemType.PDF_DOCUMENT);
|
||||
|
||||
|
||||
|
||||
List<ItemType> showableTypes = new ArrayList<ItemType>();
|
||||
showableTypes.addAll(Arrays.asList(ItemType.values()));
|
||||
|
||||
|
@ -250,9 +248,8 @@ public class ProjectManager {
|
|||
|
||||
@Override
|
||||
public void onSelectedItem(Item item) {
|
||||
if (item.getType() == ItemType.EXTERNAL_FILE || item.getType() == ItemType.EXTERNAL_IMAGE
|
||||
|| item.getType() == ItemType.IMAGE_DOCUMENT || item.getType() == ItemType.DOCUMENT
|
||||
|| item.getType() == ItemType.PDF_DOCUMENT) {
|
||||
if (item.getType() != ItemType.FOLDER&&item.getType() != ItemType.PRIVATE_FOLDER
|
||||
&&item.getType() != ItemType.SHARED_FOLDER&&item.getType() != ItemType.VRE_FOLDER) {
|
||||
String filename = item.getName();
|
||||
if (filename != null && !filename.isEmpty()) {
|
||||
addResourceToProject(item);
|
||||
|
|
Loading…
Reference in New Issue