forked from D-Net/dnet-hadoop
added constraints to xquery so that to get only profiles with status manager or all
This commit is contained in:
parent
4c8d86493c
commit
83d2c84b77
|
@ -20,12 +20,15 @@ public class QueryInformationSystem {
|
||||||
private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') "
|
private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') "
|
||||||
+
|
+
|
||||||
" where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] " +
|
" where $x//CONFIGURATION/context[./@type='community' or ./@type='ri'] " +
|
||||||
|
" and ($x//context/param[./@name = 'status']/text() = 'manager' or $x//context/param[./@name = 'status']/text() = 'all') " +
|
||||||
" return " +
|
" return " +
|
||||||
"<community> " +
|
"<community> " +
|
||||||
"{$x//CONFIGURATION/context/@id}" +
|
"{$x//CONFIGURATION/context/@id}" +
|
||||||
"{$x//CONFIGURATION/context/@label}" +
|
"{$x//CONFIGURATION/context/@label}" +
|
||||||
"</community>";
|
"</community>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public CommunityMap getCommunityMap()
|
public CommunityMap getCommunityMap()
|
||||||
throws ISLookUpException {
|
throws ISLookUpException {
|
||||||
return getMap(isLookUp.quickSearchProfile(XQUERY));
|
return getMap(isLookUp.quickSearchProfile(XQUERY));
|
||||||
|
|
Loading…
Reference in New Issue