Class ExternalSystemService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.wfm.systemsettings.rs1.externalsystem.ExternalSystemService
@RestController
@RequestMapping("configurations/system-settings/r1/external-systems")
@Resource(logging=true)
public class ExternalSystemService
extends PrivateService
Service to manage external system
- Since:
- 16.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOExternalSystem> get(Long id, Collection<String> fields) Retrieves the requiredDTOExternalSystemby calling theExternalSystemLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOExternalSystem>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid DTOExternalSystemFilter filter) Returns the collection of all the stored external system by calling theExternalSystemSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long id, @Valid DTOExternalSystemUpdate dto) Update an external system by calling theExternalSystemUpdateEventorg.springframework.http.ResponseEntity<DTOIdentifier<Long>> Create a new external system by calling theExternalSystemInsertEvent
-
Constructor Details
-
ExternalSystemService
public ExternalSystemService()
-
-
Method Details
-
getCollection
@GetMapping(produces="application/json") public org.springframework.http.ResponseEntity<PageResponse<DTOExternalSystem>> getCollection(@RequestParam("_page") @Valid @Valid Page page, @RequestParam(required=false,value="_fields") Collection<String> fields, @RequestParam(required=false,value="_order") String order, @Valid @Valid DTOExternalSystemFilter filter) throws DAValidateException, DAException Returns the collection of all the stored external system by calling theExternalSystemSearchEvent.- Parameters:
page- thePagethat will contain the paginated resultfields- the collection of fields the response will containorder- the ordering fieldfilter- theDTOExternalSystemFilter- Returns:
- the collection of
DTOExternalSystem - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
get
@GetMapping(value="{externalSystemId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOExternalSystem> get(@PathVariable("externalSystemId") Long id, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the requiredDTOExternalSystemby calling theExternalSystemLoadEvent.- Parameters:
id- the external system idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded external system
- 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 DTOExternalSystemInsert dto) throws DAValidateException, DAException Create a new external system by calling theExternalSystemInsertEvent- Parameters:
dto- theDTOExternalSystemInsert- Returns:
- the standard response containing the new external system id
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
patch
@PatchMapping(value="{externalSystemId:[0-9]+}", consumes="application/json", produces="application/json") public org.springframework.http.ResponseEntity<Void> patch(@PathVariable("externalSystemId") Long id, @Valid @RequestBody @Valid DTOExternalSystemUpdate dto) throws DAValidateException, DAException Update an external system by calling theExternalSystemUpdateEvent- Parameters:
id- the external system iddto- theDTOExternalSystemUpdate- Returns:
- the standard response
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-