Interface GroupControllerApi

All Known Implementing Classes:
GroupControllerMock

@Valid public interface GroupControllerApi
The group controller api.
Author:
Christian Bremer
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group>
    createGroup(@Valid org.bremersee.groupman.model.Group group)
    Create group.
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group>
    Delete group.
    org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>>
    Gets editable groups.
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group>
    Gets group by id.
    org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>>
    Gets groups by ids.
    org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>>
    Gets membership.
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.GroupIdList>
    Gets membership ids.
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Status>
    Get status of the current user.
    org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>>
    Gets usable groups.
    org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group>
    updateGroup(String id, @Valid org.bremersee.groupman.model.Group group)
    Update group.
  • Method Details

    • createGroup

      @RequestMapping(value="/api/groups", produces="application/json", consumes="application/json", method=POST) org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group> createGroup(@Valid @RequestBody @Valid org.bremersee.groupman.model.Group group)
      Create group.
      Parameters:
      group - the group
      Returns:
      the response entity
    • getGroupById

      @RequestMapping(value="/api/groups/{id}", produces="application/json", method=GET) org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group> getGroupById(@PathVariable("id") String id)
      Gets group by id.
      Parameters:
      id - the id
      Returns:
      the group by id
    • updateGroup

      @RequestMapping(value="/api/groups/{id}", produces="application/json", consumes="application/json", method=PUT) org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group> updateGroup(@PathVariable("id") String id, @Valid @RequestBody @Valid org.bremersee.groupman.model.Group group)
      Update group.
      Parameters:
      id - the id
      group - the group
      Returns:
      the response entity
    • deleteGroup

      @RequestMapping(value="/api/groups/{id}", method=DELETE) org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Group> deleteGroup(@PathVariable("id") String id)
      Delete group.
      Parameters:
      id - the id
      Returns:
      the response entity
    • getGroupsByIds

      @RequestMapping(value="/api/groups/f", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>> getGroupsByIds(@RequestParam(value="id",required=false) List<String> id)
      Gets groups by ids.
      Parameters:
      id - the list of ids
      Returns:
      the groups by ids
    • getEditableGroups

      @RequestMapping(value="/api/groups/f/editable", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>> getEditableGroups()
      Gets editable groups.
      Returns:
      the editable groups
    • getUsableGroups

      @RequestMapping(value="/api/groups/f/usable", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>> getUsableGroups()
      Gets usable groups.
      Returns:
      the usable groups
    • getMembership

      @RequestMapping(value="/api/groups/f/membership", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<org.bremersee.groupman.model.Group>> getMembership()
      Gets membership.
      Returns:
      the membership
    • getMembershipIds

      @RequestMapping(value="/api/groups/f/membership-ids", produces="application/json", method=GET) org.springframework.http.ResponseEntity<org.bremersee.groupman.model.GroupIdList> getMembershipIds()
      Gets membership ids.
      Returns:
      the membership ids
    • getStatus

      @RequestMapping(value="/api/groups/f/status", produces="application/json", method=GET) org.springframework.http.ResponseEntity<org.bremersee.groupman.model.Status> getStatus()
      Get status of the current user.
      Returns:
      the status