@Controller @RequestMapping(value="/plugin/feedback") public class FeedbackController extends AbstractStaticContentController
| Modifier and Type | Class and Description |
|---|---|
static class |
FeedbackController.FeedbackForm
Bean for the feedback form data.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
FeedbackController(UserService userService,
org.molgenis.data.settings.AppSettings appSettings,
CaptchaService captchaService,
org.springframework.mail.MailSender mailSender) |
| Modifier and Type | Method and Description |
|---|---|
String |
init(org.springframework.ui.Model model)
Serves feedback form.
|
String |
submitFeedback(FeedbackController.FeedbackForm form,
CaptchaRequest captchaRequest)
Handles feedback form submission.
|
initEditView, submitContentgetId, getPluginSettings, getUripublic static final String ID
public static final String URI
public FeedbackController(UserService userService, org.molgenis.data.settings.AppSettings appSettings, CaptchaService captchaService, org.springframework.mail.MailSender mailSender)
@GetMapping public String init(org.springframework.ui.Model model)
init in class AbstractStaticContentController@PostMapping public String submitFeedback(FeedbackController.FeedbackForm form, @ModelAttribute CaptchaRequest captchaRequest) throws CaptchaException
CaptchaException - if no valid captcha is suppliedCopyright © 2017. All rights reserved.