org.apache.struts2.showcase.action
Class EmployeeAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.apache.struts2.showcase.action.AbstractCRUDAction
          extended by org.apache.struts2.showcase.action.EmployeeAction
All Implemented Interfaces:
Action, LocaleProvider, Preparable, TextProvider, Validateable, ValidationAware, java.io.Serializable
Direct Known Subclasses:
JsfEmployeeAction

public class EmployeeAction
extends AbstractCRUDAction
implements Preparable

JsfEmployeeAction.

See Also:
Serialized Form

Field Summary
protected  EmployeeDao employeeDao
           
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
EmployeeAction()
           
 
Method Summary
 java.lang.String execute()
           
 java.util.List getAvailableLevels()
           
 java.lang.String[] getAvailablePositions()
           
 Employee getCurrentEmployee()
           
protected  Dao getDao()
           
 java.lang.Long getEmpId()
           
 java.util.List getSelectedSkills()
           
 void prepare()
          This method is called to allow the action to prepare itself.
 java.lang.String save()
           
 void setCurrentEmployee(Employee currentEmployee)
           
 void setEmpId(java.lang.Long empId)
           
 void setEmployeeDao(EmployeeDao employeeDao)
           
 void setSelectedSkills(java.util.List selectedSkills)
           
 
Methods inherited from class org.apache.struts2.showcase.action.AbstractCRUDAction
delete, fetch, getAvailableItems, getToDelete, list, setToDelete
 
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

employeeDao

protected EmployeeDao employeeDao
Constructor Detail

EmployeeAction

public EmployeeAction()
Method Detail

getEmpId

public java.lang.Long getEmpId()

setEmpId

public void setEmpId(java.lang.Long empId)

getCurrentEmployee

public Employee getCurrentEmployee()

setCurrentEmployee

public void setCurrentEmployee(Employee currentEmployee)

getAvailablePositions

public java.lang.String[] getAvailablePositions()

getAvailableLevels

public java.util.List getAvailableLevels()

getSelectedSkills

public java.util.List getSelectedSkills()

setSelectedSkills

public void setSelectedSkills(java.util.List selectedSkills)

getDao

protected Dao getDao()
Specified by:
getDao in class AbstractCRUDAction

setEmployeeDao

public void setEmployeeDao(EmployeeDao employeeDao)

prepare

public void prepare()
             throws java.lang.Exception
This method is called to allow the action to prepare itself.

Specified by:
prepare in interface Preparable
Throws:
java.lang.Exception - thrown if a system level exception occurs.

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface Action
Overrides:
execute in class ActionSupport
Throws:
java.lang.Exception

save

public java.lang.String save()
                      throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.