org.apache.empire.struts2.websample.web.actions
Class LoginAction

java.lang.Object
  extended by org.apache.empire.struts2.actionsupport.ActionBase
      extended by org.apache.empire.struts2.action.WebAction
          extended by org.apache.empire.struts2.websample.web.actiontypes.Action
              extended by org.apache.empire.struts2.websample.web.actions.LoginAction
All Implemented Interfaces:
com.opensymphony.xwork2.config.entities.Parameterizable, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, ActionAccessValidator, ActionErrorProvider, ActionItemProperty, Disposable, ExceptionAware, RequestParamProvider, SampleContext

public class LoginAction
extends Action
implements com.opensymphony.xwork2.config.entities.Parameterizable


Nested Class Summary
 class LoginAction.LoginInfo
           
 
Field Summary
static java.lang.String INPUT
           
static java.lang.String SUCCESS
           
 
Fields inherited from class org.apache.empire.struts2.websample.web.actiontypes.Action
log
 
Fields inherited from class org.apache.empire.struts2.action.WebAction
DEFAULT_ITEM_PROPERTY_NAME
 
Fields inherited from interface org.apache.empire.struts2.action.Disposable
EXITCODE_ERROR, EXITCODE_SUCCESS
 
Constructor Summary
LoginAction()
           
 
Method Summary
 void addParam(java.lang.String name, java.lang.String value)
           
 java.lang.String doError()
           
 java.lang.String doInit()
           
 java.lang.String doLogin()
           
 java.lang.String doLogout()
           
 LoginAction.LoginInfo getLoginInfo()
           
 java.util.Map getParams()
           
 boolean loginRequired()
          Determines whether the user needs to Login to access this page important: return false if the user has already logged in! The method is called from the ActionAccessInterceptor
 void setParams(java.util.Map<java.lang.String,java.lang.String> actionConfigParams)
           
 
Methods inherited from class org.apache.empire.struts2.websample.web.actiontypes.Action
getApplication, getConnection, getDatabase, getLocale, getRequest, getSession, getUser
 
Methods inherited from class org.apache.empire.struts2.action.WebAction
addFieldError, addItemError, clearActionErrors, clearItem, dispose, getActionParam, getActionURL, getItem, getItemErrors, getItemKey, getItemNewFlag, getItemPropertyName, getLastActionError, getLastActionMessage, getListPageSize, getLocalizedErrorMessage, getRequestArrayParam, getRequestIntParam, getRequestParam, getRequestParameters, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, handleException, hasAccess, hasActionError, hasItem, hasKey, hasRequestParam, init, isNewItem, putRequestParam, setActionError, setActionError, setActionError, setActionError, setActionMessage, setItem
 
Methods inherited from class org.apache.empire.struts2.actionsupport.ActionBase
getActionBean, getActionBean, getActionBeanName, getActionObject, getActionObjectName, getRecordKeyExpr, getRecordKeyFromString, getRecordKeyString, getRecordKeyString, getRecordNewFlagFromString, putActionBean, putActionBean, putActionObject, removeActionBean, removeActionBean, removeActionObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT

public static final java.lang.String INPUT
See Also:
Constant Field Values

SUCCESS

public static final java.lang.String SUCCESS
See Also:
Constant Field Values
Constructor Detail

LoginAction

public LoginAction()
Method Detail

loginRequired

public boolean loginRequired()
Description copied from class: WebAction
Determines whether the user needs to Login to access this page important: return false if the user has already logged in! The method is called from the ActionAccessInterceptor

Specified by:
loginRequired in interface ActionAccessValidator
Overrides:
loginRequired in class Action

getLoginInfo

public LoginAction.LoginInfo getLoginInfo()

doInit

public java.lang.String doInit()

doLogin

public java.lang.String doLogin()

doLogout

public java.lang.String doLogout()

doError

public java.lang.String doError()

addParam

public void addParam(java.lang.String name,
                     java.lang.String value)
Specified by:
addParam in interface com.opensymphony.xwork2.config.entities.Parameterizable

getParams

public java.util.Map getParams()
Specified by:
getParams in interface com.opensymphony.xwork2.config.entities.Parameterizable

setParams

public void setParams(java.util.Map<java.lang.String,java.lang.String> actionConfigParams)
Specified by:
setParams in interface com.opensymphony.xwork2.config.entities.Parameterizable


Copyright © 2008-2009 Apache Software Foundation. All Rights Reserved.