org.apache.struts2.showcase.action
Class EmployeeAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
org.apache.struts2.showcase.action.AbstractCRUDAction
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
| 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 |
employeeDao
protected EmployeeDao employeeDao
EmployeeAction
public EmployeeAction()
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.