Ejemplo n.º 1
0
 public ContactInfoApiController(
     IAuthenticatedUserContext userContext,
     IManageAccountInfo accountInfo,
     ITextTranslator textTranslator,
     IUserProfileContext profileContext)
 {
     UserContext    = userContext;
     AccountInfo    = accountInfo;
     TextTranslator = textTranslator;
     ProfileContext = profileContext;
 }
Ejemplo n.º 2
0
 public UserProfileUnitOfWork(IUserProfileContext context,
                              IUserProfileRepository userProfiles,
                              IInterestRepository interests,
                              IGoalRepository goals
                              ) : base(context)
 {
     this.context = context;
     UserProfiles = userProfiles;
     Interests    = interests;
     Goals        = goals;
 }
Ejemplo n.º 3
0
        public RegisterFreeTrialUserViewModel(
            IGlobalSitecoreService globalService,
            ITextTranslator textTranslator,
            IReturnUrlContext returnUrlContext,
            IUserProfileContext profileContext,
            IRegisterReturnUrlContext registerReturnUrlContext)
        {
            GlobalService           = globalService;
            TextTranslator          = textTranslator;
            ReturnUrlContext        = returnUrlContext;
            Profile                 = profileContext.Profile;
            RegisterReturnUrlContex = registerReturnUrlContext;

            Countries = globalService.GetCountries();
        }
Ejemplo n.º 4
0
 public HeaderViewModel(
     IAuthenticatedUserContext authenticatedUserContext,
     IUserCompanyNameContext companyNameContext,
     ITextTranslator textTranslator,
     ISiteRootContext siteRootContext,
     IUserProfileContext profileContext,
     IGlobalSitecoreService globalService)
 {
     AuthenticatedUserContext = authenticatedUserContext;
     CompanyNameContext       = companyNameContext;
     TextTranslator           = textTranslator;
     ProfileContext           = profileContext;
     GlobalService            = globalService;
     SiteRootContext          = siteRootContext;
 }
Ejemplo n.º 5
0
 public AnalyticsViewModel(
     IItemReferences itemReferences,
     IIsEntitledProducItemContext isEntitledProductItemContext,
     IArticleSearch articleSearch,
     ISiteSettings siteSettings,
     IAuthenticatedUserContext authenticatedUserContext,
     IUserCompanyContext userCompanyContext,
     IUserProfileContext userProfileContext,
     IUserSubscriptionsContext userSubscriptionsContext,
     IWebAuthenticateUser webAuthenticateUser,
     IUserEntitlementsContext userEntitlementsContext,
     IUserIpAddressContext userIpAddressContext,
     ISiteRootContext siteRootContext,
     IHttpContextProvider httpContextProvider,
     IDCDReader dcdReader,
     ITaxonomyService taxonomyService, IGlobalSitecoreService globalService, IRecaptchaService recaptchaSettings)
 {
     ItemReferences = itemReferences;
     IsEntitledProductItemContext = isEntitledProductItemContext;
     ArticleSearch            = articleSearch;
     SiteSettings             = siteSettings;
     AuthenticatedUserContext = authenticatedUserContext;
     UserCompanyContext       = userCompanyContext;
     UserProfileContext       = userProfileContext;
     UserSubscriptionsContext = userSubscriptionsContext;
     WebAuthenticateUser      = webAuthenticateUser;
     UserEntitlementsContext  = userEntitlementsContext;
     UserIpAddressContext     = userIpAddressContext;
     SiteRootContext          = siteRootContext;
     HttpContextProvider      = httpContextProvider;
     DcdReader              = dcdReader;
     EntitlementType        = GetEntitlementType(UserCompanyContext);
     UserEntitlements       = GetUserEntitlements();
     SubscribedProducts     = GetSubscribedProducts();
     OpportunityLineItemIds = GetOpportunityLineItemIds();
     OpportunityIds         = GetOpportunityIds();
     TaxonomyService        = taxonomyService;
     GlobalService          = globalService;
     RecaptchaSettings      = recaptchaSettings;
 }
Ejemplo n.º 6
0
        public ContactInformationViewModel(
            ITextTranslator translator,
            IAuthenticatedUserContext userContext,
            ISignInViewModel signInViewModel,
            IUserCompanyContext userCompanyContext,
            IUserProfileContext profileContext,
            IGlobalSitecoreService globalService)
        {
            TextTranslator  = translator;
            SignInViewModel = signInViewModel;

            IsAuthenticated   = userContext.IsAuthenticated;
            Username          = userContext.User.Username;
            Profile           = profileContext.Profile;
            AssociatedCompany = userCompanyContext?.Company?.Name ?? string.Empty;
            Salutations       = globalService.GetSalutations();
            Suffixes          = globalService.GetNameSuffixes();
            JobFunctions      = globalService.GetJobFunctions();
            JobIndustries     = globalService.GetJobIndustries();
            PhoneTypes        = globalService.GetPhoneTypes();
            Countries         = globalService.GetCountries();
        }
Ejemplo n.º 7
0
        public IndividualRenewalMessageViewModel(
            ITextTranslator textTranslator,
            IIndividualSubscriptionRenewalMessageContext context,
            IAuthenticatedUserContext userContext,
            ISiteRootContext siteRootContext,
            IUserSubscriptionsContext userSubscriptionsContext,
            IUserProfileContext profileContext)
        {
            Context                  = context;
            SiteRootContext          = siteRootContext;
            UserSubscriptionsContext = userSubscriptionsContext;
            ProfileContext           = profileContext;

            ISubscription record = userContext.IsAuthenticated ? GetLatestExpiringRecord() : null;

            DismissText  = textTranslator.Translate("Subscriptions.Renewals.Dismiss");
            Display      = DisplayMessage(record);
            Message      = Display ? GetMessage(record, profileContext?.Profile?.FirstName ?? string.Empty) : string.Empty;
            Id           = context.ID;
            RenewURL     = context.RenewalLinkURL;
            RenewURLText = context.RenewalLinkText;
        }
Ejemplo n.º 8
0
 public UserProfileRepository(IUserProfileContext userProfileContext) : base(userProfileContext)
 {
 }
Ejemplo n.º 9
0
 public InterestRepository(IUserProfileContext userProfileDbContext) : base(userProfileDbContext)
 {
 }