Class ProjectActivityTypeService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.projects.rs1.activity.type.ProjectActivityTypeService
@RestController
@RequestMapping("work-orders/projects/r1/project-activity-types")
@Resource(logging=true)
public class ProjectActivityTypeService
extends PrivateService
Services to manage project activity type
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOProjectActivityType> get(Long id, String language, Collection<String> fields) Retrieves the required project activity Types by calling theProjectActivityTypeLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOProjectActivityType>> getCollection(@Valid Page page, String language, Collection<String> fields, String order, @Valid DTOProjectActivityTypeFilter filter) Returns the collection of all the project activity types by calling theProjectActivityTypeSearchEvent.
-
Constructor Details
-
ProjectActivityTypeService
public ProjectActivityTypeService()
-
-
Method Details
-
get
@GetMapping(value="{projectActivityTypeId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOProjectActivityType> get(@PathVariable("projectActivityTypeId") Long id, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required project activity Types by calling theProjectActivityTypeLoadEvent.- Parameters:
id- project activity type idlanguage- the user languagefields- the collection of fields the response will contain- Returns:
- the
ResponseEntitycontaining the loadedDTOProjectActivityType - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOProjectActivityType>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_language",defaultValue="user") String language, @RequestParam(required=false,value="_fields") Collection<String> fields, @RequestParam(required=false,value="_order") String order, @Valid @Valid DTOProjectActivityTypeFilter filter) throws DAValidateException, DAException Returns the collection of all the project activity types by calling theProjectActivityTypeSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultlanguage- the user languagefields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOProjectActivityTypeFilter- Returns:
- the
ResponseEntitycontaining the collection ofDTOProjectActivityType - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-