mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
import { Injectable } from "@angular/core";
|
|
import { DataService } from "./data.service";
|
|
import { Collection } from "../shared/collection.model";
|
|
import { ObjectCacheService } from "../cache/object-cache.service";
|
|
import { ResponseCacheService } from "../cache/response-cache.service";
|
|
import { Store } from "@ngrx/store";
|
|
import { NormalizedCollection } from "../cache/models/normalized-collection.model";
|
|
import { CoreState } from "../core.reducers";
|
|
import { RequestService } from "./request.service";
|
|
import { RemoteDataBuildService } from "../cache/builders/remote-data-build.service";
|
|
|
|
@Injectable()
|
|
export class CollectionDataService extends DataService<NormalizedCollection, Collection> {
|
|
protected endpoint = '/collections';
|
|
|
|
constructor(
|
|
protected objectCache: ObjectCacheService,
|
|
protected responseCache: ResponseCacheService,
|
|
protected requestService: RequestService,
|
|
protected rdbService: RemoteDataBuildService,
|
|
protected store: Store<CoreState>
|
|
) {
|
|
super(NormalizedCollection);
|
|
}
|
|
|
|
}
|