public interface SecurityService
| Modifier and Type | Method and Description |
|---|---|
SecurityRole |
addSecurityRole(SecurityRole securityRole)
Adds new security role into the application.
|
Set<String> |
findRights()
Returns a set of all rights that are used.
|
Collection<SecurityRole> |
findSecurityRoles()
Returns a collection of all security roles that already exist .
|
SecurityRole |
getSecurityRole(String securityRoleName)
Returns a
SecurityRole instance if such security role (identified by given securityRoleName) exists . |
void |
removeSecurityRole(String securityRoleName)
Removes the security role identified by given
securityRoleName from the application. |
SecurityRole |
updateSecurityRole(SecurityRole securityRole)
Updates a security role by its id.
|
SecurityRole addSecurityRole(SecurityRole securityRole) throws SecurityRoleAlreadyExistsException
securityRole - security role to be addedNullPointerException - if the securityRole argument is null.SecurityRoleAlreadyExistsException - if the securityRole already exists .SecurityRole updateSecurityRole(SecurityRole securityRole) throws SecurityRoleStaleException, SecurityRoleAlreadyExistsException, SecurityRoleNotFoundException
securityRole - security role to be updatedNullPointerException - if securityRole or id of securityRole is nullSecurityRoleNotFoundException - if the role identified by securityRole does not existSecurityRoleAlreadyExistsException - if changing name and a role with the same name already existsSecurityRoleStaleException - if securityRole object is stale (this applies only if the version is not
null)void removeSecurityRole(String securityRoleName) throws SecurityRoleNotFoundException
securityRoleName from the application.securityRoleName - The name of the security role to remove. Cannot be blank.NullPointerException - if the securityRoleName argument is null.IllegalArgumentException - if the securityRoleName argument contains just whitespace characters.SecurityRoleNotFoundException - if the security role identified by its securityRoleName does not exist in
the application.SecurityRole getSecurityRole(String securityRoleName)
SecurityRole instance if such security role (identified by given securityRoleName) exists .securityRoleName - The name of the security role to find. Cannot be blank.SecurityRole instance if such security role exists , otherwise null.NullPointerException - if the securityRoleName argument is null.IllegalArgumentException - if the securityRoleName argument contains just whitespace characters.Collection<SecurityRole> findSecurityRoles()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.