info.magnolia.module.publicuserregistration.frontend
Class AbstractUserRegistrationPage

java.lang.Object
  extended by info.magnolia.cms.servlets.MVCServletHandlerImpl
      extended by info.magnolia.cms.servlets.CommandBasedMVCServletHandler
          extended by info.magnolia.module.admininterface.PageMVCHandler
              extended by 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

TODO dlipp - add proper comment.

Version:
$Id$

Field Summary
protected  Map<String,String> errorMessages
           
 
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
 
Constructor Summary
AbstractUserRegistrationPage(String name, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Method Summary
protected abstract  boolean doExecute()
           
 String execute(String commandName)
           
protected  PublicUserRegistrationConfig getModuleConfig()
           
 void renderHtml(String view)
          This implementation does a redirect: - to the targetPage or errorPage property, depending on the view (result) , using it as a url.
 void setErrorPage(String errorPage)
           
 void setTargetPage(String targetPage)
           
 
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
 

Field Detail

errorMessages

protected Map<String,String> errorMessages
Constructor Detail

AbstractUserRegistrationPage

public AbstractUserRegistrationPage(String name,
                                    javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)
Method Detail

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 © 2013 Magnolia International Ltd.. All Rights Reserved.