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