public abstract class AuthorizationRepositoryBase extends Object implements AuthorizationRepository
ADMIN_ROLE, ROLE_CONCEPT_NAME| Modifier | Constructor and Description |
|---|---|
protected |
AuthorizationRepositoryBase(Graph graph,
UserNotificationRepository userNotificationRepository,
WebQueueRepository webQueueRepository,
Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireNewRoleAddedEvent(Role role) |
protected void |
fireRoleDeletedEvent(Role role) |
protected void |
fireUserAddRoleEvent(User user,
Role role) |
protected void |
fireUserRemoveRoleEvent(User user,
Role role) |
Role |
getAdministratorRole() |
Graph |
getGraph() |
Authorizations |
getGraphAuthorizations(String userName,
String... additionalAuthorizations) |
Authorizations |
getGraphAuthorizations(User user,
String... additionalAuthorizations) |
protected Collection<RoleListener> |
getRoleListeners() |
protected Collection<UserListener> |
getUserListeners() |
protected UserRepository |
getUserRepository() |
protected void |
sendNotificationToUserAboutAddRole(User user,
Role role,
User authUser) |
protected void |
sendNotificationToUserAboutRemoveRole(User user,
Role role,
User authUser) |
ClientApiRoles |
toClientApi(Iterable<Role> roles) |
ClientApiRole |
toClientApi(Role role) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRole, addRolesToUser, addRoleToUser, addRoleToUser, deleteRole, findById, findByName, getAllRoles, getRoleNames, getRoles, removeRoleFromUser, setDescription, setGlobal, setPrivileges, setRoleName, setRolesForUser, updateUserprotected AuthorizationRepositoryBase(Graph graph, UserNotificationRepository userNotificationRepository, WebQueueRepository webQueueRepository, Configuration configuration)
public Authorizations getGraphAuthorizations(String userName, String... additionalAuthorizations)
getGraphAuthorizations in interface AuthorizationRepositorypublic Authorizations getGraphAuthorizations(User user, String... additionalAuthorizations)
getGraphAuthorizations in interface AuthorizationRepositoryprotected UserRepository getUserRepository()
protected void sendNotificationToUserAboutAddRole(User user, Role role, User authUser)
protected void sendNotificationToUserAboutRemoveRole(User user, Role role, User authUser)
protected void fireNewRoleAddedEvent(Role role)
protected void fireRoleDeletedEvent(Role role)
protected Collection<RoleListener> getRoleListeners()
protected Collection<UserListener> getUserListeners()
public Graph getGraph()
public ClientApiRoles toClientApi(Iterable<Role> roles)
toClientApi in interface AuthorizationRepositorypublic ClientApiRole toClientApi(Role role)
toClientApi in interface AuthorizationRepositorypublic Role getAdministratorRole()
getAdministratorRole in interface AuthorizationRepositoryCopyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.