@Service(value="rbacManager#archiva") public class ArchivaRbacManager extends org.apache.archiva.redback.rbac.AbstractRBACManager implements org.apache.archiva.redback.rbac.RBACManager
Modifier and Type | Field and Description |
---|---|
private org.springframework.context.ApplicationContext |
applicationContext |
private org.apache.archiva.redback.components.cache.Cache<String,Set<org.apache.archiva.redback.rbac.Role>> |
effectiveRoleSetCache |
private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.Operation> |
operationsCache |
private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.Permission> |
permissionsCache |
private Map<String,org.apache.archiva.redback.rbac.RBACManager> |
rbacManagersPerId |
private RedbackRuntimeConfigurationAdmin |
redbackRuntimeConfigurationAdmin |
private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.Resource> |
resourcesCache |
private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.Role> |
rolesCache |
private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.UserAssignment> |
userAssignmentsCache |
private org.apache.archiva.redback.components.cache.Cache<String,Map<String,List<org.apache.archiva.redback.rbac.Permission>>> |
userPermissionsCache |
Constructor and Description |
---|
ArchivaRbacManager() |
Modifier and Type | Method and Description |
---|---|
org.apache.archiva.redback.rbac.Operation |
createOperation(String name) |
org.apache.archiva.redback.rbac.Permission |
createPermission(String name) |
org.apache.archiva.redback.rbac.Permission |
createPermission(String name,
String operationName,
String resourceIdentifier) |
org.apache.archiva.redback.rbac.Resource |
createResource(String identifier) |
org.apache.archiva.redback.rbac.Role |
createRole(String name) |
org.apache.archiva.redback.rbac.UserAssignment |
createUserAssignment(String principal) |
void |
eraseDatabase() |
List<org.apache.archiva.redback.rbac.Operation> |
getAllOperations() |
List<org.apache.archiva.redback.rbac.Permission> |
getAllPermissions() |
List<org.apache.archiva.redback.rbac.Resource> |
getAllResources() |
List<org.apache.archiva.redback.rbac.Role> |
getAllRoles() |
List<org.apache.archiva.redback.rbac.UserAssignment> |
getAllUserAssignments() |
String |
getDescriptionKey() |
org.apache.archiva.redback.rbac.Operation |
getOperation(String operationName) |
org.apache.archiva.redback.rbac.Permission |
getPermission(String permissionName) |
protected org.apache.archiva.redback.rbac.RBACManager |
getRbacManagerForWrite() |
org.apache.archiva.redback.rbac.Resource |
getResource(String resourceIdentifier) |
org.apache.archiva.redback.rbac.Role |
getRole(String roleName) |
org.apache.archiva.redback.rbac.UserAssignment |
getUserAssignment(String principal) |
List<org.apache.archiva.redback.rbac.UserAssignment> |
getUserAssignmentsForRoles(Collection<String> roleNames) |
void |
initialize() |
boolean |
isFinalImplementation() |
boolean |
isReadOnly() |
void |
removeOperation(org.apache.archiva.redback.rbac.Operation operation) |
void |
removePermission(org.apache.archiva.redback.rbac.Permission permission) |
void |
removeResource(org.apache.archiva.redback.rbac.Resource resource) |
void |
removeRole(org.apache.archiva.redback.rbac.Role role) |
void |
removeUserAssignment(org.apache.archiva.redback.rbac.UserAssignment userAssignment) |
boolean |
roleExists(org.apache.archiva.redback.rbac.Role role) |
boolean |
roleExists(String name) |
org.apache.archiva.redback.rbac.Operation |
saveOperation(org.apache.archiva.redback.rbac.Operation operation) |
org.apache.archiva.redback.rbac.Permission |
savePermission(org.apache.archiva.redback.rbac.Permission permission) |
org.apache.archiva.redback.rbac.Resource |
saveResource(org.apache.archiva.redback.rbac.Resource resource) |
org.apache.archiva.redback.rbac.Role |
saveRole(org.apache.archiva.redback.rbac.Role role) |
void |
saveRoles(Collection<org.apache.archiva.redback.rbac.Role> roles) |
org.apache.archiva.redback.rbac.UserAssignment |
saveUserAssignment(org.apache.archiva.redback.rbac.UserAssignment userAssignment) |
boolean |
userAssignmentExists(String principal) |
boolean |
userAssignmentExists(org.apache.archiva.redback.rbac.UserAssignment assignment) |
addChildRole, addListener, fireRbacInit, fireRbacPermissionRemoved, fireRbacPermissionSaved, fireRbacRoleRemoved, fireRbacRoleSaved, fireRbacUserAssignmentRemoved, fireRbacUserAssignmentSaved, getAllAssignableRoles, getAssignedPermissionMap, getAssignedPermissions, getAssignedRoles, getAssignedRoles, getChildRoles, getEffectivelyAssignedRoles, getEffectivelyAssignedRoles, getEffectivelyUnassignedRoles, getEffectiveRoles, getGlobalResource, getParentRoles, getRoles, getUnassignedRoles, operationExists, operationExists, permissionExists, permissionExists, removeListener, removeOperation, removePermission, removeResource, removeRole, removeUserAssignment, resourceExists, resourceExists
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChildRole, addListener, getAllAssignableRoles, getAssignedPermissionMap, getAssignedPermissions, getAssignedRoles, getAssignedRoles, getChildRoles, getEffectivelyAssignedRoles, getEffectivelyUnassignedRoles, getEffectiveRoles, getGlobalResource, getParentRoles, getRoles, getUnassignedRoles, operationExists, operationExists, permissionExists, permissionExists, removeListener, removeOperation, removePermission, removeResource, removeRole, removeUserAssignment, resourceExists, resourceExists
private Map<String,org.apache.archiva.redback.rbac.RBACManager> rbacManagersPerId
@Inject private org.springframework.context.ApplicationContext applicationContext
@Inject private RedbackRuntimeConfigurationAdmin redbackRuntimeConfigurationAdmin
@Inject @Named(value="cache#operations") private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.Operation> operationsCache
@Inject @Named(value="cache#permissions") private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.Permission> permissionsCache
@Inject @Named(value="cache#resources") private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.Resource> resourcesCache
@Inject @Named(value="cache#roles") private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.Role> rolesCache
@Inject @Named(value="cache#userAssignments") private org.apache.archiva.redback.components.cache.Cache<String,org.apache.archiva.redback.rbac.UserAssignment> userAssignmentsCache
@Inject @Named(value="cache#userPermissions") private org.apache.archiva.redback.components.cache.Cache<String,Map<String,List<org.apache.archiva.redback.rbac.Permission>>> userPermissionsCache
@Inject @Named(value="cache#effectiveRoleSet") private org.apache.archiva.redback.components.cache.Cache<String,Set<org.apache.archiva.redback.rbac.Role>> effectiveRoleSetCache
public ArchivaRbacManager()
public void initialize()
initialize
in interface org.apache.archiva.redback.rbac.RBACManager
initialize
in class org.apache.archiva.redback.rbac.AbstractRBACManager
protected org.apache.archiva.redback.rbac.RBACManager getRbacManagerForWrite()
public org.apache.archiva.redback.rbac.Role createRole(String name)
createRole
in interface org.apache.archiva.redback.rbac.RBACManager
public org.apache.archiva.redback.rbac.Role saveRole(org.apache.archiva.redback.rbac.Role role) throws org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
saveRole
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public void saveRoles(Collection<org.apache.archiva.redback.rbac.Role> roles) throws org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
saveRoles
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Role getRole(String roleName) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacManagerException
getRole
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacManagerException
public List<org.apache.archiva.redback.rbac.Role> getAllRoles() throws org.apache.archiva.redback.rbac.RbacManagerException
getAllRoles
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public void removeRole(org.apache.archiva.redback.rbac.Role role) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
removeRole
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Permission createPermission(String name) throws org.apache.archiva.redback.rbac.RbacManagerException
createPermission
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Permission createPermission(String name, String operationName, String resourceIdentifier) throws org.apache.archiva.redback.rbac.RbacManagerException
createPermission
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Permission savePermission(org.apache.archiva.redback.rbac.Permission permission) throws org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
savePermission
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Permission getPermission(String permissionName) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacManagerException
getPermission
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacManagerException
public List<org.apache.archiva.redback.rbac.Permission> getAllPermissions() throws org.apache.archiva.redback.rbac.RbacManagerException
getAllPermissions
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public void removePermission(org.apache.archiva.redback.rbac.Permission permission) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
removePermission
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Operation createOperation(String name) throws org.apache.archiva.redback.rbac.RbacManagerException
createOperation
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Operation saveOperation(org.apache.archiva.redback.rbac.Operation operation) throws org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
saveOperation
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Operation getOperation(String operationName) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacManagerException
getOperation
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacManagerException
public List<org.apache.archiva.redback.rbac.Operation> getAllOperations() throws org.apache.archiva.redback.rbac.RbacManagerException
getAllOperations
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public void removeOperation(org.apache.archiva.redback.rbac.Operation operation) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
removeOperation
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Resource createResource(String identifier) throws org.apache.archiva.redback.rbac.RbacManagerException
createResource
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Resource saveResource(org.apache.archiva.redback.rbac.Resource resource) throws org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
saveResource
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.Resource getResource(String resourceIdentifier) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacManagerException
getResource
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacManagerException
public List<org.apache.archiva.redback.rbac.Resource> getAllResources() throws org.apache.archiva.redback.rbac.RbacManagerException
getAllResources
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public void removeResource(org.apache.archiva.redback.rbac.Resource resource) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
removeResource
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.UserAssignment createUserAssignment(String principal) throws org.apache.archiva.redback.rbac.RbacManagerException
createUserAssignment
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.UserAssignment saveUserAssignment(org.apache.archiva.redback.rbac.UserAssignment userAssignment) throws org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
saveUserAssignment
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public org.apache.archiva.redback.rbac.UserAssignment getUserAssignment(String principal) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacManagerException
getUserAssignment
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacManagerException
public boolean userAssignmentExists(String principal)
userAssignmentExists
in interface org.apache.archiva.redback.rbac.RBACManager
userAssignmentExists
in class org.apache.archiva.redback.rbac.AbstractRBACManager
public boolean userAssignmentExists(org.apache.archiva.redback.rbac.UserAssignment assignment)
userAssignmentExists
in interface org.apache.archiva.redback.rbac.RBACManager
userAssignmentExists
in class org.apache.archiva.redback.rbac.AbstractRBACManager
public List<org.apache.archiva.redback.rbac.UserAssignment> getAllUserAssignments() throws org.apache.archiva.redback.rbac.RbacManagerException
getAllUserAssignments
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public List<org.apache.archiva.redback.rbac.UserAssignment> getUserAssignmentsForRoles(Collection<String> roleNames) throws org.apache.archiva.redback.rbac.RbacManagerException
getUserAssignmentsForRoles
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public void removeUserAssignment(org.apache.archiva.redback.rbac.UserAssignment userAssignment) throws org.apache.archiva.redback.rbac.RbacObjectNotFoundException, org.apache.archiva.redback.rbac.RbacObjectInvalidException, org.apache.archiva.redback.rbac.RbacManagerException
removeUserAssignment
in interface org.apache.archiva.redback.rbac.RBACManager
org.apache.archiva.redback.rbac.RbacObjectNotFoundException
org.apache.archiva.redback.rbac.RbacObjectInvalidException
org.apache.archiva.redback.rbac.RbacManagerException
public boolean roleExists(String name) throws org.apache.archiva.redback.rbac.RbacManagerException
roleExists
in interface org.apache.archiva.redback.rbac.RBACManager
roleExists
in class org.apache.archiva.redback.rbac.AbstractRBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public boolean roleExists(org.apache.archiva.redback.rbac.Role role) throws org.apache.archiva.redback.rbac.RbacManagerException
roleExists
in interface org.apache.archiva.redback.rbac.RBACManager
roleExists
in class org.apache.archiva.redback.rbac.AbstractRBACManager
org.apache.archiva.redback.rbac.RbacManagerException
public void eraseDatabase()
eraseDatabase
in interface org.apache.archiva.redback.rbac.RBACManager
public boolean isFinalImplementation()
isFinalImplementation
in interface org.apache.archiva.redback.rbac.RBACManager
isFinalImplementation
in class org.apache.archiva.redback.rbac.AbstractRBACManager
public String getDescriptionKey()
getDescriptionKey
in interface org.apache.archiva.redback.rbac.RBACManager
public boolean isReadOnly()
isReadOnly
in interface org.apache.archiva.redback.rbac.RBACManager
Copyright © 2006–2022 The Apache Software Foundation. All rights reserved.