Class AccountContactTypeService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.accounts.rs1.contacttype.AccountContactTypeService
@RestController
@RequestMapping("assets/accounts/r1/contact-types")
@Resource(logging=true)
public class AccountContactTypeService
extends PrivateService
Service to manage account contact types
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOAccountContactType> get(Long accountContactTypeId, Collection<String> fields) Retrieves the requiredDTOAccountContactTypeby calling theContactTypeLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOAccountContactType>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOAccountContactTypeFilter filter) Returns the collection of all the stored account contact type by calling theContactTypeSearchEvent.
-
Constructor Details
-
AccountContactTypeService
public AccountContactTypeService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOAccountContactType>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,name="_fields") Collection<String> fields, @RequestParam(required=false,name="_order") String order, @Valid @Valid DTOAccountContactTypeFilter filter) throws DAValidateException, DAException Returns the collection of all the stored account contact type by calling theContactTypeSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOAccountContactTypeFilter- Returns:
- the collection of
DTOAccountContactType - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{accountContactTypeId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOAccountContactType> get(@PathVariable("accountContactTypeId") Long accountContactTypeId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOAccountContactTypeby calling theContactTypeLoadEvent.- Parameters:
accountContactTypeId- the account type idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded account contact type
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-