XPUSP - Home

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

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.ProfessorScreen
Direct Known Subclasses:
ProfessorCapability, ProfessorChoiceWeights, ProfessorNrStudents, ProfessorPeriod, ProfessorPreferences

public abstract class ProfessorScreen
extends AbstractSecureScreen

Extend this class if you need a professor secure screen.

SourceForge LogoSource Forge Info
CVS File :ProfessorScreen.java
User :krico
Version :1.9
Date :2002/05/10 16:44:14

See Also:
AbstractSecureScreen

Field Summary
static int PROFESSOR_CAPABILITY_SCREEN
          This is the index for the permission needed to open the ProfessorCapability screen
static int PROFESSOR_CHOICE_WEIGHTS_SCREEN
          This is the index for the permission needed to open the ProfessorChoiceWeights screen
static int PROFESSOR_MENU
          This is the index for the permission needed to display the professor's menu
static int PROFESSOR_NR_STUDENTS_SCREEN
          This is the index for the permission needed to open the ProfessorNrStudents screen
static int PROFESSOR_PERIOD_SCREEN
          This is the index for the permission needed to open the ProfessorPeriod screen
private static java.lang.String[] PROFESSOR_PERMISSIONS
          Theese are all existing professor permissions for screens.
static int PROFESSOR_PREFERENCES_SCREEN
          This is the index for the permission needed to open the ProfessorPreferences screen
 
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
ProfessorScreen()
          This constructor initializes AbstractSecureScreen this PROFESSOR_PERMISSIONS.
 
Method Summary
 void doBuildTemplate(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
static java.lang.String getPermissionName(int idx)
          This is a convenience method for fetching the names of the existing permissions.
 
Methods inherited from class br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
getDeniedTemplate, isAuthorized, requires
 
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
 

Field Detail

PROFESSOR_MENU

public static final int PROFESSOR_MENU
This is the index for the permission needed to display the professor's menu

PROFESSOR_PREFERENCES_SCREEN

public static final int PROFESSOR_PREFERENCES_SCREEN
This is the index for the permission needed to open the ProfessorPreferences screen

PROFESSOR_CAPABILITY_SCREEN

public static final int PROFESSOR_CAPABILITY_SCREEN
This is the index for the permission needed to open the ProfessorCapability screen

PROFESSOR_NR_STUDENTS_SCREEN

public static final int PROFESSOR_NR_STUDENTS_SCREEN
This is the index for the permission needed to open the ProfessorNrStudents screen

PROFESSOR_PERIOD_SCREEN

public static final int PROFESSOR_PERIOD_SCREEN
This is the index for the permission needed to open the ProfessorPeriod screen

PROFESSOR_CHOICE_WEIGHTS_SCREEN

public static final int PROFESSOR_CHOICE_WEIGHTS_SCREEN
This is the index for the permission needed to open the ProfessorChoiceWeights screen

PROFESSOR_PERMISSIONS

private static final java.lang.String[] PROFESSOR_PERMISSIONS
Theese are all existing professor permissions for screens. You can fetch them using getPermissionName(CONSTANT).
Constructor Detail

ProfessorScreen

public ProfessorScreen()
This constructor initializes AbstractSecureScreen this PROFESSOR_PERMISSIONS.
Method Detail

getPermissionName

public static final java.lang.String getPermissionName(int idx)
This is a convenience method for fetching the names of the existing permissions.

doBuildTemplate

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

XPUSP - Home