Package io.goobi.viewer.managedbeans
Class AccessTicketBean
java.lang.Object
io.goobi.viewer.managedbeans.AccessTicketBean
- All Implemented Interfaces:
Serializable
Handles download ticket checks and requests for born-digital files.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionChecks the given download ticket password for validity for the current record and persists valid permission in the agent session.booleanvoidsetTicketEmail(String ticketEmail) voidsetTicketPassword(String ticketPassword) voidsetTicketRequestMessage(String ticketRequestMessage)
-
Constructor Details
-
AccessTicketBean
public AccessTicketBean()
-
-
Method Details
-
isHasDownloadTicket
- Returns:
- true if session contains permission for current record, false otherwise;
- Throws:
IndexUnreachableException
-
checkTicketPasswordAction
Checks the given download ticket password for validity for the current record and persists valid permission in the agent session.- Returns:
- empty string
- Throws:
DAOExceptionIndexUnreachableException
-
requestNewRecordAccessTicketAction
- Returns:
- empty string
- Throws:
DAOExceptionIndexUnreachableException
-
requestNewDownloadTicketAction
- Returns:
- empty string
- Throws:
DAOExceptionIndexUnreachableException
-
getTicketPassword
- Returns:
- the downloadTicketPassword
-
setTicketPassword
- Parameters:
ticketPassword- the ticketPassword to set
-
getTicketEmail
- Returns:
- the ticketEmail
-
setTicketEmail
- Parameters:
ticketEmail- the ticketEmail to set
-
getTicketRequestMessage
- Returns:
- the ticketRequestMessage
-
setTicketRequestMessage
- Parameters:
ticketRequestMessage- the ticketRequestMessage to set
-