| | |
| | | */
|
| | | public List<RegistrantAccessPermission> getRepositoryPermissions() {
|
| | | List<RegistrantAccessPermission> list = new ArrayList<RegistrantAccessPermission>();
|
| | | if (canAdmin) {
|
| | | // team has REWIND access to all repositories
|
| | | return list;
|
| | | }
|
| | | for (Map.Entry<String, AccessPermission> entry : permissions.entrySet()) {
|
| | | String registrant = entry.getKey();
|
| | | String source = null;
|
| | |
| | | ap.registrant = name;
|
| | | ap.registrantType = RegistrantType.TEAM;
|
| | | ap.permission = AccessPermission.NONE;
|
| | | ap.isEditable = false;
|
| | | ap.mutable = false;
|
| | |
|
| | | if (canAdmin) {
|
| | | ap.permissionType = PermissionType.ADMINISTRATOR;
|
| | |
| | | if (p != null) {
|
| | | ap.permissionType = PermissionType.EXPLICIT;
|
| | | ap.permission = p;
|
| | | ap.isEditable = true;
|
| | | ap.mutable = true;
|
| | | return ap;
|
| | | }
|
| | | } else {
|