Package com.saperion.ngc.util
Class DownloadUtil
- java.lang.Object
-
- com.saperion.ngc.util.DownloadUtil
-
- All Implemented Interfaces:
java.io.Serializable
public final class DownloadUtil extends java.lang.Object implements java.io.SerializableUtility class used to download content.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.FilecreateTmpZip(java.util.List<Content> contentToDownload)static voiddownload(java.util.List<Content> contentToDownload)Downloads the specified documents.static voiddownloadAsZip(java.util.List<Content> contentToDownload)Downloads the specified documents.
-
-
-
Method Detail
-
download
public static void download(java.util.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(java.util.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 java.io.File createTmpZip(java.util.List<Content> contentToDownload) throws java.io.IOException, BinaryUnavailableException, AuthenticationException
- Throws:
java.io.IOExceptionBinaryUnavailableExceptionAuthenticationException
-
-