Modifier and Type | Method and Description |
---|---|
UserRole[] |
UserVO.getRoles() |
Modifier and Type | Method and Description |
---|---|
void |
UserVO.setRoles(UserRole[] roles) |
Constructor and Description |
---|
UserVO(Locale language,
String email,
UserRole[] roles) |
UserVO(String password,
Locale language,
String email,
UserRole[] roles,
String alias,
String firstName,
String lastName,
String timeZoneId) |
Modifier and Type | Method and Description |
---|---|
UserRole[] |
UserManagementListItem.getRoles() |
Modifier and Type | Method and Description |
---|---|
void |
UserManagementListItem.setRoles(UserRole[] roles) |
Constructor and Description |
---|
UserManagementListItem(UserRole[] roles,
Long userId,
String email,
String alias,
String firstName,
String lastName,
String salutation,
UserStatus status) |
Modifier and Type | Method and Description |
---|---|
static void |
SecurityHelper.assertCurrentUserRole(UserRole role)
Asserts that the current user has the given role
|
static boolean |
SecurityHelper.hasRole(UserRole role)
Checks that the current user has the given role
|
Modifier and Type | Method and Description |
---|---|
static UserRole[] |
UserAuthorityHelper.getAssignableRoles(User user)
Gets the assignable roles for an user.
|
UserRole[] |
UserManagementBase.getRolesOfUser(Long userId) |
UserRole[] |
UserManagement.getRolesOfUser(Long userId)
Returns the roles of a user.
|
protected UserRole[] |
UserManagementImpl.handleGetRolesOfUser(Long userId) |
protected abstract UserRole[] |
UserManagementBase.handleGetRolesOfUser(Long userId)
Performs the core logic for
UserManagementBase.getRolesOfUser(Long) |
Modifier and Type | Method and Description |
---|---|
static Set<UserRole> |
UserAuthorityHelper.getAllRoles()
Gets a set of all available user roles.
|
static Set<UserRole> |
UserAuthorityHelper.getUserRoles(Long userId)
Gets the user roles.
|
static Set<UserRole> |
UserAuthorityHelper.getUserRoles(User user)
Gets the user roles.
|
Modifier and Type | Method and Description |
---|---|
User |
UserManagementBase.assignUserRole(Long userId,
UserRole role) |
User |
UserManagement.assignUserRole(Long userId,
UserRole role)
Assign the user role to the user
|
static boolean |
UserAuthorityHelper.containsRole(Collection<org.springframework.security.core.GrantedAuthority> authorities,
UserRole role)
Test whether the granted authorities contain a given role.
|
List<User> |
UserManagementImpl.findUsersByRole(UserRole role,
UserStatus status) |
List<User> |
UserManagement.findUsersByRole(UserRole userRole,
UserStatus status)
Returns a collection of users having a specific role and optionally a specific status.
|
long |
UserManagementImpl.getActiveUserCount(String systemId,
UserRole role) |
long |
UserManagement.getActiveUserCount(String systemId,
UserRole role)
Get the number of users with status ACTIVE.
|
static Set<UserAuthority> |
UserAuthorityHelper.getUserAuthorities(UserRole[] roles)
Creates a set of UserAuthority entities from UserRole's.
|
protected User |
UserManagementImpl.handleAssignUserRole(Long userId,
UserRole role) |
protected abstract User |
UserManagementBase.handleAssignUserRole(Long userId,
UserRole role)
Performs the core logic for
UserManagementBase.assignUserRole(Long, UserRole) |
protected User |
UserManagementImpl.handleRemoveUserRole(Long userId,
UserRole role) |
protected abstract User |
UserManagementBase.handleRemoveUserRole(Long userId,
UserRole role)
Performs the core logic for
UserManagementBase.removeUserRole(Long, UserRole) |
static boolean |
UserAuthorityHelper.hasAuthority(Long userId,
UserRole role)
Checks if a user has a given user role.
|
static boolean |
UserAuthorityHelper.hasAuthority(User user,
UserRole role)
Checks if a user has a given user role.
|
User |
UserManagementBase.removeUserRole(Long userId,
UserRole role) |
User |
UserManagement.removeUserRole(Long userId,
UserRole role)
Remove a role from a user
|
Modifier and Type | Method and Description |
---|---|
Collection<UserRole> |
UserQueryParameters.getRolesToExclude() |
Collection<UserRole> |
UserQueryParameters.getRolesToInclude() |
Modifier and Type | Method and Description |
---|---|
void |
UserQueryParameters.addRoleToExclude(UserRole role)
Add a role to exclude in the result.
|
void |
UserQueryParameters.addRoleToInclude(UserRole role)
Add a role to include in the result.
|
Modifier and Type | Field and Description |
---|---|
static UserRole |
UserRole.ROLE_CRAWL_USER |
static UserRole |
UserRole.ROLE_KENMEI_CLIENT_MANAGER |
static UserRole |
UserRole.ROLE_KENMEI_USER |
static UserRole |
UserRole.ROLE_SYSTEM_USER
A system user for internal tasks or for the use of external systems
|
Modifier and Type | Method and Description |
---|---|
static UserRole |
UserRole.fromString(String value)
Creates an instance of UserRole from
value . |
UserRole |
UserAuthority.getRole() |
UserRole[] |
User.getRoles() |
Modifier and Type | Method and Description |
---|---|
boolean |
User.hasRole(UserRole role)
Test whether the user has the given role.
|
static UserAuthority |
UserAuthority.Factory.newInstance(UserRole role)
Constructs a new instance of
UserAuthority ,
taking all possible properties (except the identifier(s))as arguments. |
void |
UserAuthority.setRole(UserRole role) |
Modifier and Type | Class and Description |
---|---|
class |
UserRoleEnum |
Modifier and Type | Method and Description |
---|---|
boolean |
UserService.hasRole(Long userId,
UserRole role)
Return whether the provided user has the given role.
|
Copyright © 2019 Communote team. All rights reserved.