Class 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 of ExportQuery.
    • Constructor Detail

      • FlexibleSearchExportQuery

        public FlexibleSearchExportQuery()
    • 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:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
        Throws:
        org.springframework.beans.BeansException
      • 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)
      • 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: ExportQuery
        Search for a list of PK's to send to the next step in the chain
        Specified by:
        search in interface ExportQuery
        Parameters:
        message - The Spring message in the chain
        exportDataEvent - 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)