Skip to content
Permalink
Browse files
Bug fix in resource fetching
  • Loading branch information
isururanawaka committed Sep 10, 2021
1 parent 78839ef commit b1087ca22fd0c18d31a360634525fb0cfca9b2e2
Showing 1 changed file with 3 additions and 3 deletions.
@@ -556,9 +556,9 @@ public void searchResource(ResourceSearchRequest
" OPTIONAL MATCH (g:Group)<-[:MEMBER_OF]-(u) " +
" OPTIONAL MATCH (s:Storage{entityId:'" + storageId + "'})<-[:CHILD_OF]-(r:" + value + ")-[relR:SHARED_WITH]->(u)" +
" OPTIONAL MATCH (sp:Storage{entityId:'" + storageId + "'})<-[:CHILD_OF]-(rg:" + value + ")-[relRG:SHARED_WITH]->(g)" +
" OPTIONAL MATCH (s2:Storage{entityId:'" + storageId + "'})<-[:CHILD_OF*]-(r2:" + value + ")-[relR2:SHARED_WITH]->(u) where NOT r2.owner=$username" +
" OPTIONAL MATCH (s3:Storage{entityId:'" + storageId + "'})<-[:CHILD_OF*]-(r3:" + value + ")-[relR3:SHARED_WITH]->(u) where NOT r3.owner=$username" +
" return distinct r,relR, rg,relRG, r2,relR2, r3,relR3 ";
" OPTIONAL MATCH (s2:Storage{entityId:'" + storageId + "'})<-[:CHILD_OF*]-(r2:" + value + ")-[relR2:SHARED_WITH]->(u) where NOT r2.owner=$username " +
" AND NOT (r2)-[:CHILD_OF*]->(r)" +
" return distinct r,relR, rg,relRG, r2,relR2";
keyList = new ArrayList();
keyList.add("r:relR");
keyList.add("rg:relRG");

0 comments on commit b1087ca

Please sign in to comment.