Class SerializedMaterialService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.rs5.material.serialized.SerializedMaterialService
@RestController
@RequestMapping("core/r5/materials/serialized")
@Resource(logging=true)
public class SerializedMaterialService
extends PrivateService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOSerializedMaterial> org.springframework.http.ResponseEntity<PageResponse<DTOSerializedMaterial>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOSerializedMaterialSearchFilter filter) org.springframework.http.ResponseEntity<DTOSerializedMaterialHistory> getHistory(Long serializedMaterialId, Long id) org.springframework.http.ResponseEntity<PageResponse<DTOSerializedMaterialHistory>> getSerializedMaterialHistories(Long serializedMaterialId) org.springframework.http.ResponseEntity<Void> patch(Long id, @Valid DTOSerializedMaterialUpdate dto) org.springframework.http.ResponseEntity<DTOIdentifier<Long>>
-
Constructor Details
-
SerializedMaterialService
public SerializedMaterialService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOSerializedMaterial>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOSerializedMaterialSearchFilter filter) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOSerializedMaterial> get(@PathVariable("id") Long id) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@Valid @RequestBody @Valid DTOSerializedMaterialInsert dto) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
patch
@PatchMapping(value="{id:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOSerializedMaterialUpdate dto) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getSerializedMaterialHistories
@GetMapping(value="{serializedMaterialId:[0-9]+}/histories", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOSerializedMaterialHistory>> getSerializedMaterialHistories(@PathVariable("serializedMaterialId") Long serializedMaterialId) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getHistory
@GetMapping(value="{serializedMaterialId:[0-9]+}/histories/{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOSerializedMaterialHistory> getHistory(@PathVariable("serializedMaterialId") Long serializedMaterialId, @PathVariable("id") Long id) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-