git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@176384 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b03cfa85a7
commit
3ee7c2e52f
|
@ -149,9 +149,14 @@ public class ItemsManager {
|
||||||
try{
|
try{
|
||||||
ses = repository.getRepository().login(CredentialHandler.getAdminCredentials(context));
|
ses = repository.getRepository().login(CredentialHandler.getAdminCredentials(context));
|
||||||
authChecker.checkReadAuthorizationControl(ses, id);
|
authChecker.checkReadAuthorizationControl(ses, id);
|
||||||
NodeIterator it = ses.getNodeByIdentifier(id).getNodes(name);
|
NodeIterator it = ses.getNodeByIdentifier(id).getNodes();
|
||||||
while (it.hasNext())
|
while (it.hasNext()) {
|
||||||
toReturn.add(node2Item.getItem(it.nextNode(), excludes));
|
Node child= it.nextNode();
|
||||||
|
Item item = node2Item.getItem(child, excludes);
|
||||||
|
if (item.getName().equalsIgnoreCase(name) || item.getTitle().equalsIgnoreCase(name))
|
||||||
|
toReturn.add(item);
|
||||||
|
}
|
||||||
|
|
||||||
}catch(RepositoryException re){
|
}catch(RepositoryException re){
|
||||||
log.error("jcr error searching item", re);
|
log.error("jcr error searching item", re);
|
||||||
GXOutboundErrorResponse.throwException(new BackendGenericError("jcr error searching item", re));
|
GXOutboundErrorResponse.throwException(new BackendGenericError("jcr error searching item", re));
|
||||||
|
|
Loading…
Reference in New Issue