Class MaterialHistoryService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.core.rs5.material.history.MaterialHistoryService
@RestController
@RequestMapping("core/r5/materials/histories")
@Resource(logging=true)
public class MaterialHistoryService
extends PrivateService
Services to manage material history.
- Since:
- 19.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOMaterialHistory> Retrieves the requiredDTOMaterialHistoryby calling from theMaterialHistoryLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOMaterialHistory>> getCollection(@NotNull @Valid Page page, @Valid @NotNull DTOMaterialHistorySearchFilter filter) Returns the collection of all the stored material histories by calling theMaterialHistorySearchEvent.
-
Constructor Details
-
MaterialHistoryService
public MaterialHistoryService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMaterialHistory>> getCollection(@RequestParam("page") @NotNull @Valid @NotNull @Valid Page page, @RequestParam("filter") @Valid @NotNull @Valid @NotNull DTOMaterialHistorySearchFilter filter) throws DAValidateException, DAException Returns the collection of all the stored material histories by calling theMaterialHistorySearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfilter- theDTOMaterialHistorySearchFilter- Returns:
- the collection of
DTOMaterialHistory - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{id:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOMaterialHistory> get(@PathVariable("id") Long id, @RequestParam(required=false,name="language",defaultValue="user") String language) throws DAValidateException, DAException Retrieves the requiredDTOMaterialHistoryby calling from theMaterialHistoryLoadEvent.- Parameters:
id- the material history idlanguage- the currently needed language- Returns:
- the DTO response the loaded
DTOMaterialHistory - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-