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

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.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
           
 
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
SampleAction()
           
 
Method Summary
protected  boolean checkWebService()
           
protected  SampleApplication getApplication()
           
protected  EmployeeServiceClient getEmployeeServiceClient()
           
 java.util.Locale getLocale()
           
static SampleRequest getRequest()
           
protected  SampleSession getSession()
           
protected  boolean isServiceAvailable()
           
 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, 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
 

Field Detail

log

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

SampleAction

public SampleAction()
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

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.