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 |
---|---|
UserEntity |
UserDAO.findByPK(Integer userPK) |
UserEntity |
UserDAO.findUserByName(String userName) |
UserEntity |
UserDAO.findUserByPrincipal(PrincipalEntity principal)
Find the user entity for the given admin principal entity.
|
UserEntity |
UserDAO.merge(UserEntity user) |
Modifier and Type | Method and Description |
---|---|
List<UserEntity> |
UserDAO.findAll() |
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 |
---|---|
void |
UserDAO.create(UserEntity user) |
List<MemberEntity> |
MemberDAO.findAllMembersByUser(UserEntity userEntity) |
List<UserAuthenticationEntity> |
UserAuthenticationDAO.findByUser(UserEntity userEntity) |
UserEntity |
UserDAO.merge(UserEntity user) |
void |
UserDAO.remove(UserEntity user) |
Modifier and Type | Method and Description |
---|---|
void |
UserDAO.create(Set<UserEntity> users) |
void |
UserDAO.merge(Set<UserEntity> users) |
void |
UserDAO.remove(Set<UserEntity> users) |
Modifier and Type | Method and Description |
---|---|
UserEntity |
UserAuthenticationEntity.getUser()
Get the relevant
UserEntity associated with this UserAuthenticationEntity . |
UserEntity |
MemberEntity.getUser() |
Modifier and Type | Method and Description |
---|---|
void |
UserAuthenticationEntity.setUser(UserEntity user)
Set the relevant
UserEntity associated with this UserAuthenticationEntity . |
void |
MemberEntity.setUser(UserEntity user) |
Modifier and Type | Method and Description |
---|---|
protected Collection<UserAuthenticationEntity> |
AmbariAuthenticationProvider.getAuthenticationEntities(UserEntity userEntity,
UserAuthenticationType type)
Finds the specific set of
UserAuthenticationEntity instances from the collection of
authentication methods available to the specified UserEntity . |
protected UserAuthenticationEntity |
AmbariAuthenticationProvider.getAuthenticationEntity(UserEntity userEntity,
UserAuthenticationType type)
Finds the specific
UserAuthenticationEntity from the collection of authentication methods
available to the specified UserEntity . |
Modifier and Type | Method and Description |
---|---|
UserEntity |
Users.createUser(String userName,
String localUserName,
String displayName)
Creates new, active, user with provided userName, local username, and display name.
|
UserEntity |
Users.createUser(String userName,
String localUserName,
String displayName,
Boolean active)
Creates new, user with provided userName, local username, and display name.
|
UserEntity |
Users.getUserEntity(Integer userId) |
UserEntity |
Users.getUserEntity(String userName) |
UserEntity |
Users.safelyUpdateUserEntity(UserEntity userEntity,
Users.Command command)
Attempts to update the specified
UserEntity while handling OptimisticLockException s
by obtaining the latest version of the UserEntity and retrying the operation. |
UserEntity |
Users.safelyUpdateUserEntity(UserEntity userEntity,
Users.Command command,
int maxRetries)
Attempts to update the specified
UserEntity while handling OptimisticLockException s
by obtaining the latest version of the UserEntity and retrying the operation. |
Modifier and Type | Method and Description |
---|---|
List<UserEntity> |
Users.getAllUserEntities() |
Modifier and Type | Method and Description |
---|---|
void |
Users.addAuthentication(UserEntity userEntity,
UserAuthenticationType authenticationType,
String key)
Adds a new authentication type for the given user.
|
void |
Users.addJWTAuthentication(UserEntity userEntity,
String key)
Adds the ability for a user to authenticate using a JWT token.
|
void |
Users.addJWTAuthentication(UserEntity userEntity,
String key,
boolean persist)
Adds the ability for a user to authenticate using a JWT token.
|
void |
Users.addKerberosAuthentication(UserEntity userEntity,
String principalName)
Adds the ability for a user to authenticate using a Kerberos token.
|
void |
Users.addKerberosAuthentication(UserEntity userEntity,
String principalName,
boolean persist)
Adds the ability for a user to authenticate using a Kerberos token.
|
void |
Users.addLdapAuthentication(UserEntity userEntity,
String dn)
Adds the ability for a user to authenticate using a remote LDAP server
|
void |
Users.addLdapAuthentication(UserEntity userEntity,
String dn,
boolean persist)
Adds the ability for a user to authenticate using a remote LDAP server
|
void |
Users.addLocalAuthentication(UserEntity userEntity,
String password)
Adds the ability for a user to authenticate using a password stored in Ambari's database
|
void |
Users.addLocalAuthentication(UserEntity userEntity,
String password,
boolean persist)
Adds the ability for a user to authenticate using a password stored in Ambari's database
|
void |
Users.addMemberToGroup(GroupEntity groupEntity,
UserEntity userEntity) |
void |
Users.addPamAuthentication(UserEntity userEntity,
String userName)
Adds the ability for a user to authenticate using Pam
|
void |
Users.addPamAuthentication(UserEntity userEntity,
String userName,
boolean persist)
Adds the ability for a user to authenticate using Pam
|
void |
Users.clearConsecutiveAuthenticationFailures(UserEntity userEntity)
Resets the named user's consecutive authentication failure count to
0 . |
User |
Users.getUser(UserEntity userEntity) |
Collection<UserAuthenticationEntity> |
Users.getUserAuthenticationEntities(UserEntity userEntity,
UserAuthenticationType authenticationType)
Gets the collection of
UserAuthenticationEntity s for a given user. |
Collection<AmbariGrantedAuthority> |
Users.getUserAuthorities(UserEntity userEntity)
Gets the explicit and implicit authorities for the given user.
|
Collection<PrivilegeEntity> |
Users.getUserPrivileges(UserEntity userEntity)
Gets the explicit and implicit privileges for the given user.
|
void |
Users.grantAdminPrivilege(UserEntity userEntity)
Grants Ambari Administrator privilege to provided user.
|
boolean |
Users.hasAdminPrivilege(UserEntity userEntity)
Test the user for Ambari Admistrator privileges.
|
Integer |
Users.incrementConsecutiveAuthenticationFailures(UserEntity userEntity)
Increments the named user's consecutive authentication failure count by
1 . |
boolean |
Users.isUserCanBeRemoved(UserEntity userEntity)
Performs a check if the user can be removed.
|
boolean |
Users.isUserInGroup(UserEntity userEntity,
GroupEntity groupEntity)
Performs a check if given user belongs to given group.
|
void |
Users.Command.perform(UserEntity userEntity) |
void |
Users.removeAuthentication(UserEntity userEntity,
Long authenticationId) |
void |
Users.removeMemberFromGroup(GroupEntity groupEntity,
UserEntity userEntity) |
void |
Users.removeUser(UserEntity userEntity)
Removes a user from the Ambari database.
|
void |
Users.revokeAdminPrivilege(UserEntity userEntity)
Revokes Ambari Administrator privileges from provided user.
|
UserEntity |
Users.safelyUpdateUserEntity(UserEntity userEntity,
Users.Command command)
Attempts to update the specified
UserEntity while handling OptimisticLockException s
by obtaining the latest version of the UserEntity and retrying the operation. |
UserEntity |
Users.safelyUpdateUserEntity(UserEntity userEntity,
Users.Command command,
int maxRetries)
Attempts to update the specified
UserEntity while handling OptimisticLockException s
by obtaining the latest version of the UserEntity and retrying the operation. |
void |
Users.setUserActive(UserEntity userEntity,
boolean active)
Enables/disables user.
|
void |
Users.validateLogin(UserEntity userEntity,
String userName)
Validates the user account such that the user is allowed to log in.
|
Constructor and Description |
---|
User(UserEntity userEntity) |
Copyright © 2022 Apache Software Foundation. All rights reserved.