Class TransactionService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.inventory.rs2.warehouse.transaction.TransactionService
@RestController
@RequestMapping("inventory/r2/warehouses/transactions")
@Resource(logging=true)
public class TransactionService
extends PrivateService
Services to manage the transactions.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOTransaction> Retrieves the required transaction by calling theWarehouseTransactionLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOTransaction>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOTransactionSearchFilter filter) Retrieves all the stored transactions by calling theWarehouseTransactionSearchEvent.org.springframework.http.ResponseEntity<PageResponse<BOWarehouseTransactionSerializedMaterial>> Retrieves the required stock serialized materials by calling theWarehouseTransactionSerializedMaterialSearchEvent.
-
Constructor Details
-
TransactionService
public TransactionService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOTransaction>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOTransactionSearchFilter filter) throws DAValidateException, DAException Retrieves all the stored transactions by calling theWarehouseTransactionSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfilter- theDTOTransactionSearchFilter- Returns:
- the
ResponseEntitycontaining the collection of loadedDTOTransaction - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOTransaction> get(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves the required transaction by calling theWarehouseTransactionLoadEvent.- Parameters:
id- warehouse transaction id- Returns:
- the
ResponseEntitycontaining theDTOTransaction - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getSerializedMaterials
@GetMapping(value="{id:[0-9]+}/actions/getSerializedMaterials", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<BOWarehouseTransactionSerializedMaterial>> getSerializedMaterials(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves the required stock serialized materials by calling theWarehouseTransactionSerializedMaterialSearchEvent.- Parameters:
id- the warehouse transaction id- Returns:
- the
ResponseEntitycontaining the serialized materials of the transaction - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-