Class UserGroupRestController<E extends UserGroup,​D extends UserGroupDao<E>,​S extends UserGroupService<E,​D>>

    • Constructor Detail

      • UserGroupRestController

        public UserGroupRestController()
        Default constructor, which calls the type-constructor
      • UserGroupRestController

        protected UserGroupRestController​(Class<E> entityClass)
        Constructor that sets the concrete entity class for the controller. Subclasses MUST call this constructor.
    • Method Detail

      • setService

        @Autowired
        @Qualifier("userGroupService")
        public void setService​(S service)
        We have to use Qualifier to define the correct service here. Otherwise, spring can not decide which service has to be autowired here as there are multiple candidates.
        Specified by:
        setService in class AbstractWebController<E extends UserGroup,​D extends UserGroupDao<E>,​S extends UserGroupService<E,​D>>
        Parameters:
        service - the service to set
      • findUsersOfGroup

        @RequestMapping(value="/{groupId}/users",
                        method=GET)
        public org.springframework.http.ResponseEntity<Set<User>> findUsersOfGroup​(@PathVariable
                                                                                   Integer groupId)
        Get the users of a specific group.
        Parameters:
        groupId -
        Returns: