Class MaterialManagementTypeService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.materials.rs1.managementtype.MaterialManagementTypeService
@RestController
@RequestMapping("inventory/materials/r1/management-types")
@Resource(logging=true)
public class MaterialManagementTypeService
extends PrivateService
Services to manage material management type.
- Since:
- 17.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOMaterialManagementType> get(Long id, Collection<String> fields) Retrieves the requiredDTOMaterialManagementTypeby calling from theMaterialManagementTypeLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOMaterialManagementType>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOMaterialManagementTypeSearchFilter filter) Returns the collection of all the stored material management types by calling theMaterialManagementTypeSearchEvent.
-
Constructor Details
-
MaterialManagementTypeService
public MaterialManagementTypeService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOMaterialManagementType>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOMaterialManagementTypeSearchFilter filter) throws DAValidateException, DAException Returns the collection of all the stored material management types by calling theMaterialManagementTypeSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfilter- theDTOMaterialManagementTypeSearchFilter- Returns:
- the response containing the collection of
DTOMaterialManagementType - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{managementTypeId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOMaterialManagementType> get(@PathVariable("managementTypeId") Long id, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOMaterialManagementTypeby calling from theMaterialManagementTypeLoadEvent.- Parameters:
id- the material management type id- Returns:
- the response containing the inserted
DTOMaterialManagementType - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-