Beispiel #1
0
 public ImportListSyncService(IImportListFactory importListFactory,
                              IImportListExclusionService importListExclusionService,
                              IFetchAndParseImportList listFetcherAndParser,
                              ISearchForNewBook bookSearchService,
                              ISearchForNewAuthor authorSearchService,
                              IAuthorService authorService,
                              IBookService bookService,
                              IAddAuthorService addAuthorService,
                              IAddBookService addBookService,
                              IEventAggregator eventAggregator,
                              IManageCommandQueue commandQueueManager,
                              Logger logger)
 {
     _importListFactory          = importListFactory;
     _importListExclusionService = importListExclusionService;
     _listFetcherAndParser       = listFetcherAndParser;
     _bookSearchService          = bookSearchService;
     _authorSearchService        = authorSearchService;
     _authorService       = authorService;
     _bookService         = bookService;
     _addAuthorService    = addAuthorService;
     _addBookService      = addBookService;
     _eventAggregator     = eventAggregator;
     _commandQueueManager = commandQueueManager;
     _logger = logger;
 }
Beispiel #2
0
 public ImportListSyncService(IImportListFactory importListFactory,
                              IImportListExclusionService importListExclusionService,
                              IFetchAndParseImportList listFetcherAndParser,
                              IGoodreadsProxy goodreadsProxy,
                              IGoodreadsSearchProxy goodreadsSearchProxy,
                              IAuthorService authorService,
                              IBookService bookService,
                              IEditionService editionService,
                              IAddAuthorService addAuthorService,
                              IAddBookService addBookService,
                              IEventAggregator eventAggregator,
                              IManageCommandQueue commandQueueManager,
                              Logger logger)
 {
     _importListFactory          = importListFactory;
     _importListExclusionService = importListExclusionService;
     _listFetcherAndParser       = listFetcherAndParser;
     _goodreadsProxy             = goodreadsProxy;
     _goodreadsSearchProxy       = goodreadsSearchProxy;
     _authorService       = authorService;
     _bookService         = bookService;
     _editionService      = editionService;
     _addAuthorService    = addAuthorService;
     _addBookService      = addBookService;
     _eventAggregator     = eventAggregator;
     _commandQueueManager = commandQueueManager;
     _logger = logger;
 }
Beispiel #3
0
 public ImportListSyncService(IImportListFactory importListFactory,
                              IImportListExclusionService importListExclusionService,
                              IFetchAndParseImportList listFetcherAndParser,
                              ISearchForNewAlbum albumSearchService,
                              ISearchForNewArtist artistSearchService,
                              IArtistService artistService,
                              IAlbumService albumService,
                              IAddArtistService addArtistService,
                              IAddAlbumService addAlbumService,
                              IEventAggregator eventAggregator,
                              IManageCommandQueue commandQueueManager,
                              Logger logger)
 {
     _importListFactory          = importListFactory;
     _importListExclusionService = importListExclusionService;
     _listFetcherAndParser       = listFetcherAndParser;
     _albumSearchService         = albumSearchService;
     _artistSearchService        = artistSearchService;
     _artistService       = artistService;
     _albumService        = albumService;
     _addArtistService    = addArtistService;
     _addAlbumService     = addAlbumService;
     _eventAggregator     = eventAggregator;
     _commandQueueManager = commandQueueManager;
     _logger = logger;
 }
Beispiel #4
0
 public RefreshArtistService(IProvideArtistInfo artistInfo,
                             IArtistService artistService,
                             IArtistMetadataService artistMetadataService,
                             IAlbumService albumService,
                             IRefreshAlbumService refreshAlbumService,
                             IEventAggregator eventAggregator,
                             IMediaFileService mediaFileService,
                             IHistoryService historyService,
                             IDiskScanService diskScanService,
                             ICheckIfArtistShouldBeRefreshed checkIfArtistShouldBeRefreshed,
                             IConfigService configService,
                             IImportListExclusionService importListExclusionService,
                             Logger logger)
     : base(logger, artistMetadataService)
 {
     _artistInfo                     = artistInfo;
     _artistService                  = artistService;
     _albumService                   = albumService;
     _refreshAlbumService            = refreshAlbumService;
     _eventAggregator                = eventAggregator;
     _mediaFileService               = mediaFileService;
     _historyService                 = historyService;
     _diskScanService                = diskScanService;
     _checkIfArtistShouldBeRefreshed = checkIfArtistShouldBeRefreshed;
     _configService                  = configService;
     _importListExclusionService     = importListExclusionService;
     _logger = logger;
 }
