steve.pums.assess.process
Class MarkFormProcess

java.lang.Object
  extended by steve.pums.assess.process.MarkFormProcess

public class MarkFormProcess
extends java.lang.Object

Used for the processing of project mark forms and the associated marking data


Constructor Summary
MarkFormProcess(java.sql.Connection conn)
          Creates a new instance of MarkFormProcess
 
Method Summary
 MarkFormBean GenForm(Project project, int marker)
          Generates the appropriate mark form for the project being assessed
 java.util.HashMap GetMarkerMarks(int project)
          Retrieves all marks assigned to a project
 java.util.Vector GetPrizes()
          Obtains details of potential prizes a mark form can nominate a project for
 Project ProcessMark(Project project, MarkFormBean markform)
          Processes mark form, initiates save of mark form data and updates to project mark and status
 Project ProcessReconcilliation(Project project)
          Used for processing the mark reconcilliation form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkFormProcess

public MarkFormProcess(java.sql.Connection conn)
Creates a new instance of MarkFormProcess

Parameters:
conn - Connection to the SUMS database
Method Detail

GenForm

public MarkFormBean GenForm(Project project,
                            int marker)
                     throws java.sql.SQLException,
                            java.text.ParseException
Generates the appropriate mark form for the project being assessed

Parameters:
project - project the mark form is to be generated for
marker - ID of the person marking the project
Returns:
the mark form data for the assessment of the project
Throws:
java.sql.SQLException - in the event of SQL errors
java.text.ParseException - in the event of date parsing errors

GetPrizes

public java.util.Vector GetPrizes()
                           throws java.sql.SQLException
Obtains details of potential prizes a mark form can nominate a project for

Returns:
details of prize categories
Throws:
java.sql.SQLException - in the event of SQL errors

ProcessMark

public Project ProcessMark(Project project,
                           MarkFormBean markform)
                    throws java.lang.Exception
Processes mark form, initiates save of mark form data and updates to project mark and status

Parameters:
project - project being marked
markform - project mark form
Returns:
project with updated status and mark if applicable
Throws:
java.lang.Exception - lang error

ProcessReconcilliation

public Project ProcessReconcilliation(Project project)
Used for processing the mark reconcilliation form. Updates project mark and status.

Parameters:
project - project being reconcilled
Returns:
project with updated mark and status

GetMarkerMarks

public java.util.HashMap GetMarkerMarks(int project)
                                 throws java.sql.SQLException
Retrieves all marks assigned to a project

Parameters:
project - ID of project to retrieve marks for
Returns:
marks assigned to a project. key references the marker's capacity
Throws:
java.sql.SQLException - in the event of SQL errors