This commit is contained in:
Lucio Lelii 2018-09-27 15:31:36 +00:00
parent 2fd18396ce
commit 3ec9a982e0
2 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ public class DefaultItemManager implements ItemManagerClient {
@Override
public Integer childrenCount(String id) {
return childrenCount(null);
return childrenCount(id, null);
}
private String resolveNodeType(Class<? extends Item> itemClass){

View File

@ -51,7 +51,7 @@ public class TestCall {
//SecurityTokenProvider.instance.set("0e2c7963-8d3e-4ea6-a56d-ffda530dd0fa-98187548");
//token costantino 9ca79556-54b0-4bbf-ab0f-151ae326f4cf-98187548
SecurityTokenProvider.instance.set("ae1208f0-210d-47c9-9b24-d3f2dfcce05f-98187548");
SecurityTokenProvider.instance.set("d9431600-9fef-41a7-946d-a5b402de30d6-98187548");
ScopeProvider.instance.set("/gcube");
}
@ -199,7 +199,7 @@ public class TestCall {
public void getCount() throws Exception{
final ItemManagerClient client = AbstractPlugin.item().build();
long start = System.currentTimeMillis();
System.out.println("found "+client.childrenCount("07cd8d55-a35b-4445-9680-c98f158c55de")+" children");
System.out.println("found "+client.childrenCount("bc1c9525-43f7-4565-b5ea-0a0f9d7853a0")+" children");
System.out.println("count took: "+(System.currentTimeMillis()-start) );