diff --git a/.classpath b/.classpath
index 8bf3961..5c1ca82 100644
--- a/.classpath
+++ b/.classpath
@@ -1,6 +1,6 @@
-
+
@@ -29,12 +29,12 @@
-
-
-
+
+
+
diff --git a/.settings/org.eclipse.jst.jsp.core.prefs b/.settings/org.eclipse.jst.jsp.core.prefs
new file mode 100644
index 0000000..3a5c98d
--- /dev/null
+++ b/.settings/org.eclipse.jst.jsp.core.prefs
@@ -0,0 +1,3 @@
+eclipse.preferences.version=1
+validateFragments=false
+validation.use-project-settings=true
diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component
index 27ff50a..08fafe7 100644
--- a/.settings/org.eclipse.wst.common.component
+++ b/.settings/org.eclipse.wst.common.component
@@ -1,9 +1,9 @@
-
+
-
+
uses
diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml
index c24712e..afd5d47 100644
--- a/.settings/org.eclipse.wst.common.project.facet.core.xml
+++ b/.settings/org.eclipse.wst.common.project.facet.core.xml
@@ -4,4 +4,5 @@
+
diff --git a/.tern-project b/.tern-project
new file mode 100644
index 0000000..a185ba0
--- /dev/null
+++ b/.tern-project
@@ -0,0 +1 @@
+{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 0bc0235..faff41c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
org.gcube.portlets.admin
resource-management
- 5.3.0-SNAPSHOT
+ 5.4.0-SNAPSHOT
war
gCube Resource Management Portlet
@@ -25,7 +25,7 @@
- 2.5.1
+ 2.7.0
3.0
distro
@@ -54,11 +54,13 @@
com.google.gwt
gwt-user
+ ${gwtVersion}
provided
com.google.gwt
gwt-servlet
+ ${gwtVersion}
provided
@@ -73,8 +75,9 @@
com.sencha.gxt
- gxt
- 2.2.5
+ gxt2.2.5-gwt2.X
+ 2.7.0
+ compile
com.googlecode.gwtquery
@@ -90,6 +93,12 @@
org.gcube.common
home-library
provided
+
+
+ asm-all
+ asm
+
+
org.gcube.common
@@ -151,12 +160,12 @@
org.gcube.portlets.admin
ishealth-monitor-widget
- [1.0.0-SNAPSHOT, 2.0.0-SNAPSHOT)
+ [1.2.0-SNAPSHOT, 2.0.0-SNAPSHOT)
org.gcube.portlets.admin
resource-sweeper-widget
- [2.0.0-SNAPSHOT, 3.0.0-SNAPSHOT)
+ [2.2.0-SNAPSHOT, 3.0.0-SNAPSHOT)
org.gcube.portlets.admin
diff --git a/src/main/java/org/gcube/portlets/admin/resourcemanagement/client/utils/Commands.java b/src/main/java/org/gcube/portlets/admin/resourcemanagement/client/utils/Commands.java
index b94c684..5065160 100644
--- a/src/main/java/org/gcube/portlets/admin/resourcemanagement/client/utils/Commands.java
+++ b/src/main/java/org/gcube/portlets/admin/resourcemanagement/client/utils/Commands.java
@@ -31,7 +31,6 @@ import org.gcube.portlets.admin.resourcemanagement.client.widgets.taskbar.Taskba
import org.gcube.portlets.admin.resourcemanagement.client.widgets.taskbar.TaskbarRegister;
import org.gcube.portlets.admin.resourcemanagement.client.widgets.viewport.MainContainer;
import org.gcube.portlets.admin.resourcemanagement.shared.exceptions.WidgetNotRegistered;
-
import org.gcube.resourcemanagement.support.client.utils.StatusHandler;
import org.gcube.resourcemanagement.support.client.views.ResourceTypeDecorator;
import org.gcube.resourcemanagement.support.shared.types.Tuple;
@@ -52,6 +51,7 @@ import com.extjs.gxt.ui.client.widget.Text;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
/**
@@ -193,8 +193,7 @@ public class Commands {
Callbacks.handleFilterResourceDetailsGrid);
}
- public static final void doGetResourceProfileByID(
- final Object caller, final String scope, final String resourceID) {
+ public static final void doGetResourceProfileByID(final Object caller, final String scope, final String resourceID) {
ProxyRegistry.getProxyInstance().getResourceByID(
scope,
null, // no type specified
@@ -202,12 +201,18 @@ public class Commands {
Callbacks.handleGetResourceProfile);
}
- public static final void doGetResourceProfile(
- final Object caller, final String scope, final String resourceType, final String resourceID) {
+ public static final void doGetResourceProfile(final Object caller, final String scope, String resourceType, final String resourceID) {
+ /**
+ * Patch (i know do not tell me about it)
+ */
+ if (resourceType.compareTo("GenericResourceGenericResource") == 0) {
+ resourceType = "GenericResource";
+ GWT.log("resType changed to =" + resourceType);
+ }
StatusHandler.getStatus().setCurrentScope(scope);
StatusHandler.getStatus().setCurrentResourceType(resourceType);
Commands.mask(
- "Getting Profile Details for " + FWSTranslate.getFWSNameFromLabel(resourceType) + ": " + resourceID,
+ "Getting Profile details for " + FWSTranslate.getFWSNameFromLabel(resourceType) + ": " + resourceID,
WidgetsRegistry.getPanel(UIIdentifiers.RESOURCE_DETAIL_GRID_PANEL).getContainer()
);
ProxyRegistry.getProxyInstance().getResourceByID(
diff --git a/src/main/java/org/gcube/portlets/admin/resourcemanagement/server/ServiceProxyImpl.java b/src/main/java/org/gcube/portlets/admin/resourcemanagement/server/ServiceProxyImpl.java
index 44e40e0..912076a 100644
--- a/src/main/java/org/gcube/portlets/admin/resourcemanagement/server/ServiceProxyImpl.java
+++ b/src/main/java/org/gcube/portlets/admin/resourcemanagement/server/ServiceProxyImpl.java
@@ -413,7 +413,8 @@ public class ServiceProxyImpl extends RemoteServiceServlet implements ServicePro
public final CompleteResourceProfile getResourceByID(final String scope, final String type, final String resID) {
try {
CompleteResourceProfile profile = ISClientRequester.getResourceByID(this.getXML2HTMLMapping(), new ScopeBean(scope), type, resID);
- System.out.println("CompleteResourceProfile getResourceByID(final String scope, final String type, final String resID)");
+ System.out.println("****\n\n\n CompleteResourceProfile getResourceByID(final String scope, final String type, final String resID) *****");
+ System.out.println("****CompleteResourceProfile getResourceByID("+scope+","+type+","+resID+") *****\n\n");
return profile;
} catch (Exception e) {
ServerConsole.error(LOG_PREFIX, e);
diff --git a/src/main/webapp/conf/resourcemanagement.properties b/src/main/webapp/conf/resourcemanagement.properties
index dd05aa9..1c60db9 100644
--- a/src/main/webapp/conf/resourcemanagement.properties
+++ b/src/main/webapp/conf/resourcemanagement.properties
@@ -11,7 +11,7 @@ RUNNING_MODE = STANDALONE
DEFAULT_USER = massimiliano.assante
# The scope that will be used as default
-DEFAULT_SCOPE =/d4science.research-infrastructures.eu
+DEFAULT_SCOPE =/gcube
# the target of update notification (if in singleton mode)
# mails MUST be separated by ;
USERMAIL_TO = m.assante@gmail.com