steve.pums.assess.bus
Class StaffBean

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by steve.pums.assess.bus.StaffBean
All Implemented Interfaces:
java.io.Serializable

public class StaffBean
extends org.apache.struts.action.ActionForm

Used to represent a member of staff

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
StaffBean()
          Creates a new instance of SPStaffBean
StaffBean(int ID)
          Creates a new instance of SPStaffBean with person ID
StaffBean(int ID, java.lang.String first_name, java.lang.String surname)
          Creates a new instance of SPStaffBean with values
 
Method Summary
 int getID()
          Getter for staff ID
 java.lang.String getName()
          Getter for staff name
 void setID(int ID)
          Setter for staff ID
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validates the bean during marker assignment
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaffBean

public StaffBean()
Creates a new instance of SPStaffBean


StaffBean

public StaffBean(int ID)
Creates a new instance of SPStaffBean with person ID

Parameters:
ID - Staff Person ID

StaffBean

public StaffBean(int ID,
                 java.lang.String first_name,
                 java.lang.String surname)
Creates a new instance of SPStaffBean with values

Parameters:
ID - Staff person ID
first_name - Staff first name
surname - Staff last name
Method Detail

getName

public java.lang.String getName()
Getter for staff name

Returns:
Name of staff member

getID

public int getID()
Getter for staff ID

Returns:
Person ID of staff member

setID

public void setID(int ID)
Setter for staff ID

Parameters:
ID - Person ID

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Validates the bean during marker assignment

Overrides:
validate in class org.apache.struts.action.ActionForm
Parameters:
mapping - Action Mapping
request - Servlet request
Returns:
Errors identified during validation