public class WebformHandler
extends java.lang.Object
Constructor and Description |
---|
WebformHandler(Controller c)
create a webformhandler
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
finalizeSchedule(java.lang.String semester,
Schedule schedule)
Notifies the Assistants of their assignments and finalizes the assignments
|
java.util.ArrayList<Pair<java.lang.String,TimeBlock>> |
getAllUnavailableTimes(java.lang.String semester)
Gets all of the unavailable times for all of the assistants during the supplied semester.
|
java.util.ArrayList<Pair<java.lang.String,java.lang.String>> |
getAssignments(java.lang.String semester)
Retrieves the Assignments from the System for the specified semester
|
java.util.ArrayList<Pair<Position,Response>> |
getNewResponses(java.lang.String semester,
Schedule schedule)
Retieves the responses from the webform and updates the published schedule accordingly.
|
java.util.ArrayList<java.lang.String> |
getUnavailableAssistants(java.lang.String semester)
Gets all of the unavailable times for assistants for the supplied semester.
|
java.util.ArrayList<TimeBlock> |
getUnavailableTimes(java.lang.String semester,
java.lang.String user)
Gets the unavalable times for a specific assistant during the supplied semester.
|
void |
notifyAssistant(Assistant assistant)
Notifies the assistant of their assignment
|
java.lang.String[] |
publishSchedule(java.lang.String semester,
Schedule schedule)
Publishes the schedule to the webform.
|
void |
removeUnavailableTimes(java.lang.String semester)
Removes an unavailable time
|
void |
unpublishSchedule(java.lang.String semester)
Removes the published schedule from the webForm
|
public WebformHandler(Controller c)
Controller
- public java.util.ArrayList<Pair<java.lang.String,java.lang.String>> getAssignments(java.lang.String semester) throws DbConnectionException, java.sql.SQLException
semester
- the semester to get assignments forDbConnectionException
java.sql.SQLException
public void notifyAssistant(Assistant assistant)
assistant
- public void unpublishSchedule(java.lang.String semester) throws DbConnectionException, java.sql.SQLException
String
- semester to unpublishDbConnectionException
java.sql.SQLException
public java.lang.String[] publishSchedule(java.lang.String semester, Schedule schedule) throws DbConnectionException, java.sql.SQLException
String
- semester to publish a schedule forSchedule
- that will be publishedDbConnectionException
java.sql.SQLException
public java.lang.String[] finalizeSchedule(java.lang.String semester, Schedule schedule) throws DbConnectionException, java.sql.SQLException
String
- semester that a schedule is being finalized forSchedule
- that is being finalzedDbConnectionException
java.sql.SQLException
public java.util.ArrayList<Pair<Position,Response>> getNewResponses(java.lang.String semester, Schedule schedule) throws java.sql.SQLException, DbConnectionException
String
- semester to get new responses forSchedule
- to get new responses forjava.sql.SQLException
DbConnectionException
public java.util.ArrayList<java.lang.String> getUnavailableAssistants(java.lang.String semester) throws java.sql.SQLException, DbConnectionException
String
- semester to get unavailable assistants forjava.sql.SQLException
DbConnectionException
public java.util.ArrayList<TimeBlock> getUnavailableTimes(java.lang.String semester, java.lang.String user) throws java.sql.SQLException, DbConnectionException
String
- semester to get unavailable times forString
- user to get unavailable times forjava.sql.SQLException
DbConnectionException
public java.util.ArrayList<Pair<java.lang.String,TimeBlock>> getAllUnavailableTimes(java.lang.String semester) throws java.sql.SQLException, DbConnectionException
String
- semester to get all the unavailable times forjava.sql.SQLException
DbConnectionException
public void removeUnavailableTimes(java.lang.String semester) throws DbConnectionException, java.sql.SQLException
String
- semester to remove unavailable times fromDbConnectionException
java.sql.SQLException