Class FeedbackBean

java.lang.Object
io.goobi.viewer.managedbeans.FeedbackBean
All Implemented Interfaces:
Serializable

@Named @RequestScoped public class FeedbackBean extends Object implements 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 Details

    • FeedbackBean

      public FeedbackBean()
    • FeedbackBean

      public FeedbackBean(Configuration config)
  • Method Details

    • init

      @PostConstruct public void init()
    • createFeedback

      public void createFeedback()
      createFeedback.
    • submitFeedbackAction

      public String submitFeedbackAction(boolean setCurrentUrl)
      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

      public Feedback getFeedback()
      Getter for the field feedback.
      Returns:
      the Feedback object containing the user's feedback data
    • setFeedback

      public void setFeedback(Feedback feedback)
      Setter for the field feedback.
      Parameters:
      feedback - the Feedback object containing the user's feedback data
    • getLastName

      public String getLastName()
    • setLastName

      public void setLastName(String lastName)
    • isLoggedIn

      public boolean isLoggedIn()
    • getCaptchaBean

      public CaptchaBean getCaptchaBean()