@Service(value="userGroupService") public class UserGroupService<E extends UserGroup,D extends UserGroupDao<E>> extends PermissionAwareCrudService<E,D>
UserGroup model.AbstractCrudServicepermissionCollectionServicedao, logger| Modifier | Constructor and Description |
|---|---|
|
UserGroupService()
Default constructor, which calls the type-constructor
|
protected |
UserGroupService(Class<E> entityClass)
Constructor that sets the concrete entity class for the service.
|
| Modifier and Type | Method and Description |
|---|---|
Set<User> |
getUsersOfGroup(Integer groupId) |
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 UserGroupService()
@Autowired @Qualifier(value="userGroupDao") 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.setDao in class PermissionAwareCrudService<E extends UserGroup,D extends UserGroupDao<E>>dao - the dao to setCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.