NIHVIVO-3523 Add the concept of a PermissionSetForPublic (and rename PermissionSetForNewUsers)
This commit is contained in:
parent
779c48c683
commit
e5894ee80a
8 changed files with 52 additions and 26 deletions
|
@ -358,9 +358,15 @@ public class UserAccountsDaoJenaTest extends AbstractTestClass {
|
|||
PermissionSet ps2 = new PermissionSet();
|
||||
ps2.setUri(URI_ROLE2);
|
||||
ps2.setLabel("Role 2");
|
||||
ps2.setDefaultForNewUsers(true);
|
||||
ps2.setForNewUsers(true);
|
||||
expected.add(ps2);
|
||||
|
||||
PermissionSet ps3 = new PermissionSet();
|
||||
ps3.setUri(URI_ROLE3);
|
||||
ps3.setLabel("Role 3");
|
||||
ps3.setForPublic(true);
|
||||
expected.add(ps3);
|
||||
|
||||
assertCorrectPermissionSets(expected, dao.getAllPermissionSets());
|
||||
}
|
||||
|
||||
|
@ -467,7 +473,8 @@ public class UserAccountsDaoJenaTest extends AbstractTestClass {
|
|||
map.put("uri", ps.getUri());
|
||||
map.put("label", ps.getLabel());
|
||||
map.put("permissions", ps.getPermissionUris());
|
||||
map.put("defaultForNewUsers", ps.isDefaultForNewUsers());
|
||||
map.put("forNewUsers", ps.isForNewUsers());
|
||||
map.put("forPublic", ps.isForPublic());
|
||||
return map;
|
||||
}
|
||||
|
||||
|
|
|
@ -31,10 +31,16 @@ mydomain:role1
|
|||
|
||||
mydomain:role2
|
||||
a auth:PermissionSet ;
|
||||
a auth:DefaultPermissionSetForNewUsers ;
|
||||
a auth:PermissionSetForNewUsers ;
|
||||
rdfs:label "Role 2" ;
|
||||
.
|
||||
|
||||
mydomain:role3
|
||||
a auth:PermissionSet ;
|
||||
a auth:PermissionSetForPublic ;
|
||||
rdfs:label "Role 3" ;
|
||||
.
|
||||
|
||||
mydomain:permissionA
|
||||
a auth:Permission ;
|
||||
rdfs:label "Permission A" ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue