mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +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:
@@ -41,7 +41,6 @@ const selectedBitstreamFormatSelector = createSelector(
|
||||
@Injectable()
|
||||
@dataService(BITSTREAM_FORMAT)
|
||||
export class BitstreamFormatDataService extends IdentifiableDataService<BitstreamFormat> implements FindAllData<BitstreamFormat>, DeleteData<BitstreamFormat> {
|
||||
|
||||
protected linkPath = 'bitstreamformats';
|
||||
|
||||
private findAllData: FindAllDataImpl<BitstreamFormat>;
|
||||
@@ -55,10 +54,10 @@ export class BitstreamFormatDataService extends IdentifiableDataService<Bitstrea
|
||||
protected notificationsService: NotificationsService,
|
||||
protected store: Store<CoreState>,
|
||||
) {
|
||||
super('bitstreamformats', requestService, rdbService, objectCache, halService);
|
||||
super(requestService, rdbService, objectCache, halService);
|
||||
|
||||
this.findAllData = new FindAllDataImpl(this.linkPath, requestService, rdbService, objectCache, halService, this.responseMsToLive);
|
||||
this.deleteData = new DeleteDataImpl(this.linkPath, requestService, rdbService, objectCache, halService, notificationsService, this.responseMsToLive, this.constructIdEndpoint);
|
||||
this.findAllData = new FindAllDataImpl(this.linkPath, this.responseMsToLive, requestService, rdbService, objectCache, halService);
|
||||
this.deleteData = new DeleteDataImpl(this.linkPath, this.responseMsToLive, this.constructIdEndpoint, requestService, rdbService, objectCache, halService, notificationsService);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user