updated test
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@113480 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f47867e50b
commit
cdb36a4e36
|
@ -52,8 +52,7 @@ public class EditPermissionsTest {
|
||||||
.getHome(TEST_USER)
|
.getHome(TEST_USER)
|
||||||
.getWorkspace();
|
.getWorkspace();
|
||||||
|
|
||||||
// a65d0c7a-5ef3-4e61-b12f-715146368b6b shared folder name: My Data owner pasquale.pagano isVRE false ACLOwner: {ADMINISTRATOR=[pasquale.pagano], WRITE_OWNER=[leonardo.candela, francesco.mangiacrapa, giancarlo.panichi]} AclUser: WRITE_OWNER
|
WorkspaceFolder sharedFolder = (WorkspaceFolder) ws.getItem("bd5fa899-225d-4547-a3c5-79b5333cde20");
|
||||||
WorkspaceFolder sharedFolder = (WorkspaceFolder) ws.getItem("a65d0c7a-5ef3-4e61-b12f-715146368b6b");
|
|
||||||
|
|
||||||
System.out.println(sharedFolder.getACLOwner());
|
System.out.println(sharedFolder.getACLOwner());
|
||||||
|
|
||||||
|
@ -103,10 +102,10 @@ public class EditPermissionsTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String username : listLogins) {
|
for (String username : listLogins) {
|
||||||
System.out.println("Checking username: "+username);
|
System.out.println("\nChecking username: "+username);
|
||||||
for (ACLType aclHL : mapACL.keySet()) {
|
for (ACLType aclHL : mapACL.keySet()) {
|
||||||
|
|
||||||
if(!aclHL.equals(ACLType.ADMINISTRATOR)){
|
|
||||||
List<String> loginsHL = mapACL.get(aclHL);
|
List<String> loginsHL = mapACL.get(aclHL);
|
||||||
System.out.println("to ACLType: "+aclHL +", logins found: "+loginsHL);
|
System.out.println("to ACLType: "+aclHL +", logins found: "+loginsHL);
|
||||||
|
|
||||||
|
@ -128,9 +127,6 @@ public class EditPermissionsTest {
|
||||||
System.out.println("[Login not found], Set ACL: "+settingACL+ " to "+username);
|
System.out.println("[Login not found], Set ACL: "+settingACL+ " to "+username);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (InternalErrorException e) {
|
} catch (InternalErrorException e) {
|
||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
|
|
Loading…
Reference in New Issue