public PackagesController(
     IPackageService packageService,
     IUploadFileService uploadFileService,
     IMessageService messageService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
     IPackageFileService packageFileService,
     IEntitiesContext entitiesContext,
     IAppConfiguration config,
     IIndexingService indexingService,
     ICacheService cacheService,
     EditPackageService editPackageService,
     IPackageDeleteService packageDeleteService,
     ISupportRequestService supportRequestService,
     AuditingService auditingService)
 {
     _packageService = packageService;
     _uploadFileService = uploadFileService;
     _messageService = messageService;
     _searchService = searchService;
     _autoCuratedPackageCmd = autoCuratedPackageCmd;
     _packageFileService = packageFileService;
     _entitiesContext = entitiesContext;
     _config = config;
     _indexingService = indexingService;
     _cacheService = cacheService;
     _editPackageService = editPackageService;
     _packageDeleteService = packageDeleteService;
     _supportRequestService = supportRequestService;
     _auditingService = auditingService;
 }
 public SupportRequestController(
     ISupportRequestService supportRequestService,
     IUserService userService)
 {
     _supportRequestService = supportRequestService;
     _userService = userService;
 }
 public PagesController(IContentService contentService,
     IMessageService messageService,
     ISupportRequestService supportRequestService)
 {
     _contentService = contentService;
     _messageService = messageService;
     _supportRequestService = supportRequestService;
 }
        public DeleteUserViewModel(
            User userToDelete,
            User currentUser,
            IPackageService packageService,
            ISupportRequestService supportRequestService)
            : base(userToDelete, currentUser, packageService)
        {
            Organizations = userToDelete.Organizations
                            .Select(u => new ManageOrganizationsItemViewModel(u, packageService));

            HasPendingRequests = supportRequestService.GetIssues()
                                 .Where(issue =>
                                        (issue.UserKey.HasValue && issue.UserKey.Value == userToDelete.Key) &&
                                        string.Equals(issue.IssueTitle, Strings.AccountDelete_SupportRequestTitle) &&
                                        issue.Key != IssueStatusKeys.Resolved).Any();
        }
Esempio n. 5
0
 public UsersController(
     ICuratedFeedService feedsQuery,
     IUserService userService,
     IPackageService packageService,
     IPackageOwnerRequestService packageOwnerRequestService,
     IMessageService messageService,
     IAppConfiguration config,
     AuthenticationService authService,
     ICredentialBuilder credentialBuilder,
     IDeleteAccountService deleteAccountService,
     ISupportRequestService supportRequestService)
     : base(authService, feedsQuery, messageService, userService)
 {
     _packageService             = packageService ?? throw new ArgumentNullException(nameof(packageService));
     _packageOwnerRequestService = packageOwnerRequestService ?? throw new ArgumentNullException(nameof(packageOwnerRequestService));
     _config                = config ?? throw new ArgumentNullException(nameof(config));
     _credentialBuilder     = credentialBuilder ?? throw new ArgumentNullException(nameof(credentialBuilder));
     _deleteAccountService  = deleteAccountService ?? throw new ArgumentNullException(nameof(deleteAccountService));
     _supportRequestService = supportRequestService ?? throw new ArgumentNullException(nameof(supportRequestService));
 }
Esempio n. 6
0
 public DeleteAccountService(IEntityRepository <AccountDelete> accountDeleteRepository,
                             IEntityRepository <User> userRepository,
                             IEntitiesContext entitiesContext,
                             IPackageService packageService,
                             IPackageOwnershipManagementService packageOwnershipManagementService,
                             IReservedNamespaceService reservedNamespaceService,
                             ISecurityPolicyService securityPolicyService,
                             AuthenticationService authService,
                             ISupportRequestService supportRequestService
                             )
 {
     _accountDeleteRepository           = accountDeleteRepository ?? throw new ArgumentNullException(nameof(accountDeleteRepository));
     _userRepository                    = userRepository ?? throw new ArgumentNullException(nameof(userRepository));
     _entitiesContext                   = entitiesContext ?? throw new ArgumentNullException(nameof(entitiesContext));
     _packageService                    = packageService ?? throw new ArgumentNullException(nameof(packageService));
     _packageOwnershipManagementService = packageOwnershipManagementService ?? throw new ArgumentNullException(nameof(packageOwnershipManagementService));
     _reservedNamespaceService          = reservedNamespaceService ?? throw new ArgumentNullException(nameof(reservedNamespaceService));
     _securityPolicyService             = securityPolicyService ?? throw new ArgumentNullException(nameof(securityPolicyService));
     _authService           = authService ?? throw new ArgumentNullException(nameof(authService));
     _supportRequestService = supportRequestService ?? throw new ArgumentNullException(nameof(supportRequestService));
 }
Esempio n. 7
0
        public UsersController(
            IUserService userService,
            IPackageService packageService,
            IPackageOwnerRequestService packageOwnerRequestService,
            IMessageService messageService,
            IAppConfiguration config,
            AuthenticationService authService,
            ICredentialBuilder credentialBuilder,
            IDeleteAccountService deleteAccountService,
            ISupportRequestService supportRequestService,
            ITelemetryService telemetryService,
            ISecurityPolicyService securityPolicyService,
            ICertificateService certificateService,
            IContentObjectService contentObjectService,
            IFeatureFlagService featureFlagService,
            IMessageServiceConfiguration messageServiceConfiguration,
            IIconUrlProvider iconUrlProvider)
            : base(
                authService,
                packageService,
                messageService,
                userService,
                telemetryService,
                securityPolicyService,
                certificateService,
                contentObjectService,
                messageServiceConfiguration,
                deleteAccountService,
                iconUrlProvider)
        {
            _packageOwnerRequestService = packageOwnerRequestService ?? throw new ArgumentNullException(nameof(packageOwnerRequestService));
            _config                = config ?? throw new ArgumentNullException(nameof(config));
            _credentialBuilder     = credentialBuilder ?? throw new ArgumentNullException(nameof(credentialBuilder));
            _supportRequestService = supportRequestService ?? throw new ArgumentNullException(nameof(supportRequestService));
            _featureFlagService    = featureFlagService ?? throw new ArgumentNullException(nameof(featureFlagService));

            _listPackageItemRequiredSignerViewModelFactory = new ListPackageItemRequiredSignerViewModelFactory(securityPolicyService, iconUrlProvider);
            _listPackageItemViewModelFactory = new ListPackageItemViewModelFactory(iconUrlProvider);
        }
 public SupportRequestController(ISupportRequestService supportRequestService)
 {
     _supportRequestService = supportRequestService;
 }
 public SupportController(ILogService staffLog, IStudentService student, IUserService user, ISupportRequestService supportRequest, ISupportResponseService supportResponse)
 {
     _staffLog        = staffLog;
     _student         = student;
     _supportRequest  = supportRequest;
     _supportResponse = supportResponse;
     _user            = user;
 }