XPUSP - Home

br.usp.ime.xpusp.modules.actions
Class ProfessorAction

java.lang.Object
  |
  +--org.apache.turbine.modules.Assembler
        |
        +--org.apache.turbine.modules.Action
              |
              +--org.apache.turbine.modules.ActionEvent
                    |
                    +--org.apache.turbine.util.velocity.VelocityActionEvent
                          |
                          +--org.apache.turbine.modules.actions.VelocityAction
                                |
                                +--org.apache.turbine.modules.actions.VelocitySecureAction
                                      |
                                      +--br.usp.ime.xpusp.modules.actions.AbstractSecureAction
                                            |
                                            +--br.usp.ime.xpusp.modules.actions.ProfessorAction
Direct Known Subclasses:
SQLProfessorPreferences

public abstract class ProfessorAction
extends AbstractSecureAction

Extend this if you have an action that should be available for professors

SourceForge LogoSource Forge Info
CVS File :ProfessorAction.java
User :krico
Version :1.3
Date :2002/03/15 05:30:25


Field Summary
private static java.lang.String[] PROFESSOR_PERMISSIONS
          This is the array with all existing permissions for professors.
static int UPDATE_PREFERENCES
          Index of perm needed by professor to update preferences
 
Fields inherited from class br.usp.ime.xpusp.modules.actions.AbstractSecureAction
PERMISSION_NAMES
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
ProfessorAction()
          This constructor initializes AbstractSecureAction this PROFESSOR_PERMISSIONS.
 
Method Summary
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.actions.AbstractSecureAction
getDeniedTemplate, isAuthorized, requires
 
Methods inherited from class org.apache.turbine.modules.actions.VelocitySecureAction
doPerform, perform
 
Methods inherited from class org.apache.turbine.modules.actions.VelocityAction
doPerform, getContext, setTemplate
 
Methods inherited from class org.apache.turbine.util.velocity.VelocityActionEvent
executeEvents
 
Methods inherited from class org.apache.turbine.modules.ActionEvent
, executeEvents, firstLetterCaps, formatString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

UPDATE_PREFERENCES

public static final int UPDATE_PREFERENCES
Index of perm needed by professor to update preferences

PROFESSOR_PERMISSIONS

private static final java.lang.String[] PROFESSOR_PERMISSIONS
This is the array with all existing permissions for professors. You can fetch them using getPermissionName(CONSTANT).
Constructor Detail

ProfessorAction

public ProfessorAction()
This constructor initializes AbstractSecureAction 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.

XPUSP - Home