org.nuiton.wikitty.publication.ui.action
Class PublicationActionRegister

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.nuiton.web.struts2.BaseAction
          extended by org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
              extended by org.nuiton.wikitty.publication.ui.action.PublicationActionRegister
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable, org.apache.struts2.interceptor.SessionAware

public class PublicationActionRegister
extends PublicationBaseAction

Class mapped to the registered action, it create a wikittyuser with the information send by the form

Author:
mfortun
See Also:
Serialized Form

Field Summary
protected  String login
           
protected  String password
           
protected  String repeatPassword
           
 
Fields inherited from class org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
ARG_CONTENT_FIELD, ARG_MIMETYPE, ARG_QUERY, ARGS_KEY, CONTEXT_ACTION_KEY, CONTEXT_APPS_KEY, CONTEXT_DATA_KEY, contextApps, contextData, SEARCH_SEPARATOR, SEPARATOR, session
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
PublicationActionRegister()
           
 
Method Summary
protected  boolean alreadyRegistered()
           
 String execute()
          Registers the new user and sends an email to confirm registration
 String getLogin()
           
 String getPassword()
           
 String getRepeatPassword()
           
 void setLogin(String login)
           
 void setPassword(String password)
           
 void setRepeatPassword(String repeatPassword)
           
 
Methods inherited from class org.nuiton.wikitty.publication.ui.action.PublicationBaseAction
getArgs, getArgument, getContextApps, getContextArgs, getContextData, getError, getWikittyPublicationProxy, getWikittyPublicationSession, searchCriteria, setContextApps, setContextData, setSession
 
Methods inherited from class org.nuiton.web.struts2.BaseAction
_, _
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

login

protected String login

password

protected String password

repeatPassword

protected String repeatPassword
Constructor Detail

PublicationActionRegister

public PublicationActionRegister()
Method Detail

getLogin

public String getLogin()

setLogin

public void setLogin(String login)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getRepeatPassword

public String getRepeatPassword()

setRepeatPassword

public void setRepeatPassword(String repeatPassword)

alreadyRegistered

protected boolean alreadyRegistered()

execute

public String execute()
Registers the new user and sends an email to confirm registration

Specified by:
execute in interface com.opensymphony.xwork2.Action
Overrides:
execute in class com.opensymphony.xwork2.ActionSupport


Copyright © 2010-2011 CodeLutin. All Rights Reserved.