git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/branches/information-system/ic-client/1.0@139979 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
928c944f07
commit
81062f433d
|
@ -25,11 +25,9 @@ public class Helper {
|
|||
{
|
||||
|
||||
String scope = ScopeProvider.instance.get();
|
||||
System.out.println("inside filter");
|
||||
|
||||
if (scope==null || !new ScopeBean(scope).is(VRE))
|
||||
return expression;
|
||||
System.out.println("filtering");
|
||||
|
||||
int wherePathIndex=0;
|
||||
int returnPathIndex=0;
|
||||
|
@ -188,51 +186,12 @@ public class Helper {
|
|||
for (Entry<String, String> entry: varReplacementMap.entrySet())
|
||||
queryFiltered = queryFiltered.replace(entry.getKey(), entry.getValue());
|
||||
|
||||
/*
|
||||
if (inSubResultString.compareTo("")!=0){
|
||||
String newInSubResultString = inSubResultString;
|
||||
for (Entry<String, String> entry: varReplacementMap.entrySet())
|
||||
newInSubResultString = newInSubResultString.replace(entry.getKey(), entry.getValue());
|
||||
|
||||
queryFiltered =queryFiltered.replace(inSubResultString, newInSubResultString);
|
||||
/*
|
||||
String firstVar=inSubResultMat.group(2);
|
||||
String replaceVar=inSubResultMat.group(3);
|
||||
|
||||
queryFiltered= queryFiltered.replace(firstVar, replaceVar);
|
||||
System.out.println(firstVar);
|
||||
System.out.println(replaceVar);
|
||||
System.out.println("query filtered final: "+queryFiltered);
|
||||
|
||||
} else
|
||||
queryFiltered=queryFiltered.replace(inSubResultString, "");
|
||||
*/
|
||||
|
||||
log.trace("submitting filtered query: {}",queryFiltered);
|
||||
System.out.println("filtering "+queryFiltered);
|
||||
return queryFiltered;
|
||||
}
|
||||
|
||||
/*
|
||||
private static class Pair {
|
||||
private String toInsert;
|
||||
//is strange Behaviour is true if we are searching for RI , GHN or Service
|
||||
private boolean isStrangeBehaviour;
|
||||
|
||||
public Pair(String toInsert, boolean isStrangeBehaviour){
|
||||
this.toInsert= toInsert;
|
||||
this.isStrangeBehaviour= isStrangeBehaviour;
|
||||
}
|
||||
|
||||
public String getToInsert(){
|
||||
return this.toInsert;
|
||||
}
|
||||
|
||||
public boolean isStrangeBehaviour(){
|
||||
return this.isStrangeBehaviour;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue