/// <summary>
        /// Initializes a new instance of the <see cref="DataAccessIntentHandler"/> class.
        /// </summary>
        public DataAccessIntentHandler(IIntentManager intentManager,
            INetworkSearchConfigBuilder networkSearchConfigBuilder,
            IDataSourcesAndSchema dataSourcesAndSchema,
            IExploreConfigBuilder exploreConfigBuilder,
            INotificationService notificationService,
            IExplorationIntentFactory explorationIntentFactory,
            IAcxiomConstants acxiomConstants)
        {
            mIntentManager = intentManager;
            mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
            mDataSourcesAndSchema = dataSourcesAndSchema;
            mExploreConfigBuilder = exploreConfigBuilder;
            mNotificationService = notificationService;
            mExplorationIntentFactory = explorationIntentFactory;
            mAcxiomConstants = acxiomConstants;

            mDataSource = mDataSourcesAndSchema.DataSources.SingleOrDefault(x => x.Id.Equals(mAcxiomConstants.AcxiomDaodExternalContextRoot));

            if (mDataSource == null)
            {
                string extractDataSourceNotFound = string.Format(AcxiomStringResources.ErrorExternalDataSourceNotFound, mAcxiomConstants.AcxiomDaodExternalContextRoot);
                mNotificationService.PresentInformationNotificationWithoutDiagnosticsToTheUser(extractDataSourceNotFound);
                throw new ArgumentException(string.Format(CultureInfo.InvariantCulture,
                                                          AcxiomStringResources.ErrorExternalDataSourceNotFound,
                                                          mAcxiomConstants.AcxiomDaodExternalContextRoot));
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonSubsetSubsetIntentHandler"/> class.
 /// </summary>
 public JsonSubsetSubsetIntentHandler(IIntentManager intentManager, 
     IJsonSerializerWrapper jsonSerializerWrapper,
     INetworkSearchConfigBuilder networkSearchConfigBuilder,
     IDataSourcesAndSchema dataSourcesAndSchema,
     IExploreConfigBuilder exploreConfigBuilder,
     IExplorationIntentFactory explorationIntentFactory,
     IJavaScriptHostedCallRunner javaScriptHostedCallRunner)
 {
     mIntentManager = intentManager;
     mJsonSerializerWrapper = jsonSerializerWrapper;
     mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
     mDataSourcesAndSchema = dataSourcesAndSchema;
     mExploreConfigBuilder = exploreConfigBuilder;
     mExplorationIntentFactory = explorationIntentFactory;
     mJavaScriptHostedCallRunner = javaScriptHostedCallRunner;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="JsonSubsetSubsetIntentHandler"/> class.
 /// </summary>
 public JsonSubsetSubsetIntentHandler(IIntentManager intentManager,
                                      IJsonSerializerWrapper jsonSerializerWrapper,
                                      INetworkSearchConfigBuilder networkSearchConfigBuilder,
                                      IDataSourcesAndSchema dataSourcesAndSchema,
                                      IExploreConfigBuilder exploreConfigBuilder,
                                      IExplorationIntentFactory explorationIntentFactory,
                                      IJavaScriptHostedCallRunner javaScriptHostedCallRunner)
 {
     mIntentManager              = intentManager;
     mJsonSerializerWrapper      = jsonSerializerWrapper;
     mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
     mDataSourcesAndSchema       = dataSourcesAndSchema;
     mExploreConfigBuilder       = exploreConfigBuilder;
     mExplorationIntentFactory   = explorationIntentFactory;
     mJavaScriptHostedCallRunner = javaScriptHostedCallRunner;
 }
        private string mSubetName = "{subset_default_name}"; //set default for now;

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="DataAccessIntentHandler"/> class.
        /// </summary>
        public DataAccessIntentHandler(IIntentManager intentManager, 
            INetworkSearchConfigBuilder networkSearchConfigBuilder,
            IDataSourcesAndSchema dataSourcesAndSchema,
            IExploreConfigBuilder exploreConfigBuilder,
            INotificationService notificationService,
            IExplorationIntentFactory explorationIntentFactory,
            IAcxiomConstants acxiomConstants)
        {
            mIntentManager = intentManager;
            mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
            mDataSourcesAndSchema = dataSourcesAndSchema;
            mExploreConfigBuilder = exploreConfigBuilder;
            mNotificationService = notificationService;
            mExplorationIntentFactory = explorationIntentFactory;
            mAcxiomConstants = acxiomConstants;

            mAcxiomExternalDataSource = mAcxiomConstants.AcxiomDaodExternalContextRoot;//defaults to daod
            mAcxiomDaodXmlSourcePath = mAcxiomConstants.AcxiomDaodXmlSourcePath; //defaults to c:/i2-integration/xml/
            mAcxiomTransformSourcePath = mAcxiomConstants.AcxiomDaodTransformSourcePath; //defaults to empty
        }
Exemple #5
0
        private IDataSource mDataSource = null;           //ACXIOM External Data Source

        /// <summary>
        /// Initializes a new instance of the <see cref="DataAccessIntentHandler"/> class.
        /// </summary>
        public DataAccessIntentHandler(IIntentManager intentManager,
                                       INetworkSearchConfigBuilder networkSearchConfigBuilder,
                                       IDataSourcesAndSchema dataSourcesAndSchema,
                                       IExploreConfigBuilder exploreConfigBuilder,
                                       INotificationService notificationService,
                                       IExplorationIntentFactory explorationIntentFactory,
                                       IAcxiomConstants acxiomConstants)
        {
            mIntentManager = intentManager;
            mNetworkSearchConfigBuilder = networkSearchConfigBuilder;
            mDataSourcesAndSchema       = dataSourcesAndSchema;
            mExploreConfigBuilder       = exploreConfigBuilder;
            mNotificationService        = notificationService;
            mExplorationIntentFactory   = explorationIntentFactory;
            mAcxiomConstants            = acxiomConstants;

            mAcxiomExternalDataSource  = mAcxiomConstants.AcxiomDaodExternalContextRoot; //defaults to daod
            mAcxiomDaodXmlSourcePath   = mAcxiomConstants.AcxiomDaodXmlSourcePath;       //defaults to c:/i2-integration/xml/
            mAcxiomTransformSourcePath = mAcxiomConstants.AcxiomDaodTransformSourcePath; //defaults to empty
        }