org.apache.empire.struts2.websample.web.actiontypes
Class Action

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
All Implemented Interfaces:
com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, ActionAccessValidator, ActionErrorProvider, ActionItemProperty, Disposable, ExceptionAware, RequestParamProvider, SampleContext
Direct Known Subclasses:
DetailAction, EmployeeListAction, LoginAction

public abstract class Action
extends WebAction
implements SampleContext


Field Summary
protected static org.apache.commons.logging.Log 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
Action()
           
 
Method Summary
 SampleApplication getApplication()
           
 java.sql.Connection getConnection()
           
 SampleDB getDatabase()
           
 java.util.Locale getLocale()
           
static SampleRequest getRequest()
           
 SampleSession getSession()
           
 SampleUser getUser()
           
 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
 
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

log

protected static org.apache.commons.logging.Log log
Constructor Detail

Action

public Action()
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 WebAction

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface com.opensymphony.xwork2.LocaleProvider
Overrides:
getLocale in class WebAction

getRequest

public static SampleRequest getRequest()

getApplication

public SampleApplication getApplication()

getSession

public SampleSession getSession()

getDatabase

public SampleDB getDatabase()
Specified by:
getDatabase in interface SampleContext

getUser

public SampleUser getUser()
Specified by:
getUser in interface SampleContext

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface SampleContext
Overrides:
getConnection in class WebAction


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