Class ConnectivityServiceBase
java.lang.Object
com.aquima.interactions.framework.service.connectivity.ConnectivityServiceBase
- All Implemented Interfaces:
IService
- Direct Known Subclasses:
CsvConnectivityService
,SoapConnectivityService
Base class for services that use connections to external systems to retrieve data.
- Since:
- 6.2
- Author:
- O. Kerpershoek
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OutputObject
createOutputObject
(IServiceContext context, OutputMapping mapping) protected IValueFormatter
getValueFormatter
(ConnectivityParameters parameters, IProject model) handle
(IServiceContext context) The handle method of the service is allowed to make changes to the interfaces passed along with the IServiceContext.protected abstract OutputObject[]
handle
(IServiceContext context, ConnectivityParameters parameters, InputObject serviceInput) protected abstract ConnectivityParameters
parseParameters
(IParameters parameters)
-
Constructor Details
-
ConnectivityServiceBase
public ConnectivityServiceBase()
-
-
Method Details
-
handle
protected abstract OutputObject[] handle(IServiceContext context, ConnectivityParameters parameters, InputObject serviceInput) throws AppException - Throws:
AppException
-
handle
Description copied from interface:IService
The handle method of the service is allowed to make changes to the interfaces passed along with the IServiceContext. This means the service context is changed accordingly.- Specified by:
handle
in interfaceIService
- Parameters:
context
- the context in which the service is called and allowed to make changes.- Returns:
- The result of this service, may be null.
- Throws:
ServiceException
- When an expected exception occurs and the portal should display certain messages.Exception
- When an unexpected exception occurs and the portal should display a standard message.
-
parseParameters
-
createOutputObject
protected OutputObject createOutputObject(IServiceContext context, OutputMapping mapping) throws AppException - Throws:
AppException
-
getValueFormatter
protected IValueFormatter getValueFormatter(ConnectivityParameters parameters, IProject model) throws UnknownValueFormatException - Throws:
UnknownValueFormatException
-