Package io.goobi.viewer.managedbeans
Class DownloadBean
- java.lang.Object
-
- io.goobi.viewer.managedbeans.DownloadBean
-
- All Implemented Interfaces:
Serializable
@Named @SessionScoped public class DownloadBean extends Object implements Serializable
DownloadBean class.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DownloadBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
checkDownloadAction(String type, String email, String pi, String logId)
Deprecated.void
downloadFileAction()
downloadFileAction.String
getDownloadIdentifier()
Getter for the fielddownloadIdentifier
.String
getDownloadIdentifier(String... criteria)
Getter for the fielddownloadIdentifier
.DownloadJob
getDownloadJob()
Getter for the fielddownloadJob
.static long
getTimeToLive()
getTimeToLive.String
openDownloadAction()
openDownloadAction.void
reset()
reset.void
setDownloadIdentifier(String downloadIdentifier)
Setter for the fielddownloadIdentifier
.void
setDownloadJob(DownloadJob downloadJob)
Setter for the fielddownloadJob
.
-
-
-
Method Detail
-
reset
public void reset()
reset.
-
getTimeToLive
public static long getTimeToLive()
getTimeToLive.
- Returns:
- a long.
-
checkDownloadAction
@Deprecated public String checkDownloadAction(String type, String email, String pi, String logId) throws DAOException, PresentationException, IndexUnreachableException
Deprecated.checkDownloadAction.
- Parameters:
type
- aString
object.email
- aString
object.pi
- aString
object.logId
- aString
object.- Returns:
- a
String
object. - Throws:
DAOException
- if any.PresentationException
- if any.IndexUnreachableException
- if any.
-
openDownloadAction
public String openDownloadAction() throws DAOException, DownloadException
openDownloadAction.
- Returns:
- a
String
object. - Throws:
DAOException
- if any.DownloadException
- if any.
-
downloadFileAction
public void downloadFileAction() throws IOException, DownloadException
downloadFileAction.
- Throws:
IOException
- if any.DownloadException
- if any.
-
getDownloadIdentifier
public String getDownloadIdentifier(String... criteria)
Getter for the field
downloadIdentifier
.
-
getDownloadIdentifier
public String getDownloadIdentifier()
Getter for the field
downloadIdentifier
.- Returns:
- the downloadIdentifier
-
setDownloadIdentifier
public void setDownloadIdentifier(String downloadIdentifier)
Setter for the field
downloadIdentifier
.- Parameters:
downloadIdentifier
- the downloadIdentifier to set
-
getDownloadJob
public DownloadJob getDownloadJob()
Getter for the field
downloadJob
.- Returns:
- the downloadJob
-
setDownloadJob
public void setDownloadJob(DownloadJob downloadJob)
Setter for the field
downloadJob
.- Parameters:
downloadJob
- the downloadJob to set
-
-