XPUSP - Home

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

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.SQLUserEdit

public class SQLUserEdit
extends AdminAction

Actions used by administrator to update/delete users

SourceForge LogoSource Forge Info
CVS File :SQLUserEdit.java
User :alex_freire
Version :1.4
Date :2002/05/31 04:09:32


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
SQLUserEdit()
           
 
Method Summary
 void doDelete(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          not good for self deletion
 void doPerform(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 void doUpdate(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          not good for self editing
 boolean isEditingSelf(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
          Checks if the user is editing itself with this action (shouldn't).
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

SQLUserEdit

public SQLUserEdit()
Method Detail

isEditingSelf

public boolean isEditingSelf(org.apache.turbine.util.RunData data,
                             org.apache.velocity.context.Context context)
                      throws java.lang.Exception
Checks if the user is editing itself with this action (shouldn't). If he is, a message is set on RunData
Returns:
true if the user is editing himself

doUpdate

public void doUpdate(org.apache.turbine.util.RunData data,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception
not good for self editing

doDelete

public void doDelete(org.apache.turbine.util.RunData data,
                     org.apache.velocity.context.Context context)
              throws java.lang.Exception
not good for self deletion

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