public interface RolesService extends de.alpharogroup.db.service.api.BusinessService<de.alpharogroup.user.entities.Roles,Integer>
RolesService.| Modifier and Type | Method and Description |
|---|---|
de.alpharogroup.user.entities.Roles |
createAndSaveRole(String rolename,
String description)
Creates a new
Roles object with the given arguments and save it. |
de.alpharogroup.user.entities.Roles |
createAndSaveRole(String rolename,
String description,
Set<de.alpharogroup.user.entities.Permissions> permissions)
Creates a new
Roles object with the given arguments and save it. |
boolean |
exists(String rolename)
Checks if a role exists with the given role name.
|
List<de.alpharogroup.user.entities.Permissions> |
findAllPermissions(de.alpharogroup.user.entities.Roles role)
Find all
Permissions objects from the given Roles object. |
de.alpharogroup.user.entities.Roles |
findRole(String rolename)
Find the
Roles object with the given role name. |
List<de.alpharogroup.user.entities.Roles> |
findRoles(String rolename)
Find the
Roles objects with the given role name. |
de.alpharogroup.user.entities.Roles createAndSaveRole(String rolename, String description)
Roles 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.Roles object.de.alpharogroup.user.entities.Roles createAndSaveRole(String rolename, String description, Set<de.alpharogroup.user.entities.Permissions> permissions)
Roles 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.Roles object.boolean exists(String rolename)
rolename - the role nameList<de.alpharogroup.user.entities.Permissions> findAllPermissions(de.alpharogroup.user.entities.Roles role)
Permissions objects from the given Roles object.role - the given Roles objectPermissions objects from the given Roles object.de.alpharogroup.user.entities.Roles findRole(String rolename)
Roles object with the given role name. If it does'nt exists it returns null.rolename - the role nameRoles object or if it does'nt exists it returns null.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.