Class WarehouseCentralMobileService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.inventory.rs2.warehouse.centralmobile.WarehouseCentralMobileService
@RestController
@RequestMapping("inventory/r2/warehouses/centralmobile")
@Resource(logging=true)
public class WarehouseCentralMobileService
extends PrivateService
Services to manage the central-mobile warehouse association.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Action to delete the required central-mobile warehouse association by calling theWarehouseCentralMobileDeleteEvent.org.springframework.http.ResponseEntity<PageResponse<DTOWarehouseCentralMobile>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOWarehouseCentralMobileSearchFilter filter) Returns the collection of all the stored warehouse central-mobile associations by calling theWarehouseCentralMobileSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long mobileId, Long centralId, @Valid DTOWarehouseCentralMobileUpdate dto) Updates the central-mobile warehouse association by calling theWarehouseCentralMobileUpdateEvent.org.springframework.http.ResponseEntity<DTOIdentifier<Long>> Creates a new central warehouse mobile association by calling theWarehouseCentralMobileInsertEvent.
-
Constructor Details
-
WarehouseCentralMobileService
public WarehouseCentralMobileService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWarehouseCentralMobile>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOWarehouseCentralMobileSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the stored warehouse central-mobile associations by calling theWarehouseCentralMobileSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfilter- theDTOWarehouseCentralMobileSearchFilter- Returns:
- the
ResponseEntitycontaining the collection ofDTOWarehouseCentralMobile - 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 DTOWarehouseCentralMobileInsert dto) throws DAValidateException, DAException Creates a new central warehouse mobile association by calling theWarehouseCentralMobileInsertEvent.- Parameters:
dto- theDTOWarehouseCentralMobileInsert- Returns:
- the
ResponseEntitycontaining the central warehouse mobile association id - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{mobileId:[0-9]+}/{centralId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("mobileId") Long mobileId, @PathVariable("centralId") Long centralId, @Valid @RequestBody @Valid DTOWarehouseCentralMobileUpdate dto) throws DAValidateException, DAException Updates the central-mobile warehouse association by calling theWarehouseCentralMobileUpdateEvent.- Parameters:
mobileId- the mobile warehouse idcentralId- the central warehouse iddto- theDTOWarehouseCentralMobileUpdate- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
delete
@DeleteMapping(value="{mobileId:[0-9]+}/{centralId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<Void> delete(@PathVariable("mobileId") Long mobileId, @PathVariable("centralId") Long centralId) throws DAValidateException, DAException Action to delete the required central-mobile warehouse association by calling theWarehouseCentralMobileDeleteEvent.- Parameters:
mobileId- the mobile warehouse idcentralId- the central warehouse id- Returns:
- the
ResponseEntity - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-