public interface SecurityService
| Modifier and Type | Method and Description |
|---|---|
SecurityRole |
addSecurityRole(SecurityRole securityRole)
Adds new security role into the application.
|
java.util.Set<java.lang.String> |
findRights()
Returns a set of all rights that are used.
|
java.util.Collection<SecurityRole> |
findSecurityRoles()
Returns a collection of all security roles that already exist .
|
SecurityRole |
getSecurityRole(java.lang.String securityRoleName)
Returns a
SecurityRole instance if such security role (identified by given securityRoleName) exists . |
void |
removeSecurityRole(java.lang.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 addedjava.lang.NullPointerException - 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 updatedjava.lang.NullPointerException - 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(java.lang.String securityRoleName)
throws SecurityRoleNotFoundException
securityRoleName from the application.securityRoleName - The name of the security role to remove. Cannot be blank.java.lang.NullPointerException - if the securityRoleName argument is null.java.lang.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(java.lang.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.java.lang.NullPointerException - if the securityRoleName argument is null.java.lang.IllegalArgumentException - if the securityRoleName argument contains just whitespace characters.java.util.Collection<SecurityRole> findSecurityRoles()
java.util.Set<java.lang.String> findRights()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.