Beispiel #1
0
 public ImportDecisionMaker(IEnumerable <IImportDecisionEngineSpecification <LocalBook> > trackSpecifications,
                            IEnumerable <IImportDecisionEngineSpecification <LocalEdition> > albumSpecifications,
                            IMediaFileService mediaFileService,
                            IEBookTagService eBookTagService,
                            IAudioTagService audioTagService,
                            IAugmentingService augmentingService,
                            IIdentificationService identificationService,
                            IRootFolderService rootFolderService,
                            IProfileService qualityProfileService,
                            Logger logger)
 {
     _trackSpecifications   = trackSpecifications;
     _bookSpecifications    = albumSpecifications;
     _mediaFileService      = mediaFileService;
     _eBookTagService       = eBookTagService;
     _audioTagService       = audioTagService;
     _augmentingService     = augmentingService;
     _identificationService = identificationService;
     _rootFolderService     = rootFolderService;
     _qualityProfileService = qualityProfileService;
     _logger = logger;
 }
Beispiel #2
0
 public DiskScanService(IConfigService configService,
                        IDiskProvider diskProvider,
                        IMediaFileService mediaFileService,
                        IMakeImportDecision importDecisionMaker,
                        IImportApprovedTracks importApprovedTracks,
                        IArtistService artistService,
                        IRootFolderService rootFolderService,
                        IMediaFileTableCleanupService mediaFileTableCleanupService,
                        IEventAggregator eventAggregator,
                        Logger logger)
 {
     _configService                = configService;
     _diskProvider                 = diskProvider;
     _mediaFileService             = mediaFileService;
     _importDecisionMaker          = importDecisionMaker;
     _importApprovedTracks         = importApprovedTracks;
     _artistService                = artistService;
     _mediaFileTableCleanupService = mediaFileTableCleanupService;
     _rootFolderService            = rootFolderService;
     _eventAggregator              = eventAggregator;
     _logger = logger;
 }
 public UpgradeMediaFileService(IConfigService configService,
                                IRecycleBinProvider recycleBinProvider,
                                IMediaFileService mediaFileService,
                                IAudioTagService audioTagService,
                                IMoveBookFiles bookFileMover,
                                IDiskProvider diskProvider,
                                IRootFolderService rootFolderService,
                                IRootFolderWatchingService rootFolderWatchingService,
                                ICalibreProxy calibre,
                                Logger logger)
 {
     _configService             = configService;
     _recycleBinProvider        = recycleBinProvider;
     _mediaFileService          = mediaFileService;
     _audioTagService           = audioTagService;
     _bookFileMover             = bookFileMover;
     _diskProvider              = diskProvider;
     _rootFolderService         = rootFolderService;
     _rootFolderWatchingService = rootFolderWatchingService;
     _calibre = calibre;
     _logger  = logger;
 }
Beispiel #4
0
        public DiskScanService(IDiskProvider diskProvider,
                               ICalibreProxy calibre,
                               IMediaFileService mediaFileService,
                               IMakeImportDecision importDecisionMaker,
                               IImportApprovedBooks importApprovedTracks,
                               IAuthorService authorService,
                               IRootFolderService rootFolderService,
                               IMediaFileTableCleanupService mediaFileTableCleanupService,
                               IEventAggregator eventAggregator,
                               Logger logger)
        {
            _diskProvider = diskProvider;
            _calibre      = calibre;

            _mediaFileService             = mediaFileService;
            _importDecisionMaker          = importDecisionMaker;
            _importApprovedTracks         = importApprovedTracks;
            _authorService                = authorService;
            _mediaFileTableCleanupService = mediaFileTableCleanupService;
            _rootFolderService            = rootFolderService;
            _eventAggregator              = eventAggregator;
            _logger = logger;
        }
Beispiel #5
0
        public RootFolderModule(IRootFolderService rootFolderService,
                                IBroadcastSignalRMessage signalRBroadcaster,
                                RootFolderValidator rootFolderValidator,
                                PathExistsValidator pathExistsValidator,
                                DroneFactoryValidator droneFactoryValidator,
                                MappedNetworkDriveValidator mappedNetworkDriveValidator)
            : base(signalRBroadcaster)
        {
            _rootFolderService = rootFolderService;

            GetResourceAll  = GetRootFolders;
            GetResourceById = GetRootFolder;
            CreateResource  = CreateRootFolder;
            DeleteResource  = DeleteFolder;

            SharedValidator.RuleFor(c => c.Path)
            .Cascade(CascadeMode.StopOnFirstFailure)
            .IsValidPath()
            .SetValidator(rootFolderValidator)
            .SetValidator(droneFactoryValidator)
            .SetValidator(mappedNetworkDriveValidator)
            .SetValidator(pathExistsValidator);
        }
Beispiel #6
0
        public RootFolderController(IRootFolderService rootFolderService,
                                    IBroadcastSignalRMessage signalRBroadcaster,
                                    RootFolderValidator rootFolderValidator,
                                    PathExistsValidator pathExistsValidator,
                                    MappedNetworkDriveValidator mappedNetworkDriveValidator,
                                    RecycleBinValidator recycleBinValidator,
                                    StartupFolderValidator startupFolderValidator,
                                    SystemFolderValidator systemFolderValidator,
                                    FolderWritableValidator folderWritableValidator)
            : base(signalRBroadcaster)
        {
            _rootFolderService = rootFolderService;

            SharedValidator.RuleFor(c => c.Path)
            .Cascade(CascadeMode.StopOnFirstFailure)
            .IsValidPath()
            .SetValidator(rootFolderValidator)
            .SetValidator(mappedNetworkDriveValidator)
            .SetValidator(startupFolderValidator)
            .SetValidator(recycleBinValidator)
            .SetValidator(pathExistsValidator)
            .SetValidator(systemFolderValidator)
            .SetValidator(folderWritableValidator);
        }
