Package net.webpdf.wsclient.openapi
Class OperationPortfolioExtract
- java.lang.Object
-
- net.webpdf.wsclient.openapi.OperationPortfolioExtract
-
public class OperationPortfolioExtract extends Object
Extracts one or more documents from the portfolio. The result will be returned as a ZIP document. The ZIP document will not only contain the extracted files, but will also reproduce the folder structure in which the documents were found.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_SELECTIONstatic StringJSON_PROPERTY_SINGLE_FILE_AS_ZIP
-
Constructor Summary
Constructors Constructor Description OperationPortfolioExtract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperationPortfolioExtractaddSelectionItem(OperationPortfolioSelection selectionItem)booleanequals(Object o)@Nullable List<OperationPortfolioSelection>getSelection()Get selection@Nullable BooleangetSingleFileAsZip()The returned attachments will be generated as a ZIP file even if selection is used to select only one single file.inthashCode()OperationPortfolioExtractselection(List<OperationPortfolioSelection> selection)voidsetSelection(List<OperationPortfolioSelection> selection)voidsetSingleFileAsZip(Boolean singleFileAsZip)OperationPortfolioExtractsingleFileAsZip(Boolean singleFileAsZip)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_SELECTION
public static final String JSON_PROPERTY_SELECTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SINGLE_FILE_AS_ZIP
public static final String JSON_PROPERTY_SINGLE_FILE_AS_ZIP
- See Also:
- Constant Field Values
-
-
Method Detail
-
selection
public OperationPortfolioExtract selection(List<OperationPortfolioSelection> selection)
-
addSelectionItem
public OperationPortfolioExtract addSelectionItem(OperationPortfolioSelection selectionItem)
-
getSelection
@Nullable public @Nullable List<OperationPortfolioSelection> getSelection()
Get selection- Returns:
- selection
-
setSelection
public void setSelection(List<OperationPortfolioSelection> selection)
-
singleFileAsZip
public OperationPortfolioExtract singleFileAsZip(Boolean singleFileAsZip)
-
getSingleFileAsZip
@Nullable public @Nullable Boolean getSingleFileAsZip()
The returned attachments will be generated as a ZIP file even if selection is used to select only one single file. You can change this behaviour by setting this option to \"false\". In this case, the file will not be zipped, and will instead be returned directly as is. However, this will only work if selection has been used to select one file and one file only.- Returns:
- singleFileAsZip
-
setSingleFileAsZip
public void setSingleFileAsZip(Boolean singleFileAsZip)
-
-