br.usp.ime.xpusp.modules.screens
Class AdminScreen
java.lang.Object
|
+--org.apache.turbine.modules.Assembler
|
+--org.apache.turbine.modules.Screen
|
+--org.apache.turbine.modules.screens.TemplateScreen
|
+--org.apache.turbine.modules.screens.VelocityScreen
|
+--org.apache.turbine.modules.screens.VelocitySecureScreen
|
+--br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
|
+--br.usp.ime.xpusp.modules.screens.AdminScreen
- Direct Known Subclasses:
- AdminYear, Defaults, DoubleDisciplinesEdit, InsertAdmin, InsertProfessor, StudentList, StudentView, UserEdit, UserList, UserView, ViewSchedule
- public abstract class AdminScreen
- extends AbstractSecureScreen
Extend this class if you need a administrator secure screen.
- See Also:
AbstractSecureScreen
Field Summary |
static int |
ADMIN_ADMIN_ADD
This is the index for the permission needed to
add an administrator |
static int |
ADMIN_DEFAULTS_SCREEN
This is the index for the permission needed to
view the defaults screen |
static int |
ADMIN_DOUBLEDISCIPLINES_EDIT_SCREEN
This is the index for the permission needed to
view the doubledisciplines edit screen |
static int |
ADMIN_MENU
This is the index for the permission needed to
display the administrator's menu |
static int |
ADMIN_PROF_ADD
This is the index for the permission needed to
add a professor |
static int |
ADMIN_STD_LIST
This is the index for the permission needed to
view the students list. |
static int |
ADMIN_STD_VIEW
This is the index for the permission needed to
view a student. |
static int |
ADMIN_USEREDIT_SCREEN
This is the index for the permission needed to
view the useredit screen |
static int |
ADMIN_USERLIST_SCREEN
This is the index for the permission needed to
view the userlist screen |
static int |
ADMIN_USERVIEW_SCREEN
This is the index for the permission needed to
view the user screen |
static int |
ADMIN_VIEW_SCHEDULE
This is the index for the permission needed to
view the schedules |
static int |
ADMIN_YEAR
This is the index for the permission needed to
administrate years. |
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.Screen |
filter, minFilter |
Method Summary |
void |
doBuildTemplate(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
|
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.screens.VelocitySecureScreen |
doBuildTemplate |
Methods inherited from class org.apache.turbine.modules.screens.VelocityScreen |
buildTemplate, getContext |
Methods inherited from class org.apache.turbine.modules.screens.TemplateScreen |
doBuild, doPostBuildTemplate, doRedirect, doRedirect, setTemplate |
Methods inherited from class org.apache.turbine.modules.Screen |
, build, getLayout, htmlFilter, htmlMinFilter, prepareText, prepareTextMinimum, setLayout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
ADMIN_MENU
public static final int ADMIN_MENU
- This is the index for the permission needed to
display the administrator's menu
ADMIN_YEAR
public static final int ADMIN_YEAR
- This is the index for the permission needed to
administrate years.
ADMIN_STD_LIST
public static final int ADMIN_STD_LIST
- This is the index for the permission needed to
view the students list.
ADMIN_STD_VIEW
public static final int ADMIN_STD_VIEW
- This is the index for the permission needed to
view a student.
ADMIN_PROF_ADD
public static final int ADMIN_PROF_ADD
- This is the index for the permission needed to
add a professor
ADMIN_ADMIN_ADD
public static final int ADMIN_ADMIN_ADD
- This is the index for the permission needed to
add an administrator
ADMIN_USERLIST_SCREEN
public static final int ADMIN_USERLIST_SCREEN
- This is the index for the permission needed to
view the userlist screen
ADMIN_USERVIEW_SCREEN
public static final int ADMIN_USERVIEW_SCREEN
- This is the index for the permission needed to
view the user screen
ADMIN_USEREDIT_SCREEN
public static final int ADMIN_USEREDIT_SCREEN
- This is the index for the permission needed to
view the useredit screen
ADMIN_DOUBLEDISCIPLINES_EDIT_SCREEN
public static final int ADMIN_DOUBLEDISCIPLINES_EDIT_SCREEN
- This is the index for the permission needed to
view the doubledisciplines edit screen
ADMIN_DEFAULTS_SCREEN
public static final int ADMIN_DEFAULTS_SCREEN
- This is the index for the permission needed to
view the defaults screen
ADMIN_VIEW_SCHEDULE
public static final int ADMIN_VIEW_SCHEDULE
- This is the index for the permission needed to
view the schedules
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)
.
AdminScreen
public AdminScreen()
- This constructor initializes
AbstractSecureScreen
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.
doBuildTemplate
public void doBuildTemplate(org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
- Overrides:
doBuildTemplate
in class org.apache.turbine.modules.screens.VelocitySecureScreen