1
0
Fork 0

added constraints to xquery so that to get only profiles with status manager or all

This commit is contained in:
Miriam Baglioni 2020-07-07 18:09:48 +02:00
parent 4c8d86493c
commit 83d2c84b77
1 changed files with 3 additions and 0 deletions

View File

@ -20,12 +20,15 @@ public class QueryInformationSystem {
private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') "
+
" 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 " +
"<community> " +
"{$x//CONFIGURATION/context/@id}" +
"{$x//CONFIGURATION/context/@label}" +
"</community>";
public CommunityMap getCommunityMap()
throws ISLookUpException {
return getMap(isLookUp.quickSearchProfile(XQUERY));