br.usp.ime.xpusp.modules.actions
Class AdminAction
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
- Direct Known Subclasses:
- SQLAdministrator, SQLDefaultCapability, SQLDoubleDisciplines, SQLProfessor, SQLUserEdit, Year
- public abstract class AdminAction
- extends AbstractSecureAction
Extend this if you have an action that should be available for admins
|
Field Summary |
static int |
ADMIN_DEFAULTCAPABILITY
This constant represents the position
of the permission for administrating DefaultCapabilities |
static int |
ADMIN_DELETE_USER
This constant represents the position
of the permission for deleting users |
static int |
ADMIN_INSERT_ADMIN
This constant represents the position
of the permission for inserting administrators |
static int |
ADMIN_INSERT_PROF
This constant represents the position
of the permission for inserting professors |
static int |
ADMIN_UPDATE_DOUBLEDISCIPLINE
This constant represents the position
of the permission for updating doubledisciplines |
static int |
ADMIN_UPDATE_USER
This constant represents the position
of the permission for updating users |
static int |
ADMIN_YEAR
This constant represents the position
of the permission for year administration |
private static java.lang.String[] |
ADMINISTRATOR_PERMISSIONS
This is the array with all existing permissions for
administrators. |
| Fields inherited from class org.apache.turbine.modules.ActionEvent |
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX |
|
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 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 |
ADMIN_YEAR
public static final int ADMIN_YEAR
- This constant represents the position
of the permission for year administration
ADMIN_INSERT_PROF
public static final int ADMIN_INSERT_PROF
- This constant represents the position
of the permission for inserting professors
ADMIN_INSERT_ADMIN
public static final int ADMIN_INSERT_ADMIN
- This constant represents the position
of the permission for inserting administrators
ADMIN_UPDATE_USER
public static final int ADMIN_UPDATE_USER
- This constant represents the position
of the permission for updating users
ADMIN_DELETE_USER
public static final int ADMIN_DELETE_USER
- This constant represents the position
of the permission for deleting users
ADMIN_UPDATE_DOUBLEDISCIPLINE
public static final int ADMIN_UPDATE_DOUBLEDISCIPLINE
- This constant represents the position
of the permission for updating doubledisciplines
ADMIN_DEFAULTCAPABILITY
public static final int ADMIN_DEFAULTCAPABILITY
- This constant represents the position
of the permission for administrating DefaultCapabilities
ADMINISTRATOR_PERMISSIONS
private static final java.lang.String[] ADMINISTRATOR_PERMISSIONS
- This is the array with all existing permissions for
administrators. You can fetch them using
getPermissionName(CONSTANT).
AdminAction
public AdminAction()
- This constructor initializes
AbstractSecureAction
this ADMINISTRATOR_PERMISSIONS.
getPermissionName
public static final java.lang.String getPermissionName(int idx)
- This is a convenience method for fetching the names of the existing permissions.