@RestController @RequestMapping(value="/groups") public class UserGroupRestController<E extends UserGroup,D extends UserGroupDao<E>,S extends UserGroupService<E,D>> extends AbstractRestController<E,D,S>
objectMapperlogger, service| Modifier | Constructor and Description |
|---|---|
|
UserGroupRestController()
Default constructor, which calls the type-constructor
|
protected |
UserGroupRestController(Class<E> entityClass)
Constructor that sets the concrete entity class for the controller.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Set<User>> |
findUsersOfGroup(Integer groupId)
Get the users of a specific group.
|
void |
setService(S service)
We have to use
Qualifier to define the correct service here. |
delete, findAll, findById, findBySimpleFilter, save, updategetEntityClass, getServicepublic UserGroupRestController()
@Autowired @Qualifier(value="userGroupService") public void setService(S service)
Qualifier to define the correct service here.
Otherwise, spring can not decide which service has to be autowired here
as there are multiple candidates.setService in class AbstractWebController<E extends UserGroup,D extends UserGroupDao<E>,S extends UserGroupService<E,D>>service - the service to setCopyright © 2020 terrestris GmbH & Co. KG. All rights reserved.