XPUSP - Home

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.

SourceForge LogoSource Forge Info
CVS File :AdminScreen.java
User :krico
Version :1.14
Date :2002/06/01 00:35:12

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 br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
PERMISSION_NAMES
 
Fields inherited from class org.apache.turbine.modules.Screen
filter, minFilter
 
Constructor Summary
AdminScreen()
          This constructor initializes AbstractSecureScreen this ADMINISTRATOR_PERMISSIONS.
 
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 br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
getDeniedTemplate, isAuthorized, requires
 
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
 

Field Detail

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).
Constructor Detail

AdminScreen

public AdminScreen()
This constructor initializes AbstractSecureScreen this ADMINISTRATOR_PERMISSIONS.
Method Detail

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

XPUSP - Home