Modifier and Type | Method and Description |
---|---|
protected PrivilegeEntity |
PrivilegeResourceProvider.toEntity(Map<String,Object> properties,
Long resourceId)
Convert the given map of properties to a privilege entity for the resource
identified by the given id.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
ViewPrivilegeResourceProvider.checkResourceTypes(PrivilegeEntity entity) |
protected boolean |
PrivilegeResourceProvider.checkResourceTypes(PrivilegeEntity entity)
Check to see if the given privilege entity's permission is allowable for the
resource type.
|
protected UserPrivilegeResponse |
UserPrivilegeResourceProvider.getResponse(PrivilegeEntity privilegeEntity,
String userName)
Returns response schema instance for /users/{userName}/privileges REST endpoint
|
protected GroupPrivilegeResponse |
GroupPrivilegeResourceProvider.getResponse(PrivilegeEntity privilegeEntity,
String groupName)
Returns the response for the group privilege that should be returned for the group privilege REST endpoint
|
protected Resource |
ClusterPrivilegeResourceProvider.toResource(PrivilegeEntity privilegeEntity,
Map<Long,UserEntity> userEntities,
Map<Long,GroupEntity> groupEntities,
Map<Long,PermissionEntity> roleEntities,
Map<Long,ClusterEntity> resourceEntities,
Set<String> requestedIds) |
protected Resource |
AmbariPrivilegeResourceProvider.toResource(PrivilegeEntity privilegeEntity,
Map<Long,UserEntity> userEntities,
Map<Long,GroupEntity> groupEntities,
Map<Long,PermissionEntity> roleEntities,
Map<Long,Object> resourceEntities,
Set<String> requestedIds) |
protected Resource |
PrivilegeResourceProvider.toResource(PrivilegeEntity privilegeEntity,
Map<Long,UserEntity> userEntities,
Map<Long,GroupEntity> groupEntities,
Map<Long,PermissionEntity> roleEntities,
Map<Long,T> resourceEntities,
Set<String> requestedIds)
Convert the given privilege entity into a Resource.
|
protected Resource |
ViewPrivilegeResourceProvider.toResource(PrivilegeEntity privilegeEntity,
Map<Long,UserEntity> userEntities,
Map<Long,GroupEntity> groupEntities,
Map<Long,PermissionEntity> roleEntities,
Map<Long,ViewInstanceEntity> resourceEntities,
Set<String> requestedIds) |
Modifier and Type | Method and Description |
---|---|
PrivilegeEntity |
PrivilegeDAO.findById(Integer id)
Find a privilege with the given id.
|
PrivilegeEntity |
PrivilegeDAO.merge(PrivilegeEntity entity)
Merge the state of the given entity into the current persistence context.
|
Modifier and Type | Method and Description |
---|---|
List<PrivilegeEntity> |
PrivilegeDAO.findAll()
Find all privileges.
|
List<PrivilegeEntity> |
PrivilegeDAO.findAllByPrincipal(List<PrincipalEntity> principalList)
Find the privileges entities for the given list of principals
|
List<PrivilegeEntity> |
PrivilegeDAO.findByResourceId(Long id)
Find all privileges for given resource.
|
Modifier and Type | Method and Description |
---|---|
void |
PrivilegeDAO.create(PrivilegeEntity entity)
Make an instance managed and persistent.
|
void |
PrivilegeDAO.detach(PrivilegeEntity entity)
Detach an instance from manager.
|
boolean |
PrivilegeDAO.exists(PrivilegeEntity entity)
Determine whether or not the given privilege entity exists.
|
PrivilegeEntity |
PrivilegeDAO.merge(PrivilegeEntity entity)
Merge the state of the given entity into the current persistence context.
|
void |
PrivilegeDAO.remove(PrivilegeEntity entity)
Remove the entity instance.
|
Modifier and Type | Method and Description |
---|---|
Set<PrivilegeEntity> |
PrincipalEntity.getPrivileges()
Get the principal privileges.
|
Collection<PrivilegeEntity> |
ResourceEntity.getPrivileges()
Get the associated privileges.
|
Modifier and Type | Method and Description |
---|---|
void |
PrincipalEntity.removePrivilege(PrivilegeEntity privilege)
Remove a privilege.
|
Modifier and Type | Method and Description |
---|---|
void |
ResourceEntity.setPrivileges(Collection<PrivilegeEntity> privileges)
Set the associated privileges.
|
void |
PrincipalEntity.setPrivileges(Set<PrivilegeEntity> privileges)
Set the principal privileges.
|
Modifier and Type | Method and Description |
---|---|
PrivilegeEntity |
AmbariGrantedAuthority.getPrivilegeEntity()
Get the associated privilege.
|
Modifier and Type | Method and Description |
---|---|
Collection<PrivilegeEntity> |
Users.getGroupPrivileges(GroupEntity groupEntity)
Gets the explicit and implicit privileges for the given group.
|
Collection<PrivilegeEntity> |
Users.getUserPrivileges(UserEntity userEntity)
Gets the explicit and implicit privileges for the given user.
|
Modifier and Type | Method and Description |
---|---|
Collection<org.springframework.security.core.GrantedAuthority> |
AuthorizationHelper.convertPrivilegesToAuthorities(Collection<PrivilegeEntity> privilegeEntities)
Converts collection of RoleEntities to collection of GrantedAuthorities
|
Constructor and Description |
---|
AmbariGrantedAuthority(PrivilegeEntity privilegeEntity) |
Modifier and Type | Method and Description |
---|---|
boolean |
Cluster.checkPermission(PrivilegeEntity privilegeEntity,
boolean readOnly)
Determine whether or not access to this cluster resource should be allowed based
on the given privilege.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ClusterImpl.checkPermission(PrivilegeEntity privilegeEntity,
boolean readOnly) |
Copyright © 2022 Apache Software Foundation. All rights reserved.