Class ResourceManagementService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.resources.rs1.resourcemanagement.ResourceManagementService
@RestController
@RequestMapping("workforce/resources/r1/resource-managements")
@Resource(logging=true)
public class ResourceManagementService
extends PrivateService
Service to manage resource management
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOResourceManagement> get(Long id, Collection<String> fields) Retrieves the requiredDTOResourceManagementby calling theResourceManagementLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOResourceManagement>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOResourceManagementFilter filter) Returns the collection of all the stored resource managements by calling theResourceManagementSearchEvent.
-
Constructor Details
-
ResourceManagementService
public ResourceManagementService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOResourceManagement>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_fields") Collection<String> fields, @RequestParam(required=false,value="_order") String order, @Valid @Valid DTOResourceManagementFilter filter) throws DAValidateException, DAException Returns the collection of all the stored resource managements by calling theResourceManagementSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOResourceManagementFilter- Returns:
- the collection of
DTOResourceManagement - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{resourceManagementId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOResourceManagement> get(@PathVariable("resourceManagementId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOResourceManagementby calling theResourceManagementLoadEvent.- Parameters:
id- the resource management idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded resource management
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-