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