changed error messages
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@77322 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
078599f602
commit
5e5b88d473
13
pom.xml
13
pom.xml
|
@ -111,6 +111,19 @@
|
||||||
<version>[1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
<version>[1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- <dependency> -->
|
||||||
|
<!-- <groupId>org.gcube.portlets.user</groupId> -->
|
||||||
|
<!-- <artifactId>home-library</artifactId> -->
|
||||||
|
<!-- <version>[4.3.0-SNAPSHOT, 4.6.0-SNAPSHOT)</version> -->
|
||||||
|
<!-- <scope>provided</scope> -->
|
||||||
|
<!-- </dependency> -->
|
||||||
|
<!-- <dependency> -->
|
||||||
|
<!-- <groupId>org.gcube.portlets.user</groupId> -->
|
||||||
|
<!-- <artifactId>home-library-jcr</artifactId> -->
|
||||||
|
<!-- <version>[1.3.0-SNAPSHOT, 1.6.0-SNAPSHOT)</version> -->
|
||||||
|
<!-- <scope>provided</scope> -->
|
||||||
|
<!-- </dependency> -->
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.gcube.portlets.user</groupId>
|
<groupId>org.gcube.portlets.user</groupId>
|
||||||
<artifactId>home-library</artifactId>
|
<artifactId>home-library</artifactId>
|
||||||
|
|
|
@ -6,8 +6,8 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.gcube.portlets.user.workspace.client.ConstantsExplorer.ViewSwitchType;
|
import org.gcube.portlets.user.workspace.client.ConstantsExplorer.ViewSwitchType;
|
||||||
|
import org.gcube.portlets.user.workspace.client.ConstantsExplorer.WsPortletInitOperation;
|
||||||
import org.gcube.portlets.user.workspace.client.ConstantsPortlet.ViewSwitchTypeInResult;
|
import org.gcube.portlets.user.workspace.client.ConstantsPortlet.ViewSwitchTypeInResult;
|
||||||
import org.gcube.portlets.user.workspace.client.ConstantsPortlet.WsPortletInitOperation;
|
|
||||||
import org.gcube.portlets.user.workspace.client.event.AccountingHistoryEvent;
|
import org.gcube.portlets.user.workspace.client.event.AccountingHistoryEvent;
|
||||||
import org.gcube.portlets.user.workspace.client.event.AccountingHistoryEventHandler;
|
import org.gcube.portlets.user.workspace.client.event.AccountingHistoryEventHandler;
|
||||||
import org.gcube.portlets.user.workspace.client.event.AccountingReadersEvent;
|
import org.gcube.portlets.user.workspace.client.event.AccountingReadersEvent;
|
||||||
|
|
|
@ -19,7 +19,6 @@ public class ConstantsPortlet {
|
||||||
public static final String GET_SEARCH_PARAMETER ="search";
|
public static final String GET_SEARCH_PARAMETER ="search";
|
||||||
public static final String GET_ITEMID_PARAMETER ="itemid";
|
public static final String GET_ITEMID_PARAMETER ="itemid";
|
||||||
public static final String GET_OPEARATION_PARAMETER ="operation";
|
public static final String GET_OPEARATION_PARAMETER ="operation";
|
||||||
public static enum WsPortletInitOperation {sharelink, gotofolder}; //DEFAULT OPERATION IS GOTOFOLDER
|
|
||||||
|
|
||||||
|
|
||||||
// Div Gwt
|
// Div Gwt
|
||||||
|
@ -54,5 +53,7 @@ public class ConstantsPortlet {
|
||||||
public static final String GCUBE_COOKIE_WORKSPACE_GRID_VIEW_SETTING = "GCUBE-Cookie-WorkspaceGridViewSetting";
|
public static final String GCUBE_COOKIE_WORKSPACE_GRID_VIEW_SETTING = "GCUBE-Cookie-WorkspaceGridViewSetting";
|
||||||
public static final int COOKIE_EXPIRE_DAYS = 30;
|
public static final int COOKIE_EXPIRE_DAYS = 30;
|
||||||
public static final long MILLISECS_PER_DAY = 1000L * 60L * 60L * 24L;
|
public static final long MILLISECS_PER_DAY = 1000L * 60L * 60L * 24L;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.gcube.portlets.user.workspace.client.event;
|
package org.gcube.portlets.user.workspace.client.event;
|
||||||
|
|
||||||
import org.gcube.portlets.user.workspace.client.ConstantsPortlet.WsPortletInitOperation;
|
import org.gcube.portlets.user.workspace.client.ConstantsExplorer;
|
||||||
|
import org.gcube.portlets.user.workspace.client.ConstantsExplorer.WsPortletInitOperation;
|
||||||
|
|
||||||
import com.google.gwt.event.shared.GwtEvent;
|
import com.google.gwt.event.shared.GwtEvent;
|
||||||
|
|
||||||
|
@ -16,7 +17,8 @@ public class SearchItemByIdEvent extends GwtEvent<SearchItemByIdEventHandler> {
|
||||||
private String itemId;
|
private String itemId;
|
||||||
|
|
||||||
private WsPortletInitOperation operationParameter = null;
|
private WsPortletInitOperation operationParameter = null;
|
||||||
|
|
||||||
|
|
||||||
public SearchItemByIdEvent(String itemId, String op) {
|
public SearchItemByIdEvent(String itemId, String op) {
|
||||||
this.itemId = itemId;
|
this.itemId = itemId;
|
||||||
|
|
||||||
|
@ -27,12 +29,13 @@ public class SearchItemByIdEvent extends GwtEvent<SearchItemByIdEventHandler> {
|
||||||
else if(op.compareToIgnoreCase(WsPortletInitOperation.gotofolder.toString())==0)
|
else if(op.compareToIgnoreCase(WsPortletInitOperation.gotofolder.toString())==0)
|
||||||
operationParameter = WsPortletInitOperation.gotofolder;
|
operationParameter = WsPortletInitOperation.gotofolder;
|
||||||
|
|
||||||
|
else
|
||||||
|
operationParameter = ConstantsExplorer.DEFAULT_OPERATION; //DEFAULT OPERATION
|
||||||
|
|
||||||
}else
|
}else
|
||||||
|
|
||||||
if(operationParameter==null)
|
if(operationParameter==null)
|
||||||
operationParameter = WsPortletInitOperation.gotofolder; //DEFAULT OPERATION
|
operationParameter = ConstantsExplorer.DEFAULT_OPERATION; //DEFAULT OPERATION
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue