Class FlexibleSearchExportQuery
- java.lang.Object
-
- de.hybris.platform.acceleratorservices.dataexport.generic.query.impl.FlexibleSearchExportQuery
-
- All Implemented Interfaces:
ExportQuery,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware
public class FlexibleSearchExportQuery extends java.lang.Object implements ExportQuery, org.springframework.beans.factory.BeanFactoryAware
Default implementation ofExportQuery.
-
-
Constructor Summary
Constructors Constructor Description FlexibleSearchExportQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> TevalExpression(org.springframework.messaging.Message<?> message, java.lang.String expressionString, java.lang.Class<T> resultType)protected org.springframework.beans.factory.BeanFactorygetBeanFactory()protected FlexibleSearchServicegetFlexibleSearchService()ImpersonationServicegetImpersonationService()protected java.util.Map<java.lang.String,java.lang.String>getParameters()protected java.lang.StringgetQuery()protected java.util.Map<java.lang.String,java.lang.Object>prepareParameters(org.springframework.messaging.Message<?> message, java.util.Map<java.lang.String,java.lang.String> parameters)java.util.List<PK>search(org.springframework.messaging.Message<?> message, ExportDataEvent exportDataEvent)Search for a list of PK's to send to the next step in the chainvoidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetImpersonationService(ImpersonationService impersonationService)voidsetParameters(java.util.Map<java.lang.String,java.lang.String> parameters)voidsetQuery(java.lang.String query)
-
-
-
Method Detail
-
getBeanFactory
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
-
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException- Specified by:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Throws:
org.springframework.beans.BeansException
-
getFlexibleSearchService
protected FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
getQuery
protected java.lang.String getQuery()
-
setQuery
public void setQuery(java.lang.String query)
-
getParameters
protected java.util.Map<java.lang.String,java.lang.String> getParameters()
-
setParameters
public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
-
getImpersonationService
public ImpersonationService getImpersonationService()
-
setImpersonationService
public void setImpersonationService(ImpersonationService impersonationService)
-
search
public java.util.List<PK> search(org.springframework.messaging.Message<?> message, ExportDataEvent exportDataEvent) throws java.lang.Throwable
Description copied from interface:ExportQuerySearch for a list of PK's to send to the next step in the chain- Specified by:
searchin interfaceExportQuery- Parameters:
message- The Spring message in the chainexportDataEvent- The object that contains the type of event and all relevant data to search- Returns:
- list of PK's
- Throws:
java.lang.Throwable
-
prepareParameters
protected java.util.Map<java.lang.String,java.lang.Object> prepareParameters(org.springframework.messaging.Message<?> message, java.util.Map<java.lang.String,java.lang.String> parameters)
-
evalExpression
protected <T> T evalExpression(org.springframework.messaging.Message<?> message, java.lang.String expressionString, java.lang.Class<T> resultType)
-
-