Class WarehouseOperationCenterService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.inventory.rs2.warehouse.central.operationcenter.WarehouseOperationCenterService
@RestController
@RequestMapping("inventory/r2/warehouses/centrals")
@Resource(logging=true)
public class WarehouseOperationCenterService
extends PrivateService
Services to manage relations between warehouses and operation centers.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Create a new operation center.org.springframework.http.ResponseEntity<PageResponse<DTOWarehouseOperationCenter>> Retrieves all the stored operation centers.org.springframework.http.ResponseEntity<Void> Action to delete a required operation center.
-
Constructor Details
-
WarehouseOperationCenterService
public WarehouseOperationCenterService()
-
-
Method Details
-
getOperationCenters
@GetMapping(value="{id:[0-9]+}/actions/getOperationCenters", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWarehouseOperationCenter>> getOperationCenters(@PathVariable("id") Long id) throws DAValidateException, DAException Retrieves all the stored operation centers.WarehouseOperationCenterSearchEvent- Parameters:
id- the id- Returns:
- response containing the operation centers
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
addOperationCenters
@PostMapping(value="{id:[0-9]+}/actions/addOperationCenter", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> addOperationCenters(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOWarehouseOperationCenterInsert dto) throws DAValidateException, DAException Create a new operation center.WarehouseOperationCenterInsertEvent- Parameters:
id- the iddto- theDTOWarehouseOperationCenterInsert- Returns:
- the DTO response containing the id of the new warehouse operation center
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
removeOperationCenters
@DeleteMapping(value="{id:[0-9]+}/actions/removeOperationCenter", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> removeOperationCenters(@PathVariable("id") Long id, @Valid @RequestBody @Valid DTOWarehouseOperationCenterDelete dto) throws DAValidateException, DAException Action to delete a required operation center.WarehouseOperationCenterDeleteEvent- Parameters:
id- the iddto- theDTOWarehouseOperationCenterDelete- Returns:
- the DTO response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-