files/src/file_download.ts
This service is supposed to be declared as provider for a container with content style 'filedownload' and then injected into its constructor as a Self dependency.
Properties |
Methods |
constructor(container: Container, session: BlueriqSession, downloadService: DownloadService, querying: BlueriqQuerying)
|
|||||||||||||||
Parameters :
|
getDownloadInfo |
getDownloadInfo()
|
Downloads a file based on the configuration of this container. It will first check whether the current user is authorized to download the file. If that is not the case, the Runtime is notified which may cause flowing to occur, depending on the model, and the subscriber receives an error event. If the user is authorized to download the file, the subscriber receives an event of type AuthorizedDownload that contains the URL to follow.
Returns :
Observable<AuthorizedDownload>
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|