Class ArchiveControllerDecorator

java.lang.Object
de.dlr.proseo.archivemgr.rest.ArchiveControllerDecorator
All Implemented Interfaces:
ArchiveController

@RestController @RequestMapping(value="/proseo/archive-mgr/{version}/archives", produces="application/json") @Validated public class ArchiveControllerDecorator extends Object implements ArchiveController
No description (Generated with springmvc-raml-parser v.2.0.5)
  • Constructor Details

    • ArchiveControllerDecorator

      public ArchiveControllerDecorator()
  • Method Details

    • getArchives

      @RequestMapping(value="", method=GET) public org.springframework.http.ResponseEntity<List<RestProductArchive>> getArchives(@RequestParam(required=false) Long id, @RequestParam(required=false) String code, @RequestParam(required=false) String name, @RequestParam(required=false) String archiveType, @RequestParam(required=false) Integer recordFrom, @RequestParam(required=false) Integer recordTo)
      List of product archives with search criteria
      Specified by:
      getArchives in interface ArchiveController
    • createArchive

      @RequestMapping(value="", method=POST) public org.springframework.http.ResponseEntity<RestProductArchive> createArchive(@Valid @RequestBody @Valid RestProductArchive restProductArchive)
      Create a product archive from the given Json object
      Specified by:
      createArchive in interface ArchiveController
    • countArchives

      @RequestMapping(value="/count", method=GET) public org.springframework.http.ResponseEntity<?> countArchives(@RequestParam(required=false) Long id, @RequestParam(required=false) String code, @RequestParam(required=false) String name, @RequestParam(required=false) String archiveType)
      Count the product archive matching the specified name, archive type.
      Specified by:
      countArchives in interface ArchiveController
    • getArchiveById

      @RequestMapping(value="/{id}", method=GET) public org.springframework.http.ResponseEntity<RestProductArchive> getArchiveById(@PathVariable Long id)
      Find the product archive with the given ID
      Specified by:
      getArchiveById in interface ArchiveController
    • deleteArchiveById

      @RequestMapping(value="/{id}", method=DELETE) public org.springframework.http.ResponseEntity<?> deleteArchiveById(@PathVariable Long id)
      Delete a product archive by ID
      Specified by:
      deleteArchiveById in interface ArchiveController
    • modifyArchive

      @RequestMapping(value="/{id}", method=PATCH) public org.springframework.http.ResponseEntity<RestProductArchive> modifyArchive(@PathVariable Long id, @RequestBody RestProductArchive restProductArchive)
      Update the product archive with the given ID with the attribute values of the given Json object.
      Specified by:
      modifyArchive in interface ArchiveController