Class GroupsController


  • @Controller
    @RequestMapping("/material1/groups")
    public class GroupsController
    extends java.lang.Object
    Controller Class for all requests on '/material1/groups'.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 attributes
        token - authentication token from keycloak server.
        model - view model.
        Returns:
        groups view