XPUSP - Home

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

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

public class SQLAdministrator
extends AdminAction

Actions used by administrator to manage Administrators

SourceForge LogoSource Forge Info
CVS File :SQLAdministrator.java
User :krico
Version :1.4
Date :2002/05/08 13:20:45


Fields inherited from class br.usp.ime.xpusp.modules.actions.AdminAction
ADMIN_DEFAULTCAPABILITY, ADMIN_DELETE_USER, ADMIN_INSERT_ADMIN, ADMIN_INSERT_PROF, ADMIN_UPDATE_DOUBLEDISCIPLINE, ADMIN_UPDATE_USER, ADMIN_YEAR, ADMINISTRATOR_PERMISSIONS
 
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
SQLAdministrator()
           
 
Method Summary
 void doInsert(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          ActionEvent responsible for inserting a new administrator into the Turbine security system.
 void doPerform(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.AdminAction
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

SQLAdministrator

public SQLAdministrator()
Method Detail

doInsert

public void doInsert(org.apache.turbine.util.RunData data,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception
ActionEvent responsible for inserting a new administrator into the Turbine security system.

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

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