Added javadoc, defined parameters.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@464671 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Joakim Erdfelt 2006-10-16 21:14:52 +00:00
parent 3b77abb718
commit 3487a00459
2 changed files with 14 additions and 4 deletions

View File

@ -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()

View File

@ -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()