Resource Management / Monitor wrong generic resource query Fixed

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/admin/rmp-common-library@114051 82a268e6-3cf1-43bd-a215-b396298e98cf
Feature/25384
Massimiliano Assante 9 years ago
parent 1337834b56
commit 01db133d00

@ -30,7 +30,6 @@
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<!-- Don't let your Mac use a crazy non-standard encoding -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

@ -25,6 +25,7 @@ import org.gcube.resourcemanagement.support.shared.types.UserGroup;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.Window;
/**
* @author Daniele Strollo (ISTI-CNR)
@ -65,7 +66,7 @@ public final class CurrentStatus implements Serializable {
return currentScope;
}
public void setCurrentResourceType(final String resType) {
public void setCurrentResourceType(String resType) {
if (resType != null) {
currentResourceType = resType.trim();
} else {

@ -1,3 +1,4 @@
for $resource in collection('/db/Profiles/<RES_TYPE ISdefault ='' />')//Resource
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
for $resource in collection('/db/Profiles/<RES_TYPE ISdefault ='' />')//Document/Data/ic:Profile/Resource
where $resource/ID/string() eq '<RES_ID/>'
return $resource

@ -1,4 +1,4 @@
let $entry0ValueAuth := collection("/db/Profiles")//Resource
for $types in distinct-values($entry0ValueAuth//Resource/Type/text())
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
let $entry0ValueAuth := collection("/db/Profiles")//Document/Data/ic:Profile/Resource
for $types in distinct-values($entry0ValueAuth/Type/text())
return <type>{$types}</type>

@ -1,6 +1,7 @@
for $profiles in collection('/db/Profiles/GenericResource')//Resource
declare namespace ic = 'http://gcube-system.org/namespaces/informationsystem/registry';
for $profiles in collection('/db/Profiles/GenericResource')//Document/Data/ic:Profile/Resource
let $scopes := string-join( $profiles/Scopes//Scope/text(), ';')
let $subtype := $profiles//Resource/Profile/SecondaryType/text()
let $subtype := $profiles/Profile/SecondaryType/text()
<RES_SUBTYPE ISdefault =''/>
return
<RESOURCE/>
Loading…
Cancel
Save