Modifier and Type | Method and Description |
---|---|
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 |
---|---|
GroupEntity |
GroupDAO.findByPK(Integer groupPK) |
GroupEntity |
GroupDAO.findGroupByName(String groupName) |
GroupEntity |
GroupDAO.findGroupByNameAndType(String groupName,
GroupType groupType) |
GroupEntity |
GroupDAO.findGroupByPrincipal(PrincipalEntity principal)
Find the group entity for the given admin principal entity.
|
GroupEntity |
GroupDAO.merge(GroupEntity group) |
Modifier and Type | Method and Description |
---|---|
List<GroupEntity> |
GroupDAO.findAll() |
List<GroupEntity> |
GroupDAO.findGroupsByPrincipal(List<PrincipalEntity> principalList)
Find the group entities for the given list of principals
|
Modifier and Type | Method and Description |
---|---|
void |
GroupDAO.create(GroupEntity group) |
GroupEntity |
GroupDAO.merge(GroupEntity group) |
void |
GroupDAO.remove(GroupEntity group) |
Modifier and Type | Method and Description |
---|---|
void |
GroupDAO.create(Set<GroupEntity> groups) |
void |
GroupDAO.merge(Set<GroupEntity> groups) |
void |
GroupDAO.remove(Set<GroupEntity> groups) |
Modifier and Type | Method and Description |
---|---|
GroupEntity |
MemberEntity.getGroup() |
Modifier and Type | Method and Description |
---|---|
void |
MemberEntity.setGroup(GroupEntity group) |
Modifier and Type | Method and Description |
---|---|
GroupEntity |
Users.createGroup(String groupName,
GroupType groupType)
Creates new group with provided name & type
|
GroupEntity |
Users.getGroupEntity(String groupName,
GroupType groupType)
Gets a
GroupEntity by name and type. |
Modifier and Type | Method and Description |
---|---|
void |
Users.addMemberToGroup(GroupEntity groupEntity,
UserEntity userEntity) |
Collection<PrivilegeEntity> |
Users.getGroupPrivileges(GroupEntity groupEntity)
Gets the explicit and implicit privileges for the given group.
|
boolean |
Users.isUserInGroup(UserEntity userEntity,
GroupEntity groupEntity)
Performs a check if given user belongs to given group.
|
void |
Users.removeMemberFromGroup(GroupEntity groupEntity,
UserEntity userEntity) |
Copyright © 2022 Apache Software Foundation. All rights reserved.