public class GeAuthorizationRepository extends AuthorizationRepositoryBase
| Modifier and Type | Field and Description |
|---|---|
static BcVisibility |
VISIBILITY |
static String |
VISIBILITY_STRING |
ADMIN_ROLE, ROLE_CONCEPT_NAME| Constructor and Description |
|---|
GeAuthorizationRepository(Graph graph,
GraphAuthorizationRepository graphAuthorizationRepository,
Configuration configuration,
UserNotificationRepository userNotificationRepository,
WebQueueRepository webQueueRepository,
LockRepository lockRepository) |
| Modifier and Type | Method and Description |
|---|---|
Role |
addRole(String roleName,
String description,
boolean global,
Set<Privilege> privileges) |
void |
addRolesToUser(User user,
Set<Role> role,
User authUser) |
void |
addRoleToUser(User user,
Role role,
User authUser) |
void |
addRoleToUser(User user,
String roleName,
User authUser) |
void |
deleteRole(Role role) |
Role |
findById(String roleId) |
Role |
findByName(String roleName) |
Iterable<Role> |
getAllRoles() |
Set<String> |
getRoleNames(User user) |
Set<Role> |
getRoles(User user) |
void |
removeRoleFromUser(User user,
Role role,
User authUser) |
void |
setDescription(Role role,
String description) |
void |
setGlobal(Role role,
boolean global) |
void |
setPrivileges(Role role,
Set<Privilege> privileges) |
void |
setRoleName(Role role,
String roleName) |
void |
setRolesForUser(User user,
Set<Role> newRoles,
User authUser) |
void |
updateUser(User user,
AuthorizationContext authorizationContext)
Called by UserRepository when a user is authenticated possibly by a web authentication handler
|
fireNewRoleAddedEvent, fireRoleDeletedEvent, fireUserAddRoleEvent, fireUserRemoveRoleEvent, getAdministratorRole, getGraph, getGraphAuthorizations, getGraphAuthorizations, getRoleListeners, getUserListeners, getUserRepository, sendNotificationToUserAboutAddRole, sendNotificationToUserAboutRemoveRole, toClientApi, toClientApipublic static final String VISIBILITY_STRING
public static final BcVisibility VISIBILITY
@Inject public GeAuthorizationRepository(Graph graph, GraphAuthorizationRepository graphAuthorizationRepository, Configuration configuration, UserNotificationRepository userNotificationRepository, WebQueueRepository webQueueRepository, LockRepository lockRepository)
public void updateUser(User user, AuthorizationContext authorizationContext)
AuthorizationRepositorypublic Role addRole(String roleName, String description, boolean global, Set<Privilege> privileges)
public void deleteRole(Role role)
public void setGlobal(Role role, boolean global)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.