public interface RoleService extends de.alpharogroup.service.domain.DomainService<Integer,Role>
RoleService.| Modifier and Type | Method and Description |
|---|---|
Role |
createAndSaveRole(String rolename,
String description)
Creates a new
Role object with the given arguments and save it. |
Role |
createAndSaveRole(String rolename,
String description,
Set<Permission> permissions)
Creates a new
Role object with the given arguments and save it. |
boolean |
exists(String rolename)
Checks if a role exists with the given role name.
|
List<Permission> |
findAllPermissions(Role role)
Find all
Permission objects from the given Role object. |
Role |
findRole(String rolename)
Find the
Role object with the given role name. |
List<Role> |
findRoles(String rolename)
Find the
Role objects with the given role name. |
Role createAndSaveRole(String rolename, String description)
Role object with the given arguments and save it. If it does exists it
will return the existing.rolename - the role name.description - the description of the role.Role object.Role createAndSaveRole(String rolename, String description, Set<Permission> permissions)
Role object with the given arguments and save it. If it does exists it
will return the existing.rolename - the role name.description - the description of the role.permissions - the permissions to set for the role.Role object.boolean exists(String rolename)
rolename - the role nameList<Permission> findAllPermissions(Role role)
Permission objects from the given Role object.role - the given Role objectPermission objects from the given Role object.Role findRole(String rolename)
Role object with the given role name. If it does'nt exists it returns null.rolename - the role nameRole object or if it does'nt exists it returns null.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.