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