Package | Description |
---|---|
org.apache.ambari.server.orm.dao | |
org.apache.ambari.server.orm.entities |
Modifier and Type | Method and Description |
---|---|
PrincipalEntity |
PrincipalDAO.findById(Long id)
Find a principal with the given id.
|
PrincipalEntity |
PrincipalDAO.merge(PrincipalEntity entity)
Merge the given entity.
|
Modifier and Type | Method and Description |
---|---|
List<PrincipalEntity> |
PrincipalDAO.findAll()
Find all principals.
|
List<PrincipalEntity> |
PrincipalDAO.findByPermissionId(Integer id)
Find principals having specified permission.
|
List<PrincipalEntity> |
PrincipalDAO.findByPrincipalType(String name) |
Modifier and Type | Method and Description |
---|---|
void |
PrincipalDAO.create(PrincipalEntity entity)
Make an instance managed and persistent.
|
boolean |
PrivilegeDAO.exists(PrincipalEntity principalEntity,
ResourceEntity resourceEntity,
PermissionEntity permissionEntity)
Determine whether or not the privilege entity exists defined by the given principal, resource and
permission exists.
|
GroupEntity |
GroupDAO.findGroupByPrincipal(PrincipalEntity principal)
Find the group entity for the given admin principal entity.
|
UserEntity |
UserDAO.findUserByPrincipal(PrincipalEntity principal)
Find the user entity for the given admin principal entity.
|
PrincipalEntity |
PrincipalDAO.merge(PrincipalEntity entity)
Merge the given entity.
|
void |
PrincipalDAO.remove(PrincipalEntity entity)
Remove the entity instance.
|
Modifier and Type | Method and Description |
---|---|
void |
PrincipalDAO.create(List<PrincipalEntity> entities)
Make instances managed and persistent.
|
List<PrivilegeEntity> |
PrivilegeDAO.findAllByPrincipal(List<PrincipalEntity> principalList)
Find the privileges entities for the given list of principals
|
List<GroupEntity> |
GroupDAO.findGroupsByPrincipal(List<PrincipalEntity> principalList)
Find the group entities for the given list of principals
|
List<PermissionEntity> |
PermissionDAO.findPermissionsByPrincipal(List<PrincipalEntity> principalList)
Find the permission entities for the given list of principals
|
List<UserEntity> |
UserDAO.findUsersByPrincipal(List<PrincipalEntity> principalList)
Find the user entities for the given list of admin principal entities.
|
Modifier and Type | Method and Description |
---|---|
PrincipalEntity |
PrivilegeEntity.getPrincipal()
Get the associated principal entity.
|
PrincipalEntity |
GroupEntity.getPrincipal()
Get the admin principal entity.
|
PrincipalEntity |
UserEntity.getPrincipal()
Get the admin principal entity.
|
PrincipalEntity |
PermissionEntity.getPrincipal()
Get the principal entity.
|
Modifier and Type | Method and Description |
---|---|
void |
PrivilegeEntity.setPrincipal(PrincipalEntity principal)
Set the principal entity.
|
void |
GroupEntity.setPrincipal(PrincipalEntity principal)
Set the admin principal entity.
|
void |
UserEntity.setPrincipal(PrincipalEntity principal)
Set the admin principal entity.
|
void |
PermissionEntity.setPrincipal(PrincipalEntity principal)
Set the principal entity.
|
Copyright © 2022 Apache Software Foundation. All rights reserved.