Class WarehouseAgendaMaterialService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.inventory.rs2.warehouse.intervention.material.WarehouseAgendaMaterialService
@RestController
@RequestMapping("inventory/r2/warehouses/interventions/materials/agendamaterials")
@Resource(logging=true)
public class WarehouseAgendaMaterialService
extends PrivateService
Service to manage the warehouse agenda material.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOWarehouseAgendaMaterial> Retrieves the required warehouse agenda material.org.springframework.http.ResponseEntity<PageResponse<DTOWarehouseAgendaMaterial>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOWarehouseAgendaMaterialSearchFilter filter) Returns the collection of all the stored warehouse agenda material.
-
Constructor Details
-
WarehouseAgendaMaterialService
public WarehouseAgendaMaterialService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOWarehouseAgendaMaterial>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOWarehouseAgendaMaterialSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the stored warehouse agenda material.WarehouseAgendaMaterialSearchEvent- Parameters:
page- thePagethat will contain the paginated resultfilter- theDTOWarehouseAgendaMaterialSearchFilter- Returns:
- the
ResponseEntitycontaining the collection ofDTOWarehouseAgendaMaterials - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOWarehouseAgendaMaterial> get(@PathVariable("id") Long id, @RequestParam(required=false,name="language",defaultValue="user") String language) throws DAValidateException, DAException Retrieves the required warehouse agenda material.WarehouseAgendaMaterialLoadEvent- Parameters:
id- the warehouse agenda material idlanguage- the language of the user- Returns:
- the
ResponseEntitycontaining the loadedDTOWarehouseAgendaMaterial - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-