Class AssetStatusTypeService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.assets.rs1.statustype.AssetStatusTypeService
@RestController
@RequestMapping("assets/r1/status-types")
@Resource(logging=true)
public class AssetStatusTypeService
extends PrivateService
Services to manage asset types.
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOAssetStatusType> get(Long id, Collection<String> fields) Retrieves the required asset status type.org.springframework.http.ResponseEntity<PageResponse<DTOAssetStatusType>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOAssetStatusTypeSearchFilter filter) Retrieve the all stored asset status types.
-
Constructor Details
-
AssetStatusTypeService
public AssetStatusTypeService()
-
-
Method Details
-
getCollection
@GetMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOAssetStatusType>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOAssetStatusTypeSearchFilter filter) throws DAValidateException, DAException Retrieve the all stored asset status types.AssetStatusTypeSearchEvent- Parameters:
page- the required result pagefields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOAssetStatusTypeSearchFilter- Returns:
- the response containing the current result page
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{statusTypeId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOAssetStatusType> get(@PathVariable("statusTypeId") Long id, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required asset status type.AssetStatusTypeLoadEvent- Parameters:
id- account status type idfields- the collection of fields the response will contain- Returns:
- the response containing the required asset status type
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-