aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-security
diff options
context:
space:
mode:
authorJoakim Erdfelt <joakime@apache.org>2006-10-16 21:14:52 +0000
committerJoakim Erdfelt <joakime@apache.org>2006-10-16 21:14:52 +0000
commit3487a00459dede9c4c5dd20c95397d5dffff6009 (patch)
treeae6d44a28b16c6ce5ace90c5f95c218b2d9ef787 /archiva-security
parent3b77abb71805ab760de289c1cdd2f6ac7cb51cd2 (diff)
downloadarchiva-3487a00459dede9c4c5dd20c95397d5dffff6009.tar.gz
archiva-3487a00459dede9c4c5dd20c95397d5dffff6009.zip
Added javadoc, defined parameters.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@464671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-security')
-rw-r--r--archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryManagerDynamicRoleProfile.java9
-rw-r--r--archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryObserverDynamicRoleProfile.java9
2 files changed, 14 insertions, 4 deletions
diff --git a/archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryManagerDynamicRoleProfile.java b/archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryManagerDynamicRoleProfile.java
index 496495c15..c94fbac30 100644
--- a/archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryManagerDynamicRoleProfile.java
+++ b/archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryManagerDynamicRoleProfile.java
@@ -29,9 +29,14 @@ import java.util.List;
public class RepositoryManagerDynamicRoleProfile
extends AbstractDynamicRoleProfile
{
- public String getRoleName( String string )
+ /**
+ * Create the Role name for a Repository Manager, using the provided repository id.
+ *
+ * @param repoId the repository id
+ */
+ public String getRoleName( String repoId )
{
- return ArchivaRoleConstants.REPOSITORY_MANAGER_ROLE_PREFIX + ArchivaRoleConstants.DELIMITER + string;
+ return ArchivaRoleConstants.REPOSITORY_MANAGER_ROLE_PREFIX + ArchivaRoleConstants.DELIMITER + repoId;
}
public List getOperations()
diff --git a/archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryObserverDynamicRoleProfile.java b/archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryObserverDynamicRoleProfile.java
index 2dee2f9b3..91c730d20 100644
--- a/archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryObserverDynamicRoleProfile.java
+++ b/archiva-security/src/main/java/org/apache/maven/archiva/security/RepositoryObserverDynamicRoleProfile.java
@@ -28,9 +28,14 @@ import java.util.ArrayList;
public class RepositoryObserverDynamicRoleProfile
extends AbstractDynamicRoleProfile
{
- public String getRoleName( String string )
+ /**
+ * Create the Role name for a Repository Observer, using the provided repository id.
+ *
+ * @param repoId the repository id
+ */
+ public String getRoleName( String repoId )
{
- return ArchivaRoleConstants.REPOSITORY_OBSERVER_ROLE_PREFIX + ArchivaRoleConstants.DELIMITER + string;
+ return ArchivaRoleConstants.REPOSITORY_OBSERVER_ROLE_PREFIX + ArchivaRoleConstants.DELIMITER + repoId;
}
public List getOperations()