Package io.goobi.viewer.managedbeans
Class FeedbackBean
java.lang.Object
io.goobi.viewer.managedbeans.FeedbackBean
- All Implemented Interfaces:
Serializable
JSF request-scoped backing bean for the user feedback form. Collects and validates user input,
then sends the feedback as an e-mail to the configured recipient address.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateFeedback.Getter for the fieldfeedback.voidinit()booleanvoidsetFeedback(Feedback feedback) Setter for the fieldfeedback.voidsetLastName(String lastName) submitFeedbackAction(boolean setCurrentUrl) submitFeedbackAction.
-
Constructor Details
-
FeedbackBean
public FeedbackBean() -
FeedbackBean
-
-
Method Details
-
init
-
createFeedback
public void createFeedback()createFeedback. -
submitFeedbackAction
submitFeedbackAction.- Parameters:
setCurrentUrl- if true, uses the current URL as feedback URL; otherwise uses the referrer- Returns:
- an empty string after attempting to submit the feedback form
-
getFeedback
Getter for the fieldfeedback.- Returns:
- the Feedback object containing the user's feedback data
-
setFeedback
Setter for the fieldfeedback.- Parameters:
feedback- the Feedback object containing the user's feedback data
-
getLastName
-
setLastName
-
isLoggedIn
public boolean isLoggedIn() -
getCaptchaBean
-