@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)
RoleService
getRoleName
in interface RoleService
roleName
- role name (module name + '::' + local name)@RightsAllowed(value="Role:Read") public RoleUnitNameList findRoleNames()
RoleService
findRoleNames
in interface RoleService
@RightsAllowed(value="Role:Manage") public void addRoleName(RoleUnitName roleName) throws RoleAlreadyExistsException
RoleService
roleName
to the application.addRoleName
in interface RoleService
RoleAlreadyExistsException
- if a role name with the same name already exists@RightsAllowed(value="Role:Manage") public void updateRoleName(RoleUnitName roleName) throws RoleNotFoundException
RoleService
updateRoleName
in interface RoleService
RoleNotFoundException
- if no corresponding role existsCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.