Package com.saperion.ngc.util
Class DownloadUtil
java.lang.Object
com.saperion.ngc.util.DownloadUtil
- All Implemented Interfaces:
Serializable
Utility class used to download content.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
createTmpZip
(List<Content> contentToDownload) static void
Downloads the specified documents.static void
downloadAsZip
(List<Content> contentToDownload) Downloads the specified documents.
-
Method Details
-
download
public static void download(List<Content> contentToDownload) throws DownloadFailedException, AuthenticationException Downloads the specified documents.- Parameters:
contentToDownload
- content elements to download- Throws:
DownloadFailedException
- when downloading the content failedAuthenticationException
- re-logon required
-
downloadAsZip
public static void downloadAsZip(List<Content> contentToDownload) throws DownloadFailedException, AuthenticationException Downloads the specified documents.- Parameters:
contentToDownload
- content elements to download- Throws:
DownloadFailedException
- when downloading the content failedAuthenticationException
- re-logon required
-
createTmpZip
public static File createTmpZip(List<Content> contentToDownload) throws IOException, BinaryUnavailableException, AuthenticationException
-