Class TeamMemberService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.teams.rs1.teammember.TeamMemberService
@RestController
@RequestMapping("workforce/teams/r1/team-members")
@Resource(logging=true)
public class TeamMemberService
extends PrivateService
Service to manage team member
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOTeamMember> get(Long id, Collection<String> fields) Retrieves the requiredDTOTeamMemberby calling theTeamMemberLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOTeamMember>> getCollection(@Valid Page page, Collection<String> fields, String order, DTOTeamMemberFilter filter) Returns the collection of all the stored team member by calling theTeamMemberSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long id, @Valid DTOTeamMemberUpdate dto) Update a team member by calling theTeamMemberUpdateEventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Create a new team member by calling theTeamMemberInsertEvent
-
Constructor Details
-
TeamMemberService
public TeamMemberService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOTeamMember>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, DTOTeamMemberFilter filter) throws DAValidateException, DAException Returns the collection of all the stored team member by calling theTeamMemberSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOTeamMemberFilter- Returns:
- the collection of
DTOTeamMember - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{teamMemberId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOTeamMember> get(@PathVariable("teamMemberId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOTeamMemberby calling theTeamMemberLoadEvent.- Parameters:
id- the team member idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded team member
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
post
@PostMapping(consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<DTOIdentifier<Long>> post(@Valid @RequestBody @Valid DTOTeamMemberInsert dto) throws DAValidateException, DAException Create a new team member by calling theTeamMemberInsertEvent- Parameters:
dto- theDTOTeamMemberInsert- Returns:
- the standard response containing the new team member id
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{teamMemberId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("teamMemberId") Long id, @RequestBody @Valid @Valid DTOTeamMemberUpdate dto) throws DAValidateException, DAException Update a team member by calling theTeamMemberUpdateEvent- Parameters:
id- the team member iddto- theDTOTeamMemberUpdate- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-