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>
|
||||
<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>
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
@ -55,4 +54,6 @@ public class ConstantsPortlet {
|
|||
public static final int COOKIE_EXPIRE_DAYS = 30;
|
||||
public static final long MILLISECS_PER_DAY = 1000L * 60L * 60L * 24L;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
@ -17,6 +18,7 @@ public class SearchItemByIdEvent extends GwtEvent<SearchItemByIdEventHandler> {
|
|||
|
||||
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
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue