Class TransferRequestHeaderService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.inventory.rs2.warehouse.transfer.request.header.TransferRequestHeaderService
@RestController
@RequestMapping("inventory/r2/warehouses/transfers/requests/headers")
@Resource(logging=true)
public class TransferRequestHeaderService
extends PrivateService
Services to manage transfer request headers.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOTransferRequestHeader> Retrieves the requiredDTOTransferRequestHeaderby calling from theTransferRequestHeaderLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOTransferRequestHeader>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOTransferRequestHeaderFilter filter, String ordering) Returns the collection of all the stored transfer request headers by calling theTransferRequestHeaderSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long id, @Valid DTOTransferRequestHeaderUpdate dto) Updates the required transfer request header by calling from theTransferRequestHeaderUpdateEvent.org.springframework.http.ResponseEntity<DTOIdentifier<Long>> Creates a new transfer request header by calling from theTransferRequestHeaderInsertEvent.
-
Constructor Details
-
TransferRequestHeaderService
public TransferRequestHeaderService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOTransferRequestHeader>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOTransferRequestHeaderFilter filter, @RequestParam("order") String ordering) throws DAValidateException, DAException Returns the collection of all the stored transfer request headers by calling theTransferRequestHeaderSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfilter- theDTOTransferRequestHeaderFilterordering- the attributes that will be used as ordering- Returns:
- the
ResponseEntitycontaining the collection ofDTOTransferRequestHeader - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOTransferRequestHeader> get(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves the requiredDTOTransferRequestHeaderby calling from theTransferRequestHeaderLoadEvent.- Parameters:
id- the id of the transfer request header to load- Returns:
- the
ResponseEntitycontaining the loadedDTOTransferRequestHeader - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@Valid @RequestBody @Valid DTOTransferRequestHeaderInsert dto) throws DAValidateException, DAException Creates a new transfer request header by calling from theTransferRequestHeaderInsertEvent.- Parameters:
dto- theDTOTransferRequestHeaderInsertcontaining the insert data- Returns:
- the
ResponseEntitycontaining the id of the inserted transfer request header - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
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 DTOTransferRequestHeaderUpdate dto) throws DAValidateException, DAException Updates the required transfer request header by calling from theTransferRequestHeaderUpdateEvent.- Parameters:
id- the id of the transfer request header to updatedto- theDTOTransferRequestHeaderUpdatecontaining the update data- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-