public FormSubmissionRepository(IMinistryPlatformService ministryPlatformService, IDbConnection dbConnection, IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper, IMinistryPlatformRestRepository ministryPlatformRest)
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService        = ministryPlatformService;
     _ministryPlatformRestRepository = ministryPlatformRest;
     _dbConnection = dbConnection;
 }
Example #2
0
        public DonorRepository(IMinistryPlatformService ministryPlatformService, IMinistryPlatformRestRepository ministryPlatformRestRepository, IProgramRepository programService, ICommunicationRepository communicationService, IAuthenticationRepository authenticationService, IContactRepository contactService, IConfigurationWrapper configuration, ICryptoProvider crypto)
            : base(authenticationService, configuration)
        {
            _ministryPlatformService        = ministryPlatformService;
            _ministryPlatformRestRepository = ministryPlatformRestRepository;
            _programService       = programService;
            _communicationService = communicationService;
            _contactService       = contactService;
            _crypto = crypto;

            _donorPageId                          = configuration.GetConfigIntValue("Donors");
            _donationPageId                       = configuration.GetConfigIntValue("Donations");
            _donationDistributionPageId           = configuration.GetConfigIntValue("Distributions");
            _donorAccountsPageId                  = configuration.GetConfigIntValue("DonorAccounts");
            _findDonorByAccountPageViewId         = configuration.GetConfigIntValue("FindDonorByAccountPageView");
            _donationStatusesPageId               = configuration.GetConfigIntValue("DonationStatus");
            _donorLookupByEncryptedAccount        = configuration.GetConfigIntValue("DonorLookupByEncryptedAccount");
            _myHouseholdDonationDistributions     = configuration.GetConfigIntValue("MyHouseholdDonationDistributions");
            _recurringGiftBySubscription          = configuration.GetConfigIntValue("RecurringGiftBySubscription");
            _recurringGiftPageId                  = configuration.GetConfigIntValue("RecurringGifts");
            _myDonorPageId                        = configuration.GetConfigIntValue("MyDonor");
            _myHouseholdDonationRecurringGifts    = configuration.GetConfigIntValue("MyHouseholdDonationRecurringGifts");
            _myHouseholdRecurringGiftsApiPageView = configuration.GetConfigIntValue("MyHouseholdRecurringGiftsApiPageView");
            _myHouseholdPledges                   = configuration.GetConfigIntValue("MyHouseholdPledges");

            _dateTimeFormat = new DateTimeFormatInfo
            {
                AMDesignator = "am",
                PMDesignator = "pm"
            };
        }
Example #3
0
 public GroupConnectorRepository(IMinistryPlatformService ministryPlatformService, IMinistryPlatformRestRepository ministryPlatformRestRepository, IAuthenticationRepository authenticationService, IConfigurationWrapper configuration)
     : base(authenticationService, configuration)
 {
     _ministryPlatformService        = ministryPlatformService;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
     _apiToken = ApiLogin();
 }
Example #4
0
 public DonationRepository(IMinistryPlatformService ministryPlatformService, IDonorRepository donorService, ICommunicationRepository communicationService, IPledgeRepository pledgeService, IConfigurationWrapper configuration, IAuthenticationRepository authenticationService, IApiUserRepository apiUserRepository, IMinistryPlatformRestRepository ministryPlatformRest)
     : base(authenticationService, configuration)
 {
     _ministryPlatformService       = ministryPlatformService;
     _donorService                  = donorService;
     _communicationService          = communicationService;
     _pledgeService                 = pledgeService;
     _donationsPageId               = configuration.GetConfigIntValue("Donations");
     _donationDistributionPageId    = configuration.GetConfigIntValue("Distributions");
     _donorMessageTemplateId        = configuration.GetConfigIntValue("DonorMessageTemplateId");
     _distributionPageId            = configuration.GetConfigIntValue("Distributions");
     _batchesPageId                 = configuration.GetConfigIntValue("Batches");
     _depositsPageId                = configuration.GetConfigIntValue("Deposits");
     _paymentProcessorErrorsPageId  = configuration.GetConfigIntValue("PaymentProcessorEventErrors");
     _tripDistributionsPageView     = configuration.GetConfigIntValue("TripDistributionsView");
     _gpExportPageView              = configuration.GetConfigIntValue("GPExportView");
     _paymentGPExportPageView       = configuration.GetConfigIntValue("PaymentsGPExportView");
     _scholarshipPaymentTypeId      = configuration.GetConfigIntValue("ScholarshipPaymentTypeId");
     _tripDonationMessageTemplateId = configuration.GetConfigIntValue("TripDonationMessageTemplateId");
     _donationStatusSucceeded       = configuration.GetConfigIntValue("DonationStatusSucceeded");
     _donationCommunicationsPageId  = configuration.GetConfigIntValue("DonationCommunications");
     _messagesPageId                = configuration.GetConfigIntValue("Messages");
     _donationDistributionsSubPage  = configuration.GetConfigIntValue("DonationDistributionsApiSubPageView");
     _apiUserRepository             = apiUserRepository;
     _ministryPlatformRest          = ministryPlatformRest;
 }
Example #5
0
 public CampaignRepository(IMinistryPlatformService ministryPlatformService, IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper, IMinistryPlatformRestRepository ministryPlatformRest, IApiUserRepository apiUserRepository)
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService = ministryPlatformService;
     _ministryPlatformRest    = ministryPlatformRest;
     _apiUserRepository       = apiUserRepository;
 }
Example #6
0
 public InvoiceRepository(IMinistryPlatformRestRepository ministryPlatformRest, IApiUserRepository apiUserRepository, IProductRepository productRepository, IConfigurationWrapper configurationWrapper)
 {
     _ministryPlatformRest = ministryPlatformRest;
     _apiUserRepository    = apiUserRepository;
     _productRepository    = productRepository;
     _configurationWrapper = configurationWrapper;
     _invoiceCancelled     = _configurationWrapper.GetConfigIntValue("InvoiceCancelled");
 }
Example #7
0
 public UserRepository(IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper,
                       IMinistryPlatformService ministryPlatformService, IMinistryPlatformRestRepository ministryPlatformRest) : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService  = ministryPlatformService;
     _ministryPlatformRest     = ministryPlatformRest;
     _usersApiLookupPageViewId = _configurationWrapper.GetConfigIntValue("UsersApiLookupPageView");
     _usersPageId = _configurationWrapper.GetConfigIntValue("Users");
 }
Example #8
0
 public AttributeService(MPInterfaces.IAttributeRepository attributeRepository,
                         IMinistryPlatformRestRepository restRepository,
                         IApiUserRepository apiUserRepository)
 {
     _attributeRepository            = attributeRepository;
     _ministryPlatformRestRepository = restRepository;
     _apiUserRepository = apiUserRepository;
 }
 public ProductRepository(IConfigurationWrapper configurationWrapper,
                          IMinistryPlatformRestRepository ministryPlatformRest,
                          IApiUserRepository apiUserRepository)
 {
     _configurationWrapper = configurationWrapper;
     _ministryPlatformRest = ministryPlatformRest;
     _apiUserRepository    = apiUserRepository;
 }
Example #10
0
        public PledgeRepository(IMinistryPlatformService ministryPlatformService, IMinistryPlatformRestRepository ministryPlatformRestRepository, IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper)
            : base(authenticationService, configurationWrapper)
        {
            _ministryPlatformService        = ministryPlatformService;
            _ministryPlatformRestRepository = ministryPlatformRestRepository;

            _pledgePageId       = configurationWrapper.GetConfigIntValue("Pledges");
            _myHouseholdPledges = configurationWrapper.GetConfigIntValue("MyHouseholdPledges");
        }
 public TaskRepository(IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper,
                       IMinistryPlatformService ministryPlatformService, IMinistryPlatformRestRepository ministryPlatformRestRepository) :
     base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService        = ministryPlatformService;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
     _autoStartedTaskPageViewId      = _configurationWrapper.GetConfigIntValue("TasksNeedingAutoStarted");
     _roomReservationPageID          = _configurationWrapper.GetConfigIntValue("RoomReservationPageId");
 }
Example #12
0
 public ObjectAttributeRepository(IAuthenticationRepository authenticationService,
                                  IConfigurationWrapper configurationWrapper,
                                  IMinistryPlatformService ministryPlatformService,
                                  IMinistryPlatformRestRepository ministryPlatformRest)
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService = ministryPlatformService;
     _ministryPlatformRest    = ministryPlatformRest;
 }
Example #13
0
 public RoomRepository(IMinistryPlatformService ministryPlatformService,
                       IMinistryPlatformRestRepository ministryPlatformRestRepository,
                       IAuthenticationRepository authenticationService,
                       IConfigurationWrapper configuration)
     : base(authenticationService, configuration)
 {
     _ministryPlatformService        = ministryPlatformService;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
 }
Example #14
0
 public InvitationRepository(IMinistryPlatformService ministryPlatformService,
                             IMinistryPlatformRestRepository ministryPlatformRestRepository,
                             IConfigurationWrapper configurationWrapper,
                             IAuthenticationRepository authenticationService)
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService        = ministryPlatformService;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
     _invitationPageId = _configurationWrapper.GetConfigIntValue("InvitationPageID");
 }
 public AttributeRepository(IMinistryPlatformService ministryPlatformService,
                            IAuthenticationRepository authenticationService,
                            IConfigurationWrapper configurationWrapper,
                            IApiUserRepository apiUserService,
                            IMinistryPlatformRestRepository ministryPlatformRest)
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService = ministryPlatformService;
     _ministryPlatformRest    = ministryPlatformRest;
     _apiUserService          = apiUserService;
 }
Example #16
0
 public EventRepository(IMinistryPlatformService ministryPlatformService,
                        IAuthenticationRepository authenticationService,
                        IConfigurationWrapper configurationWrapper,
                        IGroupRepository groupService,
                        IMinistryPlatformRestRepository ministryPlatformRestRepository,
                        IEventParticipantRepository eventParticipantRepository)
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService        = ministryPlatformService;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
     _groupService = groupService;
     _eventParticipantRepository = eventParticipantRepository;
 }
Example #17
0
        public FormSubmissionRepository(IMinistryPlatformService ministryPlatformService, IDbConnection dbConnection, IAuthenticationRepository authenticationService, IConfigurationWrapper configurationWrapper, IMinistryPlatformRestRepository ministryPlatformRest)
            : base(authenticationService, configurationWrapper)
        {
            _ministryPlatformService        = ministryPlatformService;
            _ministryPlatformRestRepository = ministryPlatformRest;
            _dbConnection         = dbConnection;
            _configurationWrapper = configurationWrapper;

            _formResponsePageId     = configurationWrapper.GetConfigIntValue("FormResponsePageId");
            _formAnswerPageId       = configurationWrapper.GetConfigIntValue("FormAnswerPageId");
            _formFieldCustomPage    = configurationWrapper.GetConfigIntValue("AllFormFieldsView");
            _formResponseGoTripView = configurationWrapper.GetConfigIntValue("GoTripFamilySignup");
        }
Example #18
0
 public GroupToolRepository(IMinistryPlatformService ministryPlatformService,
                            IConfigurationWrapper configurationWrapper,
                            IAuthenticationRepository authenticationService,
                            IMinistryPlatformRestRepository mpRestRepository,
                            IApiUserRepository apiUserRepository)
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService           = ministryPlatformService;
     _invitationPageId                  = _configurationWrapper.GetConfigIntValue("InvitationPageID");
     _groupInquiresSubPageId            = _configurationWrapper.GetConfigIntValue("GroupInquiresSubPage");
     _groupInquiriesNotPlacedPageViewId = _configurationWrapper.GetConfigIntValue("GroupInquiriesNotPlacedPageView");
     _mpRestRepository                  = mpRestRepository;
     _apiUserRepository                 = apiUserRepository;
 }
Example #19
0
        public GroupParticipantRepository(IConfigurationWrapper configurationWrapper,
                                          IMinistryPlatformService ministryPlatformService,
                                          IApiUserRepository apiUserService,
                                          IMinistryPlatformRestRepository ministryPlatformRest,
                                          IGroupRepository groupRepository)

        {
            _configurationWrapper    = configurationWrapper;
            _ministryPlatformService = ministryPlatformService;
            _apiUserService          = apiUserService;
            _ministryPlatformRest    = ministryPlatformRest;
            _groupRepository         = groupRepository;
            _groupRoleLeader         = _configurationWrapper.GetConfigIntValue("GroupRoleLeader");
        }
 public OpportunityRepository(IMinistryPlatformService ministryPlatformService,
                              IAuthenticationRepository authenticationService,
                              IConfigurationWrapper configurationWrapper,
                              IParticipantRepository participantService,
                              IApiUserRepository apiUserService,
                              IMinistryPlatformRestRepository ministryPlatformRest
                              )
     : base(authenticationService, configurationWrapper)
 {
     _ministryPlatformService = ministryPlatformService;
     _participantService      = participantService;
     _apiUserService          = apiUserService;
     _ministryPlatformRest    = ministryPlatformRest;
 }
Example #21
0
        public ContactRepository(IMinistryPlatformService ministryPlatformService, IAuthenticationRepository authenticationService, IConfigurationWrapper configuration, IMinistryPlatformRestRepository ministryPlatformRest, IApiUserRepository apiUserRepository)
            : base(authenticationService, configuration)
        {
            _ministryPlatformService = ministryPlatformService;
            _ministryPlatformRest    = ministryPlatformRest;
            _apiUserRepository       = apiUserRepository;

            _householdsPageId           = configuration.GetConfigIntValue("Households");
            _securityRolesSubPageId     = configuration.GetConfigIntValue("SecurityRolesSubPageId");
            _congregationDefaultId      = configuration.GetConfigIntValue("Congregation_Default_ID");
            _householdDefaultSourceId   = configuration.GetConfigIntValue("Household_Default_Source_ID");
            _householdPositionDefaultId = configuration.GetConfigIntValue("Household_Position_Default_ID");
            _addressesPageId            = configuration.GetConfigIntValue("Addresses");
            _contactsPageId             = configuration.GetConfigIntValue("Contacts");
            _participantsPageId         = configuration.GetConfigIntValue("Participants");
        }
Example #22
0
 public ChildcareRequestRepository(IConfigurationWrapper configurationWrapper, IMinistryPlatformService ministryPlatformService, IApiUserRepository apiUserService, IEventRepository eventService, IGroupRepository groupService, IMinistryPlatformRestRepository ministryPlatformRest)
 {
     _ministryPlatformRest           = ministryPlatformRest;
     _ministryPlatformService        = ministryPlatformService;
     _apiUserService                 = apiUserService;
     _eventService                   = eventService;
     _childcareRequestPageId         = configurationWrapper.GetConfigIntValue("ChildcareRequestPageId");
     _childcareRequestDatesPageId    = configurationWrapper.GetConfigIntValue("ChildcareRequestDatesPageId");
     _childcareEmailPageViewId       = configurationWrapper.GetConfigIntValue("ChildcareEmailPageView");
     _childcareRequestStatusPending  = configurationWrapper.GetConfigIntValue("ChildcareRequestPending");
     _childcareRequestStatusApproved = configurationWrapper.GetConfigIntValue("ChildcareRequestApproved");
     _childcareEventType             = configurationWrapper.GetConfigIntValue("ChildcareEventType");
     _groupService                   = groupService;
     _childcareRequestDatesId        = configurationWrapper.GetConfigIntValue("ChildcareRequestDates");
     _myChildcareRequestDatesId      = configurationWrapper.GetConfigIntValue("MyChildcareRequestDates");
 }
Example #23
0
 public GroupRepository(IMinistryPlatformService ministryPlatformService,
                        IMinistryPlatformRestRepository ministryPlatformRestRepository,
                        IConfigurationWrapper configurationWrapper,
                        IAuthenticationRepository authenticationService,
                        ICommunicationRepository communicationService,
                        IContactRepository contactService,
                        IContentBlockService contentBlockService,
                        IAddressRepository addressRepository,
                        IObjectAttributeRepository objectAttributeRepository)
     : base(authenticationService, configurationWrapper)
 {
     this.ministryPlatformService    = ministryPlatformService;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
     _configurationWrapper           = configurationWrapper;
     _communicationService           = communicationService;
     _contactService            = contactService;
     _contentBlockService       = contentBlockService;
     _addressRepository         = addressRepository;
     _objectAttributeRepository = objectAttributeRepository;
 }
Example #24
0
 public FinderRepository(IConfigurationWrapper configuration,
                         IMinistryPlatformRestRepository ministryPlatformRest,
                         IApiUserRepository apiUserRepository,
                         IAuthenticationRepository authenticationService)
     : base(authenticationService, configuration)
 {
     _ministryPlatformRest = ministryPlatformRest;
     _apiUserRepository    = apiUserRepository;
     _groupColumns         = new List <string>
     {
         "Groups.Group_ID",
         "Groups.Group_Name",
         "Groups.Description",
         "Groups.Start_Date",
         "Groups.End_Date",
         "Offsite_Meeting_Address_Table.*",
         "Groups.Available_Online",
         "Groups.Primary_Contact",
         "Groups.Congregation_ID",
         "Groups.Ministry_ID",
         "Groups.Kids_Welcome"
     };
 }
Example #25
0
 public DomainLockedApiKeyFilter(IMinistryPlatformRestRepository ministryPlatformRestRepository, ICorsEngine corsEngine, IApiUserRepository apiUserRepository)
 {
     _apiKeys    = ministryPlatformRestRepository.UsingAuthenticationToken(apiUserRepository.GetToken()).Search <DomainLockedApiKey>();
     _corsEngine = corsEngine;
 }
Example #26
0
 public TripRepository(IMinistryPlatformRestRepository ministryPlatformRestRepository, IConfigurationWrapper configurationWrapper)
 {
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
     _configurationWrapper           = configurationWrapper;
 }
Example #27
0
 public ProductRulesetsRepository(IApiUserRepository apiUserRepository, IMinistryPlatformRestRepository ministryPlatformRestRepository, IRuleset rulesetRepository)
 {
     _apiUserRepository = apiUserRepository;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
     _rulesetRepository = rulesetRepository;
 }
Example #28
0
 public RulesetRepository(IApiUserRepository apiUserRepository, IMinistryPlatformRestRepository ministryPlatformRestRepository)
 {
     _apiUserRepository = apiUserRepository;
     _ministryPlatformRestRepository = ministryPlatformRestRepository;
 }
Example #29
0
 public ChildcareRepository(IConfigurationWrapper configurationWrapper, IMinistryPlatformRestRepository ministryPlatformRest)
 {
     _configurationWrapper = configurationWrapper;
     _ministryPlatformRest = ministryPlatformRest;
 }
Example #30
0
 public PaymentTypeRepository(IMinistryPlatformRestRepository ministryPlatformRest, IApiUserRepository apiUserRepository)
 {
     _ministryPlatformRest = ministryPlatformRest;
     _apiUserRepository    = apiUserRepository;
 }