Class ImportController

java.lang.Object
de.uniba.minf.core.rest.controller.BaseRestController<ImportPojo>
de.uniba.minf.registry.controller.ImportController

@RestController @RequestMapping("/api/v1/imports") public class ImportController extends de.uniba.minf.core.rest.controller.BaseRestController<ImportPojo>
  • Field Summary

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

    authInfoHelper, linksHelper, messageSource, objectMapper
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.uniba.minf.core.rest.model.RestItemResponse
    deleteImport(String uniqueId, jakarta.servlet.http.HttpServletRequest request, Locale locale)
     
    de.uniba.minf.core.rest.model.RestItemsResponse
    getAllImports(jakarta.servlet.http.HttpServletRequest request, Locale locale)
     

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

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

    Methods inherited from class java.lang.Object

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

    • ImportController

      public ImportController()
  • Method Details

    • getAllImports

      @GetMapping public de.uniba.minf.core.rest.model.RestItemsResponse getAllImports(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
    • deleteImport

      @DeleteMapping("/{uniqueId}") public de.uniba.minf.core.rest.model.RestItemResponse deleteImport(@PathVariable("uniqueId") String uniqueId, 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