Skip to content
Permalink
Browse files
Merge pull request #69 from isururanawaka/sharing_service_impl
Bug fix in resource fetching
  • Loading branch information
isururanawaka committed Sep 10, 2021
2 parents b297d3c + b1087ca commit 11f6c28307f92d90e2e15c032df296e7b297632e
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 11f6c28

Please sign in to comment.