Beispiel #5
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,
                             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;
     _configService                  = configService;
     _importListExclusionService     = importListExclusionService;
     _logger = logger;
 }
Beispiel #6
0
        public ImportListExclusionController(IImportListExclusionService importListExclusionService,
                                             ImportListExclusionExistsValidator importListExclusionExistsValidator,
                                             GuidValidator guidValidator)
        {
            _importListExclusionService = importListExclusionService;

            SharedValidator.RuleFor(c => c.ForeignId).NotEmpty().SetValidator(guidValidator).SetValidator(importListExclusionExistsValidator);
            SharedValidator.RuleFor(c => c.AuthorName).NotEmpty();
        }
Beispiel #7
0
 public AddBookService(IAuthorService authorService,
                       IAddAuthorService addAuthorService,
                       IBookService bookService,
                       IProvideBookInfo bookInfo,
                       IImportListExclusionService importListExclusionService,
                       Logger logger)
 {
     _authorService              = authorService;
     _addAuthorService           = addAuthorService;
     _bookService                = bookService;
     _bookInfo                   = bookInfo;
     _importListExclusionService = importListExclusionService;
     _logger = logger;
 }
Beispiel #8
0
        public ImportListExclusionModule(IImportListExclusionService importListExclusionService,
                                         ImportListExclusionExistsValidator importListExclusionExistsValidator)
        {
            _importListExclusionService = importListExclusionService;

            GetResourceById = GetImportListExclusion;
            GetResourceAll  = GetImportListExclusions;
            CreateResource  = AddImportListExclusion;
            UpdateResource  = UpdateImportListExclusion;
            DeleteResource  = DeleteImportListExclusionResource;

            SharedValidator.RuleFor(c => c.TvdbId).NotEmpty().SetValidator(importListExclusionExistsValidator);
            SharedValidator.RuleFor(c => c.Title).NotEmpty();
        }
Beispiel #9
0
 public AddAlbumService(IArtistService artistService,
                        IAddArtistService addArtistService,
                        IAlbumService albumService,
                        IProvideAlbumInfo albumInfo,
                        IImportListExclusionService importListExclusionService,
                        Logger logger)
 {
     _artistService              = artistService;
     _addArtistService           = addArtistService;
     _albumService               = albumService;
     _albumInfo                  = albumInfo;
     _importListExclusionService = importListExclusionService;
     _logger = logger;
 }
Beispiel #10
0
 public ArtistService(IArtistRepository artistRepository,
                      IEventAggregator eventAggregator,
                      ITrackService trackService,
                      IImportListExclusionService importListExclusionService,
                      IBuildArtistPaths artistPathBuilder,
                      ICacheManager cacheManager,
                      Logger logger)
 {
     _artistRepository           = artistRepository;
     _eventAggregator            = eventAggregator;
     _trackService               = trackService;
     _importListExclusionService = importListExclusionService;
     _artistPathBuilder          = artistPathBuilder;
     _cache  = cacheManager.GetCache <List <Artist> >(GetType());
     _logger = logger;
 }
Beispiel #11
0
 public ImportListSyncService(IImportListFactory importListFactory,
                              IImportListExclusionService importListExclusionService,
                              IFetchAndParseImportList listFetcherAndParser,
                              ISearchForNewSeries seriesSearchService,
                              ISeriesService seriesService,
                              IAddSeriesService addSeriesService,
                              Logger logger)
 {
     _importListFactory          = importListFactory;
     _importListExclusionService = importListExclusionService;
     _listFetcherAndParser       = listFetcherAndParser;
     _seriesSearchService        = seriesSearchService;
     _seriesService    = seriesService;
     _addSeriesService = addSeriesService;
     _logger           = logger;
 }
 public ImportListExclusionExistsValidator(IImportListExclusionService importListExclusionService)
     : base("This exclusion has already been added.")
 {
     _importListExclusionService = importListExclusionService;
 }