mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 14:03:06 +00:00
93803: Update DataService constructor signatures
Override linkPath/responseMsToLive/constructIdEndpoint - in class body for inheritable classes (for clarity: it's the first thing you'd read, variable name is right there) - in constructor for composable classes * wrapped services must be 'synchronized' with their wrapper * moved these overrides up in the argument list for emphasis (implementing a new composable feature? first thing is to use the same endpoint!)
This commit is contained in:
@@ -20,6 +20,8 @@ import { dataService } from '../data/base/data-service.decorator';
|
||||
@Injectable()
|
||||
@dataService(SUBMISSION_CC_LICENSE_URL)
|
||||
export class SubmissionCcLicenseUrlDataService extends BaseDataService<SubmissionCcLicenceUrl> implements SearchData<SubmissionCcLicenceUrl> {
|
||||
protected linkPath = 'submissioncclicenseUrls-search';
|
||||
|
||||
private searchData: SearchData<SubmissionCcLicenceUrl>;
|
||||
|
||||
constructor(
|
||||
@@ -28,9 +30,9 @@ export class SubmissionCcLicenseUrlDataService extends BaseDataService<Submissio
|
||||
protected objectCache: ObjectCacheService,
|
||||
protected halService: HALEndpointService,
|
||||
) {
|
||||
super('submissioncclicenseUrls-search', requestService, rdbService, objectCache, halService);
|
||||
super(requestService, rdbService, objectCache, halService);
|
||||
|
||||
this.searchData = new SearchDataImpl(this.linkPath, requestService, rdbService, objectCache, halService, this.responseMsToLive, (href, searchMethod) => `${href}/${searchMethod}`);
|
||||
this.searchData = new SearchDataImpl(this.linkPath, this.responseMsToLive, requestService, rdbService, objectCache, halService, (href, searchMethod) => `${href}/${searchMethod}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user