XPUSP - Home

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

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
                                                  |
                                                  +--br.usp.ime.xpusp.modules.actions.SQLProfessorPreferences

public class SQLProfessorPreferences
extends ProfessorAction

Actions used by professor to manage his preferences

SourceForge LogoSource Forge Info
CVS File :SQLProfessorPreferences.java
User :krico
Version :1.12
Date :2002/05/11 16:22:58


Fields inherited from class br.usp.ime.xpusp.modules.actions.ProfessorAction
PROFESSOR_PERMISSIONS, 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
SQLProfessorPreferences()
           
 
Method Summary
 void doChoiceweights(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doDisciplines(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          This method can receive an option "clearclipboard" in which case it will remove all elements from clipboard.DisciplineClipboard after inserting capabilitys
 void doNrstudents(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doPerform(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doPeriod(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
protected  int[] requires()
          You should implement this method to return the positions on the PERMISSION_NAMES array of all permissions needed by this action.
Implementing classes should define constants for accessing theese.
 
Methods inherited from class br.usp.ime.xpusp.modules.actions.ProfessorAction
getPermissionName
 
Methods inherited from class br.usp.ime.xpusp.modules.actions.AbstractSecureAction
getDeniedTemplate, isAuthorized
 
Methods inherited from class org.apache.turbine.modules.actions.VelocitySecureAction
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
 

Constructor Detail

SQLProfessorPreferences

public SQLProfessorPreferences()
Method Detail

doPerform

public void doPerform(org.apache.turbine.util.RunData data,
                      org.apache.velocity.context.Context context)
               throws java.lang.Exception
Overrides:
doPerform in class org.apache.turbine.modules.actions.VelocitySecureAction

doPeriod

public void doPeriod(org.apache.turbine.util.RunData data,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception

doNrstudents

public void doNrstudents(org.apache.turbine.util.RunData data,
                         org.apache.velocity.context.Context context)
                  throws java.lang.Exception

doChoiceweights

public void doChoiceweights(org.apache.turbine.util.RunData data,
                            org.apache.velocity.context.Context context)
                     throws java.lang.Exception

doDisciplines

public void doDisciplines(org.apache.turbine.util.RunData data,
                          org.apache.velocity.context.Context context)
                   throws java.lang.Exception
This method can receive an option "clearclipboard" in which case it will remove all elements from clipboard.DisciplineClipboard after inserting capabilitys

requires

protected int[] requires()
Description copied from class: AbstractSecureAction
You should implement this method to return the positions on the PERMISSION_NAMES array of all permissions needed by this action.
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 AbstractSecureAction
Following copied from class: br.usp.ime.xpusp.modules.actions.AbstractSecureAction
See Also:
AbstractSecureAction.isAuthorized(RunData)

XPUSP - Home