Context Name |
Context Type |
Context Description |
returnurl |
String |
the url send as returnurl param |
units |
Vector of Units ordered by name |
If unitid is not present |
unit |
Unit |
The unit choosen by unitid (only if present) |
departments |
Vector of Departments ordered by name |
If unitid is present and departmentcode is not, all the departments for this unit |
department |
Department |
The dept choosen by departmentcode (only if present) |
disciplines |
A vector of disciplines for the selected department orderd by name |
read before |
Fields inherited from class org.apache.turbine.modules.Screen |
filter, minFilter |
Method Summary |
boolean |
checkForDepartment(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
This method assumes there is a unit on the context. |
boolean |
checkForUnit(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
Check if there is a unit selected and if so, grab that unit, put it on the context
and return true. |
void |
doBuildTemplate(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
|
java.util.Vector |
getUnits()
|
Methods inherited from class org.apache.turbine.modules.screens.VelocityScreen |
buildTemplate, doBuildTemplate, getContext |
Methods inherited from class org.apache.turbine.modules.screens.TemplateScreen |
doBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplate |
Methods inherited from class org.apache.turbine.modules.Screen |
, build, getLayout, htmlFilter, htmlMinFilter, prepareText, prepareTextMinimum, setLayout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
SelectDisciplines
public SelectDisciplines()
doBuildTemplate
public void doBuildTemplate(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
- Overrides:
doBuildTemplate in class UnsecureScreen
checkForDepartment
public boolean checkForDepartment(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
throws java.lang.Exception
- This method assumes there is a unit on the context.
Then it places the departments in the context ordered by name
(only the unit's depts). If there is a departmentcode this department is
fetched (from the unit) and placed on the context
- Returns:
- true only if there is a dept and it was found
checkForUnit
public boolean checkForUnit(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
throws java.lang.Exception
- Check if there is a unit selected and if so, grab that unit, put it on the context
and return true.
- Returns:
- true if there is a unit selected false otherwise
getUnits
public java.util.Vector getUnits()
throws java.lang.Exception
|