mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 02:24:11 +00:00
Added more comments
This commit is contained in:
@@ -6,21 +6,45 @@ import { SubmissionService } from './submission.service';
|
||||
import { SubmissionObject } from '../core/submission/models/submission-object.model';
|
||||
import { RemoteData } from '../core/data/remote-data';
|
||||
|
||||
/**
|
||||
* Instance of SubmissionService used on SSR.
|
||||
*/
|
||||
@Injectable()
|
||||
export class ServerSubmissionService extends SubmissionService {
|
||||
|
||||
/**
|
||||
* Override createSubmission parent method to return an empty observable
|
||||
*
|
||||
* @return Observable<SubmissionObject>
|
||||
* observable of SubmissionObject
|
||||
*/
|
||||
createSubmission(): Observable<SubmissionObject> {
|
||||
return observableOf(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override retrieveSubmission parent method to return an empty observable
|
||||
*
|
||||
* @return Observable<SubmissionObject>
|
||||
* observable of SubmissionObject
|
||||
*/
|
||||
retrieveSubmission(submissionId): Observable<RemoteData<SubmissionObject>> {
|
||||
return observableOf(null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Override startAutoSave parent method and return without doing anything
|
||||
*
|
||||
* @param submissionId
|
||||
* The submission id
|
||||
*/
|
||||
startAutoSave(submissionId) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Override startAutoSave parent method and return without doing anything
|
||||
*/
|
||||
stopAutoSave() {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user