Class ServiceCall
java.lang.Object
com.aquima.interactions.portal.model.session.ServiceCall
- All Implemented Interfaces:
IServiceCall
The internal service call implementation. A service call is a configured service.
- Since:
- 6.4
- Author:
- Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionServiceCall
(IServiceFactory serviceFactory, ApplicationID moduleId, IServiceCallDefinition serviceCall, EventErrors errors) Constructs a service call with the required parameters. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the service call name.This method returns the possible exit events for this service call.This method returns the service parameters.This method returns the service type name.handle
(IPortalContext context) The handle method of the service is allowed to make changes to the interfaces passed along with the IPortalContext.
-
Constructor Details
-
ServiceCall
public ServiceCall(IServiceFactory serviceFactory, ApplicationID moduleId, IServiceCallDefinition serviceCall, EventErrors errors) Constructs a service call with the required parameters.- Parameters:
serviceFactory
- The service factory that should be used to create new instances of the services.moduleId
- The ID of the module.serviceCall
- The name of the service call.errors
- The object that should be used to add errors and warnings generated by the service to.
-
-
Method Details
-
handle
Description copied from interface:IServiceCall
The handle method of the service is allowed to make changes to the interfaces passed along with the IPortalContext. This means the service context is changed accordingly.- Specified by:
handle
in interfaceIServiceCall
- 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:
Exception
- When an unexpected exception occurs and the portal should display a standard message.
-
getParameters
Description copied from interface:IServiceCall
This method returns the service parameters.- Specified by:
getParameters
in interfaceIServiceCall
- Returns:
- The service parameters, never null.
-
getCallName
Description copied from interface:IServiceCall
This method returns the service call name.- Specified by:
getCallName
in interfaceIServiceCall
- Returns:
- The service call name, never null.
-
getTypeName
Description copied from interface:IServiceCall
This method returns the service type name.- Specified by:
getTypeName
in interfaceIServiceCall
- Returns:
- The service type name, never null.
-
getExitEvents
Description copied from interface:IServiceCall
This method returns the possible exit events for this service call.- Specified by:
getExitEvents
in interfaceIServiceCall
- Returns:
- The possible exit events, never null.
-