info.magnolia.module.publicuserregistration.frontend
Class AbstractUserRegistrationPage
java.lang.Object
info.magnolia.cms.servlets.MVCServletHandlerImpl
info.magnolia.cms.servlets.CommandBasedMVCServletHandler
info.magnolia.module.admininterface.PageMVCHandler
info.magnolia.module.publicuserregistration.frontend.AbstractUserRegistrationPage
- All Implemented Interfaces:
- info.magnolia.cms.servlets.MVCServletHandler
- Direct Known Subclasses:
- AbstractProfilePage, EnableByUuid, PasswordReminder
public abstract class AbstractUserRegistrationPage
- extends info.magnolia.module.admininterface.PageMVCHandler
Abstract page for user registration.
Fields inherited from class info.magnolia.module.admininterface.PageMVCHandler |
COMMAND_PARAMETER_NAME, COMMAND_SHOW, VIEW_SHOW |
Fields inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl |
exception, request, response, VIEW_ERROR, VIEW_SUCCESS |
Fields inherited from interface info.magnolia.cms.servlets.MVCServletHandler |
VIEW_NOTHING |
Methods inherited from class info.magnolia.module.admininterface.PageMVCHandler |
getForm, getI18nBasename, getMsgs, getParams, init, setForm, setI18nBasename, setMsgs, setParams, show |
Methods inherited from class info.magnolia.cms.servlets.CommandBasedMVCServletHandler |
findCommand, getCatalogueName, getCommandContext, getViewNameAfterExecution, setCatalogueName |
Methods inherited from class info.magnolia.cms.servlets.MVCServletHandlerImpl |
getCommand, getException, getExceptionStackTrace, getName, getRequest, getResponse, populateFromRequest, setCommand, setRequest, setResponse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
errorMessages
protected Map<String,String> errorMessages
AbstractUserRegistrationPage
public AbstractUserRegistrationPage(String name,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
setTargetPage
public void setTargetPage(String targetPage)
setErrorPage
public void setErrorPage(String errorPage)
execute
public String execute(String commandName)
- Specified by:
execute
in interface info.magnolia.cms.servlets.MVCServletHandler
- Overrides:
execute
in class info.magnolia.cms.servlets.CommandBasedMVCServletHandler
doExecute
protected abstract boolean doExecute()
renderHtml
public void renderHtml(String view)
throws IOException
- This implementation does a redirect:
- to the targetPage or errorPage property, depending on the view (result) , using it as a url.
- to the referrer if the view argument was null. (i.e. if the command method was void or returned null explicitly)
The view parameter passed to the method is ignored.
The errorMessages map, if not empty is added as a url encoded json string parameter.
- Throws:
IOException
getModuleConfig
protected PublicUserRegistrationConfig getModuleConfig()
Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.