Class EnumQueryConnector
java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.service.data.connector.query.AbstractQueryConnector
com.almis.awe.service.data.connector.query.EnumQueryConnector
- All Implemented Interfaces:
QueryConnector
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
EnumQueryConnector Class
Connection class between QueryLauncher and EnumBuilder
- Author:
- Jorge BELLON 27-03-2017
-
Constructor Summary
ConstructorDescriptionEnumQueryConnector
(QueryUtil queryUtil, BaseConfigProperties baseConfigProperties, AweElements elements, NumericService numericService, EncodeService encodeService, com.fasterxml.jackson.databind.ObjectMapper mapper) Autowired constructor -
Method Summary
Modifier and TypeMethodDescriptionLaunch querylaunchEnum
(String enumId, com.fasterxml.jackson.databind.node.ObjectNode parameters) Launch enumeratedsubscribe
(Query query, ComponentAddress address, com.fasterxml.jackson.databind.node.ObjectNode parameters) Subscribe to a queueMethods inherited from class com.almis.awe.service.data.connector.query.AbstractQueryConnector
buildResults, fillDataList, generateResults, getQueryUtil, processDataList, sortDataList
Methods inherited from class com.almis.awe.config.ServiceConfig
containsBean, getApplicationContext, getBean, getBean, getElements, getLocale, getLocale, getProperty, getProperty, getRequest, getSession, setApplicationContext
-
Constructor Details
-
EnumQueryConnector
public EnumQueryConnector(QueryUtil queryUtil, BaseConfigProperties baseConfigProperties, AweElements elements, NumericService numericService, EncodeService encodeService, com.fasterxml.jackson.databind.ObjectMapper mapper) Autowired constructor- Parameters:
queryUtil
- Query utilitiesbaseConfigProperties
- Base config propertieselements
- AWE elementsnumericService
- Numeric serviceencodeService
- Encode servicemapper
- Object mapper
-
-
Method Details
-
launch
public ServiceData launch(Query query, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException Launch query- Parameters:
query
- Query to be launchedparameters
- Parameters- Returns:
- Query output as service data
- Throws:
AWException
- Query launch error
-
launchEnum
public ServiceData launchEnum(String enumId, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException Launch enumerated- Parameters:
enumId
- Enumerated identifierparameters
- Parameters- Returns:
- Query output as service data
- Throws:
AWException
- Error launching query
-
subscribe
public ServiceData subscribe(Query query, ComponentAddress address, com.fasterxml.jackson.databind.node.ObjectNode parameters) throws AWException Description copied from interface:QueryConnector
Subscribe to a queue- Parameters:
query
- Query to be subscribed toaddress
- Address of the subscribed componentparameters
- Parameters- Returns:
- Service data with execution info
- Throws:
AWException
- Error on subscription
-