| | |
| | | pType = PermissionType.REGEX;
|
| | | source = registrant;
|
| | | }
|
| | | if (AccessPermission.MISSING.equals(entry.getValue())) {
|
| | | // repository can not be found, permission is not editable
|
| | | editable = false;
|
| | | }
|
| | | list.add(new RegistrantAccessPermission(registrant, entry.getValue(), pType, RegistrantType.REPOSITORY, source, editable));
|
| | | }
|
| | | Collections.sort(list);
|
| | |
| | | ap.registrant = username;
|
| | | ap.registrantType = RegistrantType.USER;
|
| | | ap.permission = AccessPermission.NONE;
|
| | | ap.isEditable = false;
|
| | | ap.mutable = false;
|
| | |
|
| | | // administrator
|
| | | if (canAdmin()) {
|
| | |
| | | if (p != null) {
|
| | | ap.permissionType = PermissionType.EXPLICIT;
|
| | | ap.permission = p;
|
| | | ap.isEditable = true;
|
| | | ap.mutable = true;
|
| | | return ap;
|
| | | }
|
| | | } else {
|