Class TransferRequestItemService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.inventory.rs2.warehouse.transfer.request.item.TransferRequestItemService
@RestController
@RequestMapping("inventory/r2/warehouses/transfers/requests/headers/{id:[0-9]+}/items")
@Resource(logging=true)
public class TransferRequestItemService
extends PrivateService
Services to manage transfer request items.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOTransferRequestItem> Retrieves the requiredDTOTransferRequestItemby calling from theTransferRequestItemLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOTransferRequestItem>> getCollection(Long id, @NotNull @Valid Page page, @Valid @NotNull DTOTransferRequestItemFilter filter) Returns the collection of all the stored transfer request items by calling theTransferRequestItemSearchEvent.org.springframework.http.ResponseEntity<PageResponse<BOTransferRequestItemSerializedMaterial>> getSerializedMaterials(Long id, Long itemId) Retrieves the required stock serialized materials starting from the item id.org.springframework.http.ResponseEntity<Void> patch(Long id, Long itemId, @Valid DTOTransferRequestItemUpdate dto) Updates the required transfer request item by calling from theTransferRequestItemUpdateEvent.org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(Long id, @Valid DTOTransferRequestItemInsert dto) Creates a new transfer request item by calling from theTransferRequestItemInsertEvent.
-
Constructor Details
-
TransferRequestItemService
public TransferRequestItemService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOTransferRequestItem>> getCollection(@PathVariable("id") Long id, @RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOTransferRequestItemFilter filter) throws DAValidateException, DAException Returns the collection of all the stored transfer request items by calling theTransferRequestItemSearchEvent.- Parameters:
id- the transfer request header idpage- thePagethat will contain the paginated resultfilter- theDTOTransferRequestItemFilter- Returns:
- the
ResponseEntitycontaining the collection ofDTOTransferRequestItem - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{itemId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOTransferRequestItem> get(@PathVariable("id") Long id, @PathVariable("itemId") Long itemId) throws DAValidateException, DAException Retrieves the requiredDTOTransferRequestItemby calling from theTransferRequestItemLoadEvent.- Parameters:
id- the transfer request header iditemId- the item id- Returns:
- the
ResponseEntitycontaining the loadedDTOTransferRequestItem - 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(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOTransferRequestItemInsert dto) throws DAValidateException, DAException Creates a new transfer request item by calling from theTransferRequestItemInsertEvent.- Parameters:
id- the transfer request header iddto- theDTOTransferRequestItemInsertcontaining the insert data- Returns:
- the
ResponseEntitycontaining the id of the just inserted - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{itemId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("id") Long id, @PathVariable("itemId") Long itemId, @Valid @RequestBody @Valid DTOTransferRequestItemUpdate dto) throws DAValidateException, DAException Updates the required transfer request item by calling from theTransferRequestItemUpdateEvent.- Parameters:
id- the transfer request header iditemId- the item iddto- theDTOTransferRequestItemUpdatecontaining the update data- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getSerializedMaterials
@GetMapping(value="{itemId:[0-9]+}/actions/getSerializedMaterials", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<BOTransferRequestItemSerializedMaterial>> getSerializedMaterials(@PathVariable("id") Long id, @PathVariable("itemId") Long itemId) throws DAValidateException, DAException Retrieves the required stock serialized materials starting from the item id.TransferRequestItemSerializedMaterialSearchEvent- Parameters:
id- the transfer request iditemId- the transfer request item id- Returns:
- the
ResponseEntitycontaining the serialized materials of the stock - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-