public AssignGoalIntent(
            IOleSettings settings,
            ISitecoreDataWrapper dataWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IPublishWrapper publishWrapper,
            IParameterResultFactory resultFactory,
            IProfileService profileService) : base(inputFactory, responseFactory, settings)
        {
            DataWrapper    = dataWrapper;
            PublishWrapper = publishWrapper;
            ProfileService = profileService;

            var goalParameters = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.GoalPath },
                { Constants.SearchParameters.TemplateId, Constants.TemplateIds.GoalTemplateId.ToString() },
                { Constants.SearchParameters.AutoStart, "true" }
            };

            ConversationParameters.Add(new ItemParameter(GoalItemKey, Translator.Text("Chat.Intents.AssignGoal.GoalParameterRequest"), goalParameters, dataWrapper, inputFactory, resultFactory));
            var contentParameters = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.ContentPath }
            };

            ConversationParameters.Add(new ItemParameter(PageItemKey, Translator.Text("Chat.Intents.AssignGoal.PageParameterRequest"), contentParameters, dataWrapper, inputFactory, resultFactory));
        }
示例#2
0
        public PublishIntent(
            IOleSettings settings,
            ISitecoreDataWrapper dataWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IPublishWrapper publishWrapper,
            IParameterResultFactory resultFactory) : base(inputFactory, responseFactory, settings)
        {
            DataWrapper    = dataWrapper;
            PublishWrapper = publishWrapper;

            ConversationParameters.Add(new RoleParameter(Translator.Text("Chat.Intents.Publish.RoleParameterWarning"), new List <string> {
                @"sitecore\Sitecore Client Publishing", @"sitecore\Sitecore Client Advanced Publishing"
            }, DataWrapper));
            var parameters = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.ContentPath }
            };

            ConversationParameters.Add(new ItemParameter(ItemKey, Translator.Text("Chat.Intents.Publish.ItemParameterRequest"), parameters, dataWrapper, inputFactory, resultFactory));
            ConversationParameters.Add(new LanguageParameter(LangKey, Translator.Text("Chat.Parameters.LangParameterRequest"), settings, dataWrapper, inputFactory, resultFactory));
            ConversationParameters.Add(new WorkflowParameter(ItemKey, LangKey, Translator.Text("Chat.Intents.Publish.WorkflowParameterWarning")));
            ConversationParameters.Add(new DatabaseParameter(DBKey, Translator.Text("Chat.Parameters.DBParameterRequest"), settings, dataWrapper, inputFactory, publishWrapper, resultFactory));
            ConversationParameters.Add(new YesOrNoParameter(RecursionKey, Translator.Text("Chat.Intents.Publish.RecursionParameterRequest"), inputFactory, resultFactory));
            ConversationParameters.Add(new YesOrNoParameter(RelatedKey, Translator.Text("Chat.Intents.Publish.RelatedParameterRequest"), inputFactory, resultFactory));
        }
        public AssignProfileCardIntent(
            IOleSettings settings,
            ISitecoreDataWrapper dataWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IParameterResultFactory resultFactory,
            IPublishWrapper publishWrapper,
            IProfileService profileService,
            ISearchService searchService) : base(inputFactory, responseFactory, settings)
        {
            DataWrapper    = dataWrapper;
            PublishWrapper = publishWrapper;
            ProfileService = profileService;
            SearchService  = searchService;

            var profileParameters = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.ProfilePath },
                { Constants.SearchParameters.TemplateId, Constants.TemplateIds.ProfileCardTemplateId.ToString() },
                { Constants.SearchParameters.AutoStart, "true" }
            };

            ConversationParameters.Add(new ItemParameter(ProfileCardItemKey, Translator.Text("Chat.Intents.AssignProfileCard.ProfileCardItemParameterRequest"), profileParameters, dataWrapper, inputFactory, resultFactory));

            var nameParameter = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.ContentPath },
            };
            var nameParam = new ItemParameter(ItemNameKey, Translator.Text("Chat.Intents.AssignProfileCard.ItemNameParameterRequest"), nameParameter, dataWrapper, inputFactory, resultFactory);

            nameParam.IsOptional = true;
            ConversationParameters.Add(nameParam);

            var templateParameter = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.TemplatePath },
            };
            var templateParam = new ItemParameter(TemplateItemKey, Translator.Text("Chat.Intents.AssignProfileCard.TemplateItemParameterRequest"), templateParameter, dataWrapper, inputFactory, resultFactory);

            templateParam.IsOptional = true;
            ConversationParameters.Add(templateParam);

            var folderParameter = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.ContentPath },
            };
            var folderParam = new ItemParameter(FolderItemKey, Translator.Text("Chat.Intents.AssignProfileCard.FolderItemParameterRequest"), folderParameter, dataWrapper, inputFactory, resultFactory);

            folderParam.IsOptional = true;
            ConversationParameters.Add(folderParam);

            var fieldParam = new KeyValueParameter(FieldItemKey, Translator.Text("Chat.Intents.AssignProfileCard.FieldNameParameterRequest"), Translator.Text("Chat.Intents.AssignProfileCard.FieldValueParameterRequest"), inputFactory, resultFactory);

            fieldParam.IsOptional = true;
            ConversationParameters.Add(fieldParam);
        }
