@Service(value="userRepositories") public class DefaultUserRepositories extends Object implements UserRepositories
| Constructor and Description |
|---|
DefaultUserRepositories() |
| Modifier and Type | Method and Description |
|---|---|
void |
createMissingRepositoryRoles(String repoId)
Create any missing repository roles for the provided repository id.
|
List<ManagedRepository> |
getAccessibleRepositories(String principal) |
List<ManagedRepository> |
getManagableRepositories(String principal)
Returns a list of repositories for which the user has the manager role.
|
List<String> |
getManagableRepositoryIds(String principal)
Get the list of writable repository ids for the user specified.
|
List<String> |
getObservableRepositoryIds(String principal)
Get the list of observable repository ids for the user specified.
|
org.apache.archiva.redback.role.RoleManager |
getRoleManager() |
org.apache.archiva.redback.system.SecuritySystem |
getSecuritySystem() |
boolean |
isAuthorizedToDeleteArtifacts(String principal,
String repoId)
Check if user is authorized to delete artifacts in the repository.
|
boolean |
isAuthorizedToUploadArtifacts(String principal,
String repoId)
Check if user is authorized to upload artifacts in the repository.
|
void |
setRoleManager(org.apache.archiva.redback.role.RoleManager roleManager) |
void |
setSecuritySystem(org.apache.archiva.redback.system.SecuritySystem securitySystem) |
public DefaultUserRepositories()
public List<String> getObservableRepositoryIds(String principal) throws PrincipalNotFoundException, AccessDeniedException, ArchivaSecurityException
UserRepositoriesgetObservableRepositoryIds in interface UserRepositoriesprincipal - the principle to obtain the observable repository ids from.PrincipalNotFoundExceptionAccessDeniedExceptionArchivaSecurityExceptionpublic List<String> getManagableRepositoryIds(String principal) throws PrincipalNotFoundException, AccessDeniedException, ArchivaSecurityException
UserRepositoriesgetManagableRepositoryIds in interface UserRepositoriesprincipal - the principle to obtain the observable repository ids from.PrincipalNotFoundExceptionAccessDeniedExceptionArchivaSecurityExceptionpublic List<ManagedRepository> getAccessibleRepositories(String principal) throws ArchivaSecurityException, AccessDeniedException, PrincipalNotFoundException
getAccessibleRepositories in interface UserRepositoriesArchivaSecurityExceptionAccessDeniedExceptionPrincipalNotFoundExceptionpublic List<ManagedRepository> getManagableRepositories(String principal) throws ArchivaSecurityException, AccessDeniedException, PrincipalNotFoundException
UserRepositoriesgetManagableRepositories in interface UserRepositoriesArchivaSecurityExceptionAccessDeniedExceptionPrincipalNotFoundExceptionpublic void createMissingRepositoryRoles(String repoId) throws ArchivaSecurityException
UserRepositoriescreateMissingRepositoryRoles in interface UserRepositoriesrepoId - the repository id to work off of.ArchivaSecurityException - if there was a problem creating the repository roles.public boolean isAuthorizedToUploadArtifacts(String principal, String repoId) throws PrincipalNotFoundException, ArchivaSecurityException
UserRepositoriesisAuthorizedToUploadArtifacts in interface UserRepositoriesPrincipalNotFoundExceptionArchivaSecurityExceptionpublic boolean isAuthorizedToDeleteArtifacts(String principal, String repoId) throws ArchivaSecurityException
UserRepositoriesisAuthorizedToDeleteArtifacts in interface UserRepositoriesArchivaSecurityExceptionAccessDeniedExceptionpublic org.apache.archiva.redback.system.SecuritySystem getSecuritySystem()
public void setSecuritySystem(org.apache.archiva.redback.system.SecuritySystem securitySystem)
public org.apache.archiva.redback.role.RoleManager getRoleManager()
public void setRoleManager(org.apache.archiva.redback.role.RoleManager roleManager)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.