Beispiel #7
0
 public RefreshAuthorService(IProvideAuthorInfo authorInfo,
                             IAuthorService authorService,
                             IAuthorMetadataService authorMetadataService,
                             IBookService bookService,
                             IMetadataProfileService metadataProfileService,
                             IRefreshBookService refreshBookService,
                             IRefreshSeriesService refreshSeriesService,
                             IEventAggregator eventAggregator,
                             IManageCommandQueue commandQueueManager,
                             IMediaFileService mediaFileService,
                             IHistoryService historyService,
                             IRootFolderService rootFolderService,
                             ICheckIfAuthorShouldBeRefreshed checkIfAuthorShouldBeRefreshed,
                             IMonitorNewBookService monitorNewBookService,
                             IConfigService configService,
                             IImportListExclusionService importListExclusionService,
                             Logger logger)
     : base(logger, authorMetadataService)
 {
     _authorInfo                     = authorInfo;
     _authorService                  = authorService;
     _bookService                    = bookService;
     _metadataProfileService         = metadataProfileService;
     _refreshBookService             = refreshBookService;
     _refreshSeriesService           = refreshSeriesService;
     _eventAggregator                = eventAggregator;
     _commandQueueManager            = commandQueueManager;
     _mediaFileService               = mediaFileService;
     _historyService                 = historyService;
     _rootFolderService              = rootFolderService;
     _checkIfAuthorShouldBeRefreshed = checkIfAuthorShouldBeRefreshed;
     _monitorNewBookService          = monitorNewBookService;
     _configService                  = configService;
     _importListExclusionService     = importListExclusionService;
     _logger = logger;
 }
Beispiel #8
0
 public DiskScanService(IDiskProvider diskProvider,
                        IMakeImportDecision importDecisionMaker,
                        IImportApprovedMovie importApprovedMovies,
                        IConfigService configService,
                        IMovieService movieService,
                        IMediaFileService mediaFileService,
                        IMediaFileTableCleanupService mediaFileTableCleanupService,
                        IRootFolderService rootFolderService,
                        IUpdateMediaInfo updateMediaInfoService,
                        IEventAggregator eventAggregator,
                        Logger logger)
 {
     _diskProvider                 = diskProvider;
     _importDecisionMaker          = importDecisionMaker;
     _importApprovedMovies         = importApprovedMovies;
     _configService                = configService;
     _movieService                 = movieService;
     _mediaFileService             = mediaFileService;
     _mediaFileTableCleanupService = mediaFileTableCleanupService;
     _rootFolderService            = rootFolderService;
     _updateMediaInfoService       = updateMediaInfoService;
     _eventAggregator              = eventAggregator;
     _logger = logger;
 }
Beispiel #9
0
 public SeriesPathBuilder(IBuildFileNames fileNameBuilder, IRootFolderService rootFolderService)
 {
     _fileNameBuilder   = fileNameBuilder;
     _rootFolderService = rootFolderService;
 }
Beispiel #10
0
 public RootFolderCheck(IAuthorService authorService, IImportListFactory importListFactory, IDiskProvider diskProvider, IRootFolderService rootFolderService, ILocalizationService localizationService)
     : base(localizationService)
 {
     _authorService     = authorService;
     _importListFactory = importListFactory;
     _diskProvider      = diskProvider;
     _rootFolderService = rootFolderService;
 }
 public RootFolderValidator(IRootFolderService rootFolderService)
     : base("Path is already configured as a root folder")
 {
     _rootFolderService = rootFolderService;
 }
Beispiel #12
0
 public RootFolderCheck(ISeriesService seriesService, IDiskProvider diskProvider, IRootFolderService rootFolderService)
 {
     _seriesService     = seriesService;
     _diskProvider      = diskProvider;
     _rootFolderService = rootFolderService;
 }
 public AuthorPathInRootFolderSpecification(IRootFolderService rootFolderService,
                                            Logger logger)
 {
     _rootFolderService = rootFolderService;
     _logger            = logger;
 }
Beispiel #14
0
 public RootFolderCheck(IMovieService movieService, IDiskProvider diskProvider, IRootFolderService rootFolderService, ILocalizationService localizationService)
     : base(localizationService)
 {
     _movieService      = movieService;
     _diskProvider      = diskProvider;
     _rootFolderService = rootFolderService;
 }
Beispiel #15
0
 public RootFolderCheck(IArtistService artistService, IImportListFactory importListFactory, IDiskProvider diskProvider, IRootFolderService rootFolderService)
 {
     _artistService     = artistService;
     _importListFactory = importListFactory;
     _diskProvider      = diskProvider;
     _rootFolderService = rootFolderService;
 }
Beispiel #16
0
 public RootFolderValidator(IRootFolderService rootFolderService)
     : base("Path is already configured as a root folder")
 {
     _rootFolderService = rootFolderService;
 }
Beispiel #17
0
 public RootFolderAncestorValidator(IRootFolderService rootFolderService)
     : base("Path is an ancestor of an existing root folder")
 {
     _rootFolderService = rootFolderService;
 }