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:
Francesco Mangiacrapa 2013-06-26 12:25:29 +00:00
parent 078599f602
commit 5e5b88d473
4 changed files with 23 additions and 6 deletions

13
pom.xml
View File

@ -111,6 +111,19 @@
<version>[1.1.0-SNAPSHOT, 2.0.0-SNAPSHOT)</version>
<scope>provided</scope>
</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>
<groupId>org.gcube.portlets.user</groupId>
<artifactId>home-library</artifactId>

View File

@ -6,8 +6,8 @@ import java.util.HashMap;
import java.util.List;
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.WsPortletInitOperation;
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.AccountingReadersEvent;

View File

@ -19,7 +19,6 @@ public class ConstantsPortlet {
public static final String GET_SEARCH_PARAMETER ="search";
public static final String GET_ITEMID_PARAMETER ="itemid";
public static final String GET_OPEARATION_PARAMETER ="operation";
public static enum WsPortletInitOperation {sharelink, gotofolder}; //DEFAULT OPERATION IS GOTOFOLDER
// 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 int COOKIE_EXPIRE_DAYS = 30;
public static final long MILLISECS_PER_DAY = 1000L * 60L * 60L * 24L;
}

View File

@ -1,6 +1,7 @@
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;
@ -16,7 +17,8 @@ public class SearchItemByIdEvent extends GwtEvent<SearchItemByIdEventHandler> {
private String itemId;
private WsPortletInitOperation operationParameter = null;
public SearchItemByIdEvent(String itemId, String op) {
this.itemId = itemId;
@ -27,12 +29,13 @@ public class SearchItemByIdEvent extends GwtEvent<SearchItemByIdEventHandler> {
else if(op.compareToIgnoreCase(WsPortletInitOperation.gotofolder.toString())==0)
operationParameter = WsPortletInitOperation.gotofolder;
else
operationParameter = ConstantsExplorer.DEFAULT_OPERATION; //DEFAULT OPERATION
}else
if(operationParameter==null)
operationParameter = WsPortletInitOperation.gotofolder; //DEFAULT OPERATION
operationParameter = ConstantsExplorer.DEFAULT_OPERATION; //DEFAULT OPERATION
}