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') "
|
||||
+
|
||||
" 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));
|
||||
|
|
Loading…
Reference in New Issue