diff options
author | Martin Stockhammer <martin_s@apache.org> | 2020-11-26 22:21:03 +0100 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2020-11-26 22:21:03 +0100 |
commit | 2f4b1d241950261ce635d84f04ed45132e88e2ba (patch) | |
tree | 9cc4ab2feb6f15e508b0b113cca90a0448a36cbc /archiva-modules/archiva-base/archiva-security-common | |
parent | a2442befca1e7b9c9f81cc434d86cf7b7ed8cd41 (diff) | |
download | archiva-2f4b1d241950261ce635d84f04ed45132e88e2ba.tar.gz archiva-2f4b1d241950261ce635d84f04ed45132e88e2ba.zip |
Adding id methods for roles
Diffstat (limited to 'archiva-modules/archiva-base/archiva-security-common')
-rw-r--r-- | archiva-modules/archiva-base/archiva-security-common/src/main/java/org/apache/archiva/security/common/ArchivaRoleConstants.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-security-common/src/main/java/org/apache/archiva/security/common/ArchivaRoleConstants.java b/archiva-modules/archiva-base/archiva-security-common/src/main/java/org/apache/archiva/security/common/ArchivaRoleConstants.java index 36ab17c6a..4700d9646 100644 --- a/archiva-modules/archiva-base/archiva-security-common/src/main/java/org/apache/archiva/security/common/ArchivaRoleConstants.java +++ b/archiva-modules/archiva-base/archiva-security-common/src/main/java/org/apache/archiva/security/common/ArchivaRoleConstants.java @@ -40,6 +40,7 @@ public class ArchivaRoleConstants public static final String REPOSITORY_MANAGER_ROLE_PREFIX = "Repository Manager"; public static final String REPOSITORY_OBSERVER_ROLE_PREFIX = "Repository Observer"; + public static final String REPOSITORY_OBSERVER_ROLE_ID_PREFIX = "archiva-repository-observer"; // operations public static final String OPERATION_MANAGE_USERS = "archiva-manage-users"; @@ -87,4 +88,9 @@ public class ArchivaRoleConstants { return REPOSITORY_OBSERVER_ROLE_PREFIX + " - " + repoId; } + + public static String toRepositoryObserverRoleId( String repoId ) + { + return REPOSITORY_OBSERVER_ROLE_ID_PREFIX + "." + repoId; + } } |