Skip to content
Snippets Groups Projects
collection-data.service.ts 1.43 KiB
Newer Older
William Welling's avatar
William Welling committed
import { Inject, Injectable } from '@angular/core';
import { Store } from '@ngrx/store';
import { GLOBAL_CONFIG, GlobalConfig } from '../../../config';
import { RemoteDataBuildService } from '../cache/builders/remote-data-build.service';
William Welling's avatar
William Welling committed
import { NormalizedCollection } from '../cache/models/normalized-collection.model';
import { ObjectCacheService } from '../cache/object-cache.service';
import { ResponseCacheService } from '../cache/response-cache.service';
William Welling's avatar
William Welling committed
import { CoreState } from '../core.reducers';
import { Collection } from '../shared/collection.model';
import { ComColDataService } from './comcol-data.service';
import { CommunityDataService } from './community-data.service';
import { RequestService } from './request.service';
import { HALEndpointService } from '../shared/hal-endpoint.service';
import { AuthService } from '../auth/auth.service';
import { Community } from '../shared/community.model';

@Injectable()
export class CollectionDataService extends ComColDataService<NormalizedCollection, Collection> {
Art Lowel's avatar
Art Lowel committed
  protected linkPath = 'collections';

  constructor(
    protected responseCache: ResponseCacheService,
    protected requestService: RequestService,
Art Lowel's avatar
Art Lowel committed
    protected rdbService: RemoteDataBuildService,
    protected store: Store<CoreState>,
    protected cds: CommunityDataService,
    protected objectCache: ObjectCacheService,
    protected halService: HALEndpointService,
    protected authService: AuthService