org.tigris.scarab.actions.admin
Class ManageRoles

java.lang.Object
  extended byorg.apache.turbine.modules.Module
      extended byorg.apache.turbine.modules.Action
          extended byorg.apache.turbine.modules.ActionEvent
              extended byorg.apache.turbine.modules.actions.TemplateAction
                  extended byorg.apache.turbine.modules.actions.TemplateSecureAction
                      extended byorg.apache.turbine.TemplateSecureAction
                          extended byorg.tigris.scarab.actions.base.RequireLoginFirstAction
                              extended byorg.tigris.scarab.actions.admin.ManageRoles

public class ManageRoles
extends RequireLoginFirstAction

This class is responsible for dealing with the role management Action(s).

Version:
$Id: ManageRoles.java 10257 2006-08-07 22:43:30Z jorgeuriarte $
Author:
Douglas B. Robertson

Field Summary
 
Fields inherited from class org.tigris.scarab.actions.base.RequireLoginFirstAction
DEFAULT_MSG, EMAIL_ERROR, EMAIL_ERROR2, ERROR_MESSAGE, NO_CHANGES_MADE, NO_PERMISSION_MESSAGE
 
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
 
Constructor Summary
ManageRoles()
           
 
Method Summary
protected  void checkParamValidity(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context, java.lang.String target)
          Spit out an error message to the user if the "name" parameter is null or empty.
 void doAddrole(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Manages the adding of a new role when the 'Add Role' button is pressed.
 void doCancel(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          This manages clicking the Cancel button
 void doDeleterole(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          This manages the clicking of the 'Confirm Delete' button and actually deletes the Role.
 void doEditrole(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Manages the editing of an existing role when the 'Update Role' button is pressed.
 void doGotoaddrole(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Go to the Add Role page
 void doGotodeleterole(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Go to the Delete Role page
 void doGotoeditrole(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Go to the Edit Role page
 void doPerform(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          calls doCancel()
 
Methods inherited from class org.tigris.scarab.actions.base.RequireLoginFirstAction
areThereDupeSequences, doDone, doGonext, doGotoothertemplate, doRefresh, doRefreshresultsperpage, doReset, doSave, getBackTemplate, getBackTemplate, getCancelTemplate, getCancelTemplate, getCurrentTemplate, getCurrentTemplate, getIntakeTool, getLastTemplate, getLocalizationTool, getNextTemplate, getNextTemplate, getOtherTemplate, getRequiredPermission, getScarabRequestTool, isAuthorized, log
 
Methods inherited from class org.apache.turbine.modules.actions.TemplateSecureAction
perform
 
Methods inherited from class org.apache.turbine.modules.actions.TemplateAction
doPerform, executeEvents
 
Methods inherited from class org.apache.turbine.modules.ActionEvent
execute, formatString
 
Methods inherited from class org.apache.turbine.modules.Module
build, doBuild, doBuildTemplate, doBuildTemplate, evaluate, getPullService, getTemplateContext, getTemplateService, getTool, handleRequest, handleRequest, requestFinished, setTarget, setTemplate, templateExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManageRoles

public ManageRoles()
Method Detail

doGotoaddrole

public void doGotoaddrole(org.apache.turbine.RunData data,
                          org.apache.turbine.TemplateContext context)
                   throws java.lang.Exception
Go to the Add Role page

Throws:
java.lang.Exception

doGotoeditrole

public void doGotoeditrole(org.apache.turbine.RunData data,
                           org.apache.turbine.TemplateContext context)
                    throws java.lang.Exception
Go to the Edit Role page

Throws:
java.lang.Exception

doGotodeleterole

public void doGotodeleterole(org.apache.turbine.RunData data,
                             org.apache.turbine.TemplateContext context)
                      throws java.lang.Exception
Go to the Delete Role page

Throws:
java.lang.Exception

doAddrole

public void doAddrole(org.apache.turbine.RunData data,
                      org.apache.turbine.TemplateContext context)
               throws java.lang.Exception
Manages the adding of a new role when the 'Add Role' button is pressed.

Throws:
java.lang.Exception

doEditrole

public void doEditrole(org.apache.turbine.RunData data,
                       org.apache.turbine.TemplateContext context)
                throws java.lang.Exception
Manages the editing of an existing role when the 'Update Role' button is pressed.

Throws:
java.lang.Exception

doDeleterole

public void doDeleterole(org.apache.turbine.RunData data,
                         org.apache.turbine.TemplateContext context)
                  throws java.lang.Exception
This manages the clicking of the 'Confirm Delete' button and actually deletes the Role.

Throws:
java.lang.Exception

doCancel

public void doCancel(org.apache.turbine.RunData data,
                     org.apache.turbine.TemplateContext context)
              throws java.lang.Exception
This manages clicking the Cancel button

Overrides:
doCancel in class RequireLoginFirstAction
Throws:
java.lang.Exception

doPerform

public void doPerform(org.apache.turbine.RunData data,
                      org.apache.turbine.TemplateContext context)
               throws java.lang.Exception
calls doCancel()

Throws:
java.lang.Exception

checkParamValidity

protected void checkParamValidity(org.apache.turbine.RunData data,
                                  org.apache.turbine.TemplateContext context,
                                  java.lang.String target)
Spit out an error message to the user if the "name" parameter is null or empty.

Parameters:
target - Page to go to if "name" parameter is present. If null then don't go anywhere.


Copyright © 2000-2004 Tigris.org. All Rights Reserved.