Package io.goobi.viewer.managedbeans
Class DownloadBean
java.lang.Object
io.goobi.viewer.managedbeans.DownloadBean
- All Implemented Interfaces:
Serializable
DownloadBean class.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcreatePDFDownloadJob(String pi, String logId, String usePdfSource, String configVariant) voiddownloadFileAction.Getter for the fielddownloadIdentifier.getEmail()Getter for the fieldmessage.intgetQueuePosition.openDownloadAction.voidreset()reset.voidsetDownloadIdentifier(String downloadIdentifier) Setter for the fielddownloadIdentifier.void
-
Field Details
-
request
@Inject protected jakarta.servlet.http.HttpServletRequest request
-
-
Constructor Details
-
DownloadBean
public DownloadBean()
-
-
Method Details
-
reset
public void reset()reset.
-
openDownloadAction
openDownloadAction.
- Returns:
- a
Stringobject. - Throws:
DAOException- if any.PresentationException
-
getQueuePosition
public int getQueuePosition()getQueuePosition.
- Returns:
- a int
-
getMessage
Getter for the field
message.- Returns:
- a
ViewerMessageobject
-
downloadFileAction
downloadFileAction.
- Throws:
IOException- if any.DownloadException- if any.
-
getDownloadIdentifier
Getter for the field
downloadIdentifier.- Returns:
- the downloadIdentifier
-
getEmail
-
setEmail
-
setDownloadIdentifier
Setter for the field
downloadIdentifier.- Parameters:
downloadIdentifier- the downloadIdentifier to set
-
createDownloadJob
public void createDownloadJob(String type, String pi, String logId, String usePdfSource, String configVariant) throws com.fasterxml.jackson.core.JsonProcessingException, DAOException, URISyntaxException - Throws:
com.fasterxml.jackson.core.JsonProcessingExceptionDAOExceptionURISyntaxException
-
createEpubDownloadJob
public void createEpubDownloadJob(String pi) throws DAOException, URISyntaxException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
DAOExceptionURISyntaxExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
createPDFDownloadJob
public void createPDFDownloadJob(String pi, String logId, String usePdfSource, String configVariant) throws DAOException, URISyntaxException, com.fasterxml.jackson.core.JsonProcessingException - Throws:
DAOExceptionURISyntaxExceptioncom.fasterxml.jackson.core.JsonProcessingException
-