@PermitAll public class RoleServiceBean extends com.whitestein.lsps.common.SecureAndLoggingService implements RoleServiceLocal, RoleServiceRemote
| Constructor and Description |
|---|
RoleServiceBean()
Creates new instance.
|
RoleServiceBean(RoleNameDao roleNameDao)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRoleName(RoleUnitName roleName)
Adds a role name with all parameter names present in
roleName to the application. |
RoleUnitNameList |
findRoleNames()
Returns a collection of all role names that exist in the persistent storage (across all
modules).
|
RoleUnitName |
getRoleName(String roleName)
Returns a role name for the given role name or null if not found.
|
void |
updateRoleName(RoleUnitName roleName)
Updates a role name in the application.
|
public RoleServiceBean()
public RoleServiceBean(RoleNameDao roleNameDao)
roleNameDao - the role name daoNullPointerException - if roleNameDao is null@RightsAllowed(value="Role:Read") public RoleUnitName getRoleName(String roleName)
RoleServicegetRoleName in interface RoleServiceroleName - role name (module name + '::' + local name)@RightsAllowed(value="Role:Read") public RoleUnitNameList findRoleNames()
RoleServicefindRoleNames in interface RoleService@RightsAllowed(value="Role:Manage") public void addRoleName(RoleUnitName roleName) throws RoleAlreadyExistsException
RoleServiceroleName to the application.addRoleName in interface RoleServiceRoleAlreadyExistsException - if a role name with the same name already exists@RightsAllowed(value="Role:Manage") public void updateRoleName(RoleUnitName roleName) throws RoleNotFoundException
RoleServiceupdateRoleName in interface RoleServiceRoleNotFoundException - if no corresponding role existsCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.