Class HourTypeService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.execution.rs1.hourtype.HourTypeService
@RestController
@RequestMapping("work-orders/execution/r1/working-hours-types")
@Resource(logging=true)
public class HourTypeService
extends PrivateService
Service to manage hour types.
- Since:
- 18.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOHourType> get(Long hourTypeId, Collection<String> fields) Retrieves the required hour type by calling from theHourTypeLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOHourType>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOHourTypeFilter filter) Returns the collection of all the stored hour types by calling theHourTypeSearchEvent.
-
Constructor Details
-
HourTypeService
public HourTypeService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOHourType>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @NotNull @Valid @NotNull DTOHourTypeFilter filter) throws DAValidateException, DAException Returns the collection of all the stored hour types by calling theHourTypeSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields that will be contained in the responseorder- the ordering fieldfilter- theDTOHourTypeFilter- Returns:
- the collection of hour types
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{workingHourTypeId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOHourType> get(@PathVariable("workingHourTypeId") Long hourTypeId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required hour type by calling from theHourTypeLoadEvent.- Parameters:
hourTypeId- the hour type Idfields- the collection of fields that will be contained in the response- Returns:
- the response containing the loaded hour type
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-