@Service(value="roleService") public class RoleService<E extends Role,D extends RoleDao<E>> extends PermissionAwareCrudService<E,D>
Role model.permissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
RoleService()
Default constructor, which calls the type-constructor
|
protected |
RoleService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
E |
findByRoleName(String roleName)
Returns the role for the given (unique) role name.
|
void |
setDao(D dao)
We have to use
Qualifier to define the correct dao here. |
addAndSaveGroupPermissions, addAndSaveUserPermissions, findAllUserGroupPermissionsOfUserGroup, findAllUserPermissionsOfUser, getPermissionCollectionService, removeAndSaveGroupPermissions, removeAndSaveUserPermissions, setPermissionCollectionServicedelete, findAll, findAllRestricted, findAllWhereFieldEquals, findAllWithCollectionContaining, findById, findBySimpleFilter, loadById, saveOrUpdate, updatePartialWithJsonNodegetDao, getEntityClasspublic RoleService()
@Transactional(readOnly=true) public E findByRoleName(String roleName)
roleName - A unique role name.@Autowired @Qualifier(value="roleDao") public void setDao(D dao)
Qualifier to define the correct dao here.
Otherwise, spring can not decide which dao has to be autowired here
as there are multiple candidates.Copyright © 2020 terrestris GmbH & Co. KG. All rights reserved.