Package mops.presentation
Class GroupsController
- java.lang.Object
-
- mops.presentation.GroupsController
-
@Controller @RequestMapping("/material1/groups") public class GroupsController extends java.lang.Object
Controller Class for all requests on '/material1/groups'.
-
-
Constructor Summary
Constructors Constructor Description GroupsController(GroupService groupService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAllGroups(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.keycloak.adapters.springsecurity.token.KeycloakAuthenticationToken token, org.springframework.ui.Model model)
Gets all groups of a user.
-
-
-
Constructor Detail
-
GroupsController
public GroupsController(GroupService groupService)
-
-
Method Detail
-
getAllGroups
@GetMapping public java.lang.String getAllGroups(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes, org.keycloak.adapters.springsecurity.token.KeycloakAuthenticationToken token, org.springframework.ui.Model model)
Gets all groups of a user.- Parameters:
redirectAttributes
- redirect attributestoken
- authentication token from keycloak server.model
- view model.- Returns:
- groups view
-
-