This project has retired. For details please refer to its Attic page.
UserRepositories

org.apache.maven.archiva.security
Interface UserRepositories

Package class diagram package UserRepositories
All Known Implementing Classes:
DefaultUserRepositories

public interface UserRepositories

UserRepositories


Method Summary
 void createMissingRepositoryRoles(java.lang.String repoId)
          Create any missing repository roles for the provided repository id.
 java.util.List<java.lang.String> getManagableRepositoryIds(java.lang.String principal)
          Get the list of writable repository ids for the user specified.
 java.util.List<java.lang.String> getObservableRepositoryIds(java.lang.String principal)
          Get the list of observable repository ids for the user specified.
 boolean isAuthorizedToDeleteArtifacts(java.lang.String principal, java.lang.String repoId)
          Check if user is authorized to delete artifacts in the repository.
 boolean isAuthorizedToUploadArtifacts(java.lang.String principal, java.lang.String repoId)
          Check if user is authorized to upload artifacts in the repository.
 

Method Detail

getObservableRepositoryIds

java.util.List<java.lang.String> getObservableRepositoryIds(java.lang.String principal)
                                                            throws PrincipalNotFoundException,
                                                                   AccessDeniedException,
                                                                   ArchivaSecurityException
Get the list of observable repository ids for the user specified.

Parameters:
principal - the principle to obtain the observable repository ids from.
Returns:
the list of observable repository ids.
Throws:
PrincipalNotFoundException
AccessDeniedException
ArchivaSecurityException

getManagableRepositoryIds

java.util.List<java.lang.String> getManagableRepositoryIds(java.lang.String principal)
                                                           throws PrincipalNotFoundException,
                                                                  AccessDeniedException,
                                                                  ArchivaSecurityException
Get the list of writable repository ids for the user specified.

Parameters:
principal - the principle to obtain the observable repository ids from.
Returns:
the list of observable repository ids.
Throws:
PrincipalNotFoundException
AccessDeniedException
ArchivaSecurityException

createMissingRepositoryRoles

void createMissingRepositoryRoles(java.lang.String repoId)
                                  throws ArchivaSecurityException
Create any missing repository roles for the provided repository id.

Parameters:
repoId - the repository id to work off of.
Throws:
ArchivaSecurityException - if there was a problem creating the repository roles.

isAuthorizedToUploadArtifacts

boolean isAuthorizedToUploadArtifacts(java.lang.String principal,
                                      java.lang.String repoId)
                                      throws PrincipalNotFoundException,
                                             ArchivaSecurityException
Check if user is authorized to upload artifacts in the repository.

Parameters:
principal -
repoId -
Returns:
Throws:
PrincipalNotFoundException
ArchivaSecurityException

isAuthorizedToDeleteArtifacts

boolean isAuthorizedToDeleteArtifacts(java.lang.String principal,
                                      java.lang.String repoId)
                                      throws AccessDeniedException,
                                             ArchivaSecurityException
Check if user is authorized to delete artifacts in the repository.

Parameters:
principal -
repoId -
Returns:
Throws:
ArchivaSecurityException
AccessDeniedException