Package ch.tocco.nice2.usermanager.impl
Class LoginRoleActionServiceImpl
java.lang.Object
ch.tocco.nice2.usermanager.impl.LoginRoleActionServiceImpl
- All Implemented Interfaces:
LoginRoleActionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.usermanager.api.LoginRoleActionService
LoginRoleActionService.KeyLabelEntityDisplay, LoginRoleActionService.LoginRole, LoginRoleActionService.LoginRoleUpdate, LoginRoleActionService.Role
-
Constructor Summary
ConstructorDescriptionLoginRoleActionServiceImpl
(Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory, EntityExplorerActionSelectionService entityExplorerActionSelectionService, BusinessUnitManager businessUnitManager) -
Method Summary
Modifier and TypeMethodDescriptiongetLoginRoles
(EntityExplorerActionSelection selection) getRoles()
Returns allLoginRoleActionService.Role
s manageable to the currently logged-inPrincipal
, taking theLoginRoleActionService.Role
's optionally setBusinessUnit
and thePrincipal
'sloginmanager
assignment the availableBusinessUnit
s into account.void
setChangedLoginRoles
(EntityExplorerActionSelection selection, LoginRoleActionService.LoginRoleUpdate[] loginRoleUpdates)
-
Constructor Details
-
LoginRoleActionServiceImpl
public LoginRoleActionServiceImpl(Context context, SecurityManager securityManager, QueryBuilderFactory queryBuilderFactory, EntityExplorerActionSelectionService entityExplorerActionSelectionService, BusinessUnitManager businessUnitManager)
-
-
Method Details
-
getBusinessUnits
- Specified by:
getBusinessUnits
in interfaceLoginRoleActionService
-
getRoles
Description copied from interface:LoginRoleActionService
Returns allLoginRoleActionService.Role
s manageable to the currently logged-inPrincipal
, taking theLoginRoleActionService.Role
's optionally setBusinessUnit
and thePrincipal
'sloginmanager
assignment the availableBusinessUnit
s into account.- Specified by:
getRoles
in interfaceLoginRoleActionService
- Returns:
- the list of manageable
LoginRoleActionService.Role
-
getLoginRoles
public List<LoginRoleActionService.LoginRole> getLoginRoles(EntityExplorerActionSelection selection) - Specified by:
getLoginRoles
in interfaceLoginRoleActionService
-
setChangedLoginRoles
public void setChangedLoginRoles(EntityExplorerActionSelection selection, LoginRoleActionService.LoginRoleUpdate[] loginRoleUpdates) throws InterruptedException - Specified by:
setChangedLoginRoles
in interfaceLoginRoleActionService
- Throws:
InterruptedException
-