Class ProjectProfileService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.projects.rs1.profile.ProjectProfileService
@RestController
@RequestMapping("work-orders/projects/r1/project-profiles")
@Resource(logging=true)
public class ProjectProfileService
extends PrivateService
Services to manage project profile
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOProjectProfile> get(Long id, String language, Collection<String> fields) Retrieves the required project profile by calling theProjectProfileLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOProjectProfile>> getCollection(@Valid Page page, String language, Collection<String> fields, String order, @Valid DTOProjectProfileFilter filter) Returns the collection of all the project profile by calling theProjectProfileSearchEvent.
-
Constructor Details
-
ProjectProfileService
public ProjectProfileService()
-
-
Method Details
-
get
@GetMapping(value="{projectProfileId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOProjectProfile> get(@PathVariable("projectProfileId") 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 profile by calling theProjectProfileLoadEvent.- Parameters:
id- project profile idlanguage- the user languagefields- the collection of fields the response will contain- Returns:
- the
ResponseEntitycontaining the loadedDTOProjectProfile - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOProjectProfile>> 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 DTOProjectProfileFilter filter) throws DAValidateException, DAException Returns the collection of all the project profile by calling theProjectProfileSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultlanguage- the user languagefields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOProjectProfileFilter- Returns:
- the
ResponseEntitycontaining the collection ofDTOProjectProfile - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-