org.apache.empire.struts2.websample.web.actiontypes
Class SampleAction
java.lang.Object
org.apache.empire.struts2.actionsupport.ActionBase
org.apache.empire.struts2.action.WebAction
org.apache.empire.struts2.websample.web.actiontypes.SampleAction
- All Implemented Interfaces:
- com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, ActionAccessValidator, ActionErrorProvider, ActionItemProperty, Disposable, ExceptionAware, RequestParamProvider
public abstract class SampleAction
- extends WebAction
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
Methods inherited from class org.apache.empire.struts2.action.WebAction |
addFieldError, addItemError, clearActionErrors, clearItem, dispose, getActionParam, getActionURL, getConnection, 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 |
log
protected static org.apache.commons.logging.Log log
SampleAction
public SampleAction()
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
protected SampleApplication getApplication()
getSession
protected SampleSession getSession()
checkWebService
protected boolean checkWebService()
isServiceAvailable
protected boolean isServiceAvailable()
getEmployeeServiceClient
protected EmployeeServiceClient getEmployeeServiceClient()
Copyright © 2008-2009 Apache Software Foundation. All Rights Reserved.