Class EmployeeAction

All Implemented Interfaces:
Serializable, Action, ValidationAware, LocaleProvider, Preparable, TextProvider, Validateable

public class EmployeeAction extends AbstractCRUDAction implements Preparable
JsfEmployeeAction.
See Also:
  • Constructor Details

    • EmployeeAction

      public EmployeeAction()
  • Method Details

    • execute

      public String execute() throws Exception
      Description copied from class: ActionSupport
      A default implementation that does nothing an returns "success".

      Subclasses should override this method to provide their business logic.

      See also Action.execute().

      Specified by:
      execute in interface Action
      Overrides:
      execute in class ActionSupport
      Returns:
      returns Action.SUCCESS
      Throws:
      Exception - can be thrown by subclasses.
    • save

      public String save() throws Exception
      Throws:
      Exception
    • getEmpId

      public Long getEmpId()
    • setEmpId

      public void setEmpId(Long empId)
    • getCurrentEmployee

      public Employee getCurrentEmployee()
    • setCurrentEmployee

      public void setCurrentEmployee(Employee currentEmployee)
    • getAvailablePositions

      public String[] getAvailablePositions()
    • getAvailableLevels

      public List getAvailableLevels()
    • getSelectedSkills

      public List<String> getSelectedSkills()
    • setSelectedSkills

      public void setSelectedSkills(List<String> selectedSkills)
    • getDao

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

      public void prepare() throws Exception
      This method is called to allow the action to prepare itself.
      Specified by:
      prepare in interface Preparable
      Throws:
      Exception - thrown if a system level exception occurs.