Class EmployeeAction
java.lang.Object
org.apache.struts2.ActionSupport
org.apache.struts2.showcase.action.AbstractCRUDAction
org.apache.struts2.showcase.action.EmployeeAction
- All Implemented Interfaces:
Serializable,Action,ValidationAware,LocaleProvider,Preparable,TextProvider,Validateable
JsfEmployeeAction.
- See Also:
-
Field Summary
Fields inherited from class org.apache.struts2.ActionSupport
container -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute()A default implementation that does nothing an returns "success".String[]protected DaogetDao()getEmpId()voidprepare()This method is called to allow the action to prepare itself.save()voidsetCurrentEmployee(Employee currentEmployee) voidvoidsetSelectedSkills(List<String> selectedSkills) Methods inherited from class org.apache.struts2.showcase.action.AbstractCRUDAction
delete, fetch, getAvailableItems, getToDelete, list, setToDeleteMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getLocaleProvider, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validate
-
Constructor Details
-
EmployeeAction
public EmployeeAction()
-
-
Method Details
-
execute
Description copied from class:ActionSupportA default implementation that does nothing an returns "success".Subclasses should override this method to provide their business logic.
See also
Action.execute().- Specified by:
executein interfaceAction- Overrides:
executein classActionSupport- Returns:
- returns
Action.SUCCESS - Throws:
Exception- can be thrown by subclasses.
-
save
- Throws:
Exception
-
getEmpId
-
setEmpId
-
getCurrentEmployee
-
setCurrentEmployee
-
getAvailablePositions
-
getAvailableLevels
-
getSelectedSkills
-
setSelectedSkills
-
getDao
- Specified by:
getDaoin classAbstractCRUDAction
-
prepare
This method is called to allow the action to prepare itself.- Specified by:
preparein interfacePreparable- Throws:
Exception- thrown if a system level exception occurs.
-