XPUSP - Home

br.usp.ime.xpusp.modules.screens
Class ViewSchedule

java.lang.Object
  |
  +--org.apache.turbine.modules.Assembler
        |
        +--org.apache.turbine.modules.Screen
              |
              +--org.apache.turbine.modules.screens.TemplateScreen
                    |
                    +--org.apache.turbine.modules.screens.VelocityScreen
                          |
                          +--org.apache.turbine.modules.screens.VelocitySecureScreen
                                |
                                +--br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
                                      |
                                      +--br.usp.ime.xpusp.modules.screens.AdminScreen
                                            |
                                            +--br.usp.ime.xpusp.modules.screens.ViewSchedule

public class ViewSchedule
extends AdminScreen

A screen for viewing all Schedules


Parameters
Parameter Name Parameter Type Parameter Description
departmentcode String The code of the department beeing viewed
yearid int The id of the year for witch schedules will be fetched. Check the schedules context property bellow for a better understanding
Context
Context Name Context Type Context Description
years A vector with all avaliable years
schedules A ScheduleHelper for the year and the department If yearid is not present then the last finished year is fetched, otherwise the yearid is used. The year must be FINISHED and be related to the department specified by departmentcode.

SourceForge LogoSource Forge Info
CVS File :ViewSchedule.java
User :krico
Version :1.2
Date :2002/06/08 22:24:21


Fields inherited from class br.usp.ime.xpusp.modules.screens.AdminScreen
ADMIN_ADMIN_ADD, ADMIN_DEFAULTS_SCREEN, ADMIN_DOUBLEDISCIPLINES_EDIT_SCREEN, ADMIN_MENU, ADMIN_PROF_ADD, ADMIN_STD_LIST, ADMIN_STD_VIEW, ADMIN_USEREDIT_SCREEN, ADMIN_USERLIST_SCREEN, ADMIN_USERVIEW_SCREEN, ADMIN_VIEW_SCHEDULE, ADMIN_YEAR, ADMINISTRATOR_PERMISSIONS
 
Fields inherited from class br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
PERMISSION_NAMES
 
Fields inherited from class org.apache.turbine.modules.Screen
filter, minFilter
 
Constructor Summary
ViewSchedule()
           
 
Method Summary
 void doBuildTemplate(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
private  java.util.Vector getYears()
           
 int[] requires()
          You should implement this method to return the positions on the PERMISSION_NAMES array of all permissions needed by this screen.
Implementing classes should define constants for accessing theese.
 
Methods inherited from class br.usp.ime.xpusp.modules.screens.AdminScreen
getPermissionName
 
Methods inherited from class br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
getDeniedTemplate, isAuthorized
 
Methods inherited from class org.apache.turbine.modules.screens.VelocitySecureScreen
doBuildTemplate
 
Methods inherited from class org.apache.turbine.modules.screens.VelocityScreen
buildTemplate, 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
 

Constructor Detail

ViewSchedule

public ViewSchedule()
Method Detail

doBuildTemplate

public void doBuildTemplate(org.apache.turbine.util.RunData data,
                            org.apache.velocity.context.Context context)
Overrides:
doBuildTemplate in class AdminScreen

requires

public int[] requires()
Description copied from class: AbstractSecureScreen
You should implement this method to return the positions on the PERMISSION_NAMES array of all permissions needed by this screen.
Implementing classes should define constants for accessing theese. Here's a simple example:
 protected int[] requires() {
     return new int[] { PERMISSION1, PERMISSION2 };
 }
 
where PERMISSION1 and PERMISSION2 are constants defined by the implementing class.
Overrides:
requires in class AbstractSecureScreen
Following copied from class: br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
See Also:
AbstractSecureScreen.isAuthorized(RunData)

getYears

private java.util.Vector getYears()
                           throws java.lang.Exception

XPUSP - Home