Class UserRestController

java.lang.Object
de.uniba.minf.core.rest.controller.BaseRestController
de.uniba.minf.registry.controller.user.BaseUserRestController
de.uniba.minf.registry.controller.user.UserRestController

@RestController @RequestMapping("/api/v1/users") public class UserRestController extends BaseUserRestController
  • Field Summary

    Fields inherited from class de.uniba.minf.registry.controller.user.BaseUserRestController

    authInfoHelper, userRepo

    Fields inherited from class de.uniba.minf.core.rest.controller.BaseRestController

    jsonMapper, linksHelper, messageSource
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.uniba.minf.core.rest.model.RestItemResponse
    getUserByUniqueId(String userUniqueId, jakarta.servlet.http.HttpServletRequest request, Locale locale)
     
    de.uniba.minf.core.rest.model.RestResponse
    getUsers(jakarta.servlet.http.HttpServletRequest request, Locale locale)
     
    de.uniba.minf.core.rest.model.RestItemResponse
    saveUser(String userUniqueId, PersistedUser data, jakarta.servlet.http.HttpServletRequest request, Locale locale)
     

    Methods inherited from class de.uniba.minf.registry.controller.user.BaseUserRestController

    checkCanAccessUser

    Methods inherited from class de.uniba.minf.core.rest.controller.BaseRestController

    getActualLimit, getBaseUrl, getControllerBaseUrl, getControllerBaseUrlWithSuffix, getItem, getItemLinks, getItemLinks, getItemResponse, getItems, getLinks, getLinks, handleBindException, handleException, handleRuntimeException

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UserRestController

      public UserRestController()
  • Method Details

    • getUsers

      @GetMapping public de.uniba.minf.core.rest.model.RestResponse getUsers(jakarta.servlet.http.HttpServletRequest request, Locale locale) throws de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsException, de.uniba.minf.core.rest.exception.ApiItemNotFoundException
      Throws:
      de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsException
      de.uniba.minf.core.rest.exception.ApiItemNotFoundException
    • getUserByUniqueId

      @GetMapping("/{userUniqueId}") public de.uniba.minf.core.rest.model.RestItemResponse getUserByUniqueId(@PathVariable("userUniqueId") String userUniqueId, jakarta.servlet.http.HttpServletRequest request, Locale locale) throws de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsException, de.uniba.minf.core.rest.exception.ApiItemNotFoundException
      Throws:
      de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsException
      de.uniba.minf.core.rest.exception.ApiItemNotFoundException
    • saveUser

      @PostMapping("/{userUniqueId}") public de.uniba.minf.core.rest.model.RestItemResponse saveUser(@PathVariable("userUniqueId") String userUniqueId, @RequestBody PersistedUser data, jakarta.servlet.http.HttpServletRequest request, Locale locale) throws de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsException, de.uniba.minf.core.rest.exception.ApiItemNotFoundException
      Throws:
      de.uniba.minf.core.rest.exception.ApiInsufficientPermissionsException
      de.uniba.minf.core.rest.exception.ApiItemNotFoundException