XPUSP - Home

br.usp.ime.xpusp.modules.screens
Class InsertAdmin

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
                                            |
                                            +--br.usp.ime.xpusp.modules.screens.InsertAdmin

public class InsertAdmin
extends AdminScreen

A screen for inserting an administrator


Parameters
Parameter Name Parameter Type Parameter Description
unitid int The unit this administrator belongs to
departmentcode String The department this administrator belongs to
Context
Context Name Context Type Context Description
units Vector of Units ordered by name If unitid is not present
unit Unit The unit choosen by unitid (only if present)
departments Vector of Departments ordered by name If unitid is present and departmentcode is not, all the departments for this unit
department Department The department choosen by departmentcode (only if present)

SourceForge LogoSource Forge Info
CVS File :InsertAdmin.java
User :krico
Version :1.2
Date :2002/05/08 13:20:45


Fields inherited from class br.usp.ime.xpusp.modules.screens.AdminScreen
ADMIN_ADMIN_ADD, ADMIN_DEFAULTS_SCREEN, ADMIN_DOUBLEDISCIPLINES_EDIT_SCREEN, ADMIN_MENU, ADMIN_PROF_ADD, ADMIN_STD_LIST, ADMIN_STD_VIEW, ADMIN_USEREDIT_SCREEN, ADMIN_USERLIST_SCREEN, ADMIN_USERVIEW_SCREEN, ADMIN_VIEW_SCHEDULE, ADMIN_YEAR, ADMINISTRATOR_PERMISSIONS
 
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
InsertAdmin()
           
 
Method Summary
 void doBuildTemplate(org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
           
 java.util.Vector getUnits()
           
 int[] requires()
          You should implement this method to return the positions on the PERMISSION_NAMES array of all permissions needed by this screen.
Implementing classes should define constants for accessing theese.
 
Methods inherited from class br.usp.ime.xpusp.modules.screens.AdminScreen
getPermissionName
 
Methods inherited from class br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
getDeniedTemplate, isAuthorized
 
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
 

Constructor Detail

InsertAdmin

public InsertAdmin()
Method Detail

doBuildTemplate

public void doBuildTemplate(org.apache.turbine.util.RunData data,
                            org.apache.velocity.context.Context context)
Overrides:
doBuildTemplate in class AdminScreen

getUnits

public java.util.Vector getUnits()
                          throws java.lang.Exception

requires

public int[] requires()
Description copied from class: AbstractSecureScreen
You should implement this method to return the positions on the PERMISSION_NAMES array of all permissions needed by this screen.
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 AbstractSecureScreen
Following copied from class: br.usp.ime.xpusp.modules.screens.AbstractSecureScreen
See Also:
AbstractSecureScreen.isAuthorized(RunData)

XPUSP - Home