public interface UserRepositories
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.
|
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.
|
List<String> getObservableRepositoryIds(String principal) throws PrincipalNotFoundException, AccessDeniedException, ArchivaSecurityException
principal
- the principle to obtain the observable repository ids from.PrincipalNotFoundException
AccessDeniedException
ArchivaSecurityException
List<String> getManagableRepositoryIds(String principal) throws PrincipalNotFoundException, AccessDeniedException, ArchivaSecurityException
principal
- the principle to obtain the observable repository ids from.PrincipalNotFoundException
AccessDeniedException
ArchivaSecurityException
void createMissingRepositoryRoles(String repoId) throws ArchivaSecurityException
repoId
- the repository id to work off of.ArchivaSecurityException
- if there was a problem creating the repository roles.boolean isAuthorizedToUploadArtifacts(String principal, String repoId) throws PrincipalNotFoundException, ArchivaSecurityException
principal
- repoId
- PrincipalNotFoundException
ArchivaSecurityException
boolean isAuthorizedToDeleteArtifacts(String principal, String repoId) throws AccessDeniedException, ArchivaSecurityException
principal
- repoId
- ArchivaSecurityException
AccessDeniedException
List<ManagedRepository> getAccessibleRepositories(String principal) throws ArchivaSecurityException, AccessDeniedException, PrincipalNotFoundException
principal
- ArchivaSecurityException
AccessDeniedException
PrincipalNotFoundException
List<ManagedRepository> getManagableRepositories(String principal) throws ArchivaSecurityException, AccessDeniedException, PrincipalNotFoundException
principal
- ArchivaSecurityException
AccessDeniedException
PrincipalNotFoundException
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.