br.usp.ime.xpusp.modules.actions
Class SQLProfessor
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.SQLProfessor
- public class SQLProfessor
- extends AdminAction
Actions used by administrator to manage Professors
Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
Method Summary |
void |
doInsert(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
ActionEvent responsible for inserting a new professor
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 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 |
SQLProfessor
public SQLProfessor()
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 professor
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)