|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.archiva.security.DefaultUserRepositories
@Service(value="userRepositories") public class DefaultUserRepositories
DefaultUserRepositories
Field Summary | |
---|---|
private org.slf4j.Logger |
log
|
private ManagedRepositoryAdmin |
managedRepositoryAdmin
|
private org.apache.archiva.redback.role.RoleManager |
roleManager
|
private org.apache.archiva.redback.system.SecuritySystem |
securitySystem
|
Constructor Summary | |
---|---|
DefaultUserRepositories()
|
Method Summary | |
---|---|
void |
createMissingRepositoryRoles(String repoId)
Create any missing repository roles for the provided repository id. |
private org.apache.archiva.redback.system.SecuritySession |
createSession(String principal)
|
List<ManagedRepository> |
getAccessibleRepositories(String principal)
|
private List<ManagedRepository> |
getAccessibleRepositories(String principal,
String operation)
|
private List<String> |
getAccessibleRepositoryIds(String principal,
String operation)
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@Inject private org.apache.archiva.redback.system.SecuritySystem securitySystem
@Inject private org.apache.archiva.redback.role.RoleManager roleManager
@Inject private ManagedRepositoryAdmin managedRepositoryAdmin
private org.slf4j.Logger log
Constructor Detail |
---|
public DefaultUserRepositories()
Method Detail |
---|
public List<String> getObservableRepositoryIds(String principal) throws PrincipalNotFoundException, AccessDeniedException, ArchivaSecurityException
UserRepositories
getObservableRepositoryIds
in interface UserRepositories
principal
- the principle to obtain the observable repository ids from.
PrincipalNotFoundException
AccessDeniedException
ArchivaSecurityException
public List<String> getManagableRepositoryIds(String principal) throws PrincipalNotFoundException, AccessDeniedException, ArchivaSecurityException
UserRepositories
getManagableRepositoryIds
in interface UserRepositories
principal
- the principle to obtain the observable repository ids from.
PrincipalNotFoundException
AccessDeniedException
ArchivaSecurityException
private List<String> getAccessibleRepositoryIds(String principal, String operation) throws ArchivaSecurityException, AccessDeniedException, PrincipalNotFoundException
ArchivaSecurityException
AccessDeniedException
PrincipalNotFoundException
public List<ManagedRepository> getAccessibleRepositories(String principal) throws ArchivaSecurityException, AccessDeniedException, PrincipalNotFoundException
getAccessibleRepositories
in interface UserRepositories
ArchivaSecurityException
AccessDeniedException
PrincipalNotFoundException
private List<ManagedRepository> getAccessibleRepositories(String principal, String operation) throws ArchivaSecurityException, AccessDeniedException, PrincipalNotFoundException
ArchivaSecurityException
AccessDeniedException
PrincipalNotFoundException
private org.apache.archiva.redback.system.SecuritySession createSession(String principal) throws ArchivaSecurityException, AccessDeniedException
ArchivaSecurityException
AccessDeniedException
public void createMissingRepositoryRoles(String repoId) throws ArchivaSecurityException
UserRepositories
createMissingRepositoryRoles
in interface UserRepositories
repoId
- 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
UserRepositories
isAuthorizedToUploadArtifacts
in interface UserRepositories
PrincipalNotFoundException
ArchivaSecurityException
public boolean isAuthorizedToDeleteArtifacts(String principal, String repoId) throws ArchivaSecurityException
UserRepositories
isAuthorizedToDeleteArtifacts
in interface UserRepositories
ArchivaSecurityException
AccessDeniedException
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |