@Transactional @Service(value="rolesService") public class RolesBusinessService extends de.alpharogroup.db.service.jpa.AbstractBusinessService<de.alpharogroup.user.entities.Roles,Integer,de.alpharogroup.user.repositories.RolesDao> implements RolesService
| Constructor and Description |
|---|
RolesBusinessService() |
| 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. |
void |
setRolesDao(de.alpharogroup.user.repositories.RolesDao rolesDao) |
delete, delete, delete, evict, exists, findAll, get, getDao, getQuery, load, merge, merge, refresh, save, save, saveOrUpdate, saveOrUpdate, setDaopublic 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.createAndSaveRole in interface RolesServicerolename - the role name.description - the description of the role.Roles object.public 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.createAndSaveRole in interface RolesServicerolename - the role name.description - the description of the role.permissions - the permissions to set for the role.Roles object.public boolean exists(String rolename)
exists in interface RolesServicerolename - the role namepublic List<de.alpharogroup.user.entities.Permissions> findAllPermissions(de.alpharogroup.user.entities.Roles role)
Permissions objects from the given Roles object.findAllPermissions in interface RolesServicerole - the given Roles objectPermissions objects from the given Roles object.public de.alpharogroup.user.entities.Roles findRole(String rolename)
Roles object with the given role name. If it does'nt exists it returns null.findRole in interface RolesServicerolename - the role nameRoles object or if it does'nt exists it returns null.public List<de.alpharogroup.user.entities.Roles> findRoles(String rolename)
RolesServiceRoles objects with the given role name.findRoles in interface RolesServicerolename - the rolenameRoles objects@Autowired public void setRolesDao(de.alpharogroup.user.repositories.RolesDao rolesDao)
Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.