示例#4
0
 public PublishIntent(
     IOleSettings settings,
     ISitecoreDataWrapper dataWrapper,
     IIntentOptionSetFactory optionSetFactory,
     IConversationResponseFactory responseFactory,
     IPublishWrapper publishWrapper) : base(optionSetFactory, responseFactory, settings)
 {
     DataWrapper    = dataWrapper;
     PublishWrapper = publishWrapper;
 }
 public SetupPersonalizationIntent(
     IOleSettings settings,
     ISitecoreDataWrapper dataWrapper,
     IIntentInputFactory inputFactory,
     IConversationResponseFactory responseFactory,
     IPublishWrapper publishWrapper,
     IProfileService profileService) : base(inputFactory, responseFactory, settings)
 {
     DataWrapper    = dataWrapper;
     PublishWrapper = publishWrapper;
     ProfileService = profileService;
 }
 public ListGoalsIntent(
     IOleSettings settings,
     ISitecoreDataWrapper dataWrapper,
     IIntentInputFactory inputFactory,
     IConversationResponseFactory responseFactory,
     IParameterResultFactory resultFactory,
     IPublishWrapper publishWrapper,
     IProfileService profileService) : base(inputFactory, responseFactory, settings)
 {
     DataWrapper    = dataWrapper;
     PublishWrapper = publishWrapper;
     ProfileService = profileService;
 }
 public SetupService(
     ISitecoreDataWrapper dataWrapper,
     IIBMWatsonApiKeys ibmApiKeys,
     IIntelligentTaggingSettings settings,
     IPublishWrapper publishWrapper,
     ISCSDKSettings scsdkSettings)
 {
     DataWrapper    = dataWrapper;
     IBMApiKeys     = ibmApiKeys;
     Settings       = settings;
     PublishWrapper = publishWrapper;
     SCSDKSettings  = scsdkSettings;
 }
示例#8
0
        public CreateProfileIntent(
            IOleSettings settings,
            ISitecoreDataWrapper dataWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IParameterResultFactory resultFactory,
            IPublishWrapper publishWrapper) : base(inputFactory, responseFactory, settings)
        {
            DataWrapper    = dataWrapper;
            PublishWrapper = publishWrapper;

            ConversationParameters.Add(new StringParameter(NameKey, Translator.Text("Chat.Intents.CreateProfile.NameParameterRequest"), inputFactory, resultFactory));
            ConversationParameters.Add(new StringParameter(ProfileKeysKey, Translator.Text("Chat.Intents.CreateProfile.KeysParameterRequest"), inputFactory, resultFactory));
        }
示例#9
0
        public CreateGoalIntent(
            IOleSettings settings,
            ISitecoreDataWrapper dataWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IPublishWrapper publishWrapper,
            IParameterResultFactory resultFactory) : base(inputFactory, responseFactory, settings)
        {
            DataWrapper    = dataWrapper;
            PublishWrapper = publishWrapper;

            ConversationParameters.Add(new StringParameter(NameKey, Translator.Text("Chat.Intents.CreateGoal.NameParameterRequest"), inputFactory, resultFactory));
            ConversationParameters.Add(new IntegerParameter(PointsKey, Translator.Text("Chat.Intents.CreateGoal.PointsParameterRequest"), inputFactory, resultFactory));
            //ConversationParameters.Add(new YesOrNoParameter(IsFailureKey, Translator.Text("Chat.Intents.CreateGoal.IsFailureParameterRequest"), inputFactory, resultFactory));
            // rule parameter - ConversationParameters.Add(new YesOrNoParameter(RecursionKey, Translator.Text("Chat.Intents.CreateGoal.IsFailure"), inputFactory, resultFactory));
        }
示例#10
0
 public DatabaseParameter(
     string paramName,
     string paramMessage,
     IOleSettings settings,
     ISitecoreDataWrapper dataWrapper,
     IIntentInputFactory inputFactory,
     IPublishWrapper publishWrapper,
     IParameterResultFactory resultFactory)
 {
     ParamName          = paramName;
     ParamMessage       = paramMessage;
     Settings           = settings;
     DataWrapper        = dataWrapper;
     IntentInputFactory = inputFactory;
     PublishWrapper     = publishWrapper;
     ResultFactory      = resultFactory;
     IsOptional         = false;
 }
示例#11
0
 public SetupService(
     IMicrosoftCognitiveServicesApiKeys mscsApiKeys,
     ILuisService luisService,
     IOleSettings oleSettings,
     ISitecoreDataWrapper dataWrapper,
     IContentSearchWrapper contentSearch,
     IPublishWrapper publishWrapper,
     HttpContextBase context
     )
 {
     MSCSApiKeys    = mscsApiKeys;
     LuisService    = luisService;
     OleSettings    = oleSettings;
     Context        = context;
     DataWrapper    = dataWrapper;
     ContentSearch  = contentSearch;
     PublishWrapper = publishWrapper;
 }
 public SetupService(
     ISitecoreDataWrapper dataWrapper,
     ISetupInformationFactory setupFactory,
     IMicrosoftCognitiveServicesApiKeys mscsApiKeys,
     IImageSearchSettings searchSettings,
     IImageAnalysisService analysisService,
     IImageSearchService searchService,
     IPublishWrapper publishWrapper,
     HttpContextBase context)
 {
     DataWrapper     = dataWrapper;
     SetupFactory    = setupFactory;
     MSCSApiKeys     = mscsApiKeys;
     SearchSettings  = searchSettings;
     AnalysisService = analysisService;
     SearchService   = searchService;
     Context         = context;
     PublishWrapper  = publishWrapper;
 }
        public SchedulePublishIntent(
            IOleSettings settings,
            ISitecoreDataWrapper dataWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IParameterResultFactory resultFactory,
            IPublishWrapper publishWrapper) : base(inputFactory, responseFactory, settings)
        {
            DataWrapper    = dataWrapper;
            PublishWrapper = publishWrapper;

            var parameters = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.ContentPath }
            };

            ConversationParameters.Add(new ItemParameter(ItemKey, Translator.Text("Chat.Intents.SchedulePublish.ItemParameterRequest"), parameters, dataWrapper, inputFactory, resultFactory));
            ConversationParameters.Add(new ItemVersionParameter(VersionKey, Translator.Text("Chat.Parameters.VersionParameterRequest"), ItemKey, inputFactory, resultFactory));
            ConversationParameters.Add(new DateParameter(DateKey, Translator.Text("Chat.Intents.SchedulePublish.DateParameterRequest"), inputFactory, dataWrapper, resultFactory));
            ConversationParameters.Add(new DatabaseParameter(DBKey, Translator.Text("Chat.Parameters.DBParameterRequest"), settings, dataWrapper, inputFactory, publishWrapper, resultFactory));
        }
 public SetupService(
     ISitecoreDataWrapper dataWrapper,
     IMicrosoftCognitiveServicesApiKeys mscsApiKeys,
     IIntelligentMediaSettings searchSettings,
     IImageAnalysisService analysisService,
     IIntelligentMediaSearchService searchService,
     IPublishWrapper publishWrapper,
     HttpContextBase context,
     ISCSDKSettings scsdkSettings,
     ILogWrapper logger)
 {
     DataWrapper     = dataWrapper;
     MSCSApiKeys     = mscsApiKeys;
     SearchSettings  = searchSettings;
     AnalysisService = analysisService;
     SearchService   = searchService;
     Context         = context;
     PublishWrapper  = publishWrapper;
     SCSDKSettings   = scsdkSettings;
     Logger          = logger;
 }
示例#15
0
        public ListProfileKeysIntent(
            IOleSettings settings,
            ISitecoreDataWrapper dataWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IParameterResultFactory resultFactory,
            IPublishWrapper publishWrapper,
            IProfileService profileService) : base(inputFactory, responseFactory, settings)
        {
            DataWrapper    = dataWrapper;
            PublishWrapper = publishWrapper;
            ProfileService = profileService;

            var parameters = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.ProfilePath },
                { Constants.SearchParameters.TemplateId, Constants.TemplateIds.ProfileTemplateId.ToString() },
                { Constants.SearchParameters.AutoStart, "true" }
            };

            ConversationParameters.Add(new ItemParameter(ItemKey, Translator.Text("Chat.Intents.ListProfileKeys.WhichProfile"), parameters, dataWrapper, inputFactory, resultFactory));
        }
示例#16
0
        public CreatePatternCardIntent(
            IOleSettings settings,
            ISitecoreDataWrapper dataWrapper,
            IIntentInputFactory inputFactory,
            IConversationResponseFactory responseFactory,
            IParameterResultFactory resultFactory,
            IPublishWrapper publishWrapper,
            IProfileService profileService) : base(inputFactory, responseFactory, settings)
        {
            DataWrapper    = dataWrapper;
            PublishWrapper = publishWrapper;
            ProfileService = profileService;

            var contentParameters = new Dictionary <string, string>
            {
                { Constants.SearchParameters.FilterPath, Constants.Paths.ProfilePath },
                { Constants.SearchParameters.TemplateId, Constants.TemplateIds.ProfileTemplateId.ToString() },
                { Constants.SearchParameters.AutoStart, "true" }
            };

            ConversationParameters.Add(new ItemParameter(ProfileItemKey, Translator.Text("Chat.Intents.CreatePatternCard.ProfileItemParameterRequest"), contentParameters, dataWrapper, inputFactory, resultFactory));
            ConversationParameters.Add(new StringParameter(NameKey, Translator.Text("Chat.Intents.CreatePatternCard.ProfileNameParameterRequest"), inputFactory, resultFactory));
            ConversationParameters.Add(new ProfileKeysParameter(ProfileItemKey, ProfileKeyValuesKey, Translator.Text("Chat.Intents.CreatePatternCard.ProfileKeyParameterRequest"), inputFactory, resultFactory, profileService));
        }