org.tigris.scarab.actions.admin
Class GlobalAttributeEdit

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.GlobalAttributeEdit

public class GlobalAttributeEdit
extends RequireLoginFirstAction

This class deals with modifying Global Attributes.

Version:
$Id: GlobalAttributeEdit.java 10042 2006-04-11 11:28:39Z jorgeuriarte $
Author:
Jon S. Stevens

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
GlobalAttributeEdit()
           
 
Method Summary
 void doCancel(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Manages clicking of the cancel button.
 void doDeleteattribute(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Deletes attribute and its mappings after confirmation.
 boolean doDeletetransitiondata(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Deletes the transitions selected in the form.
 void doDone(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
           
 boolean doSaveattributedata(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Used on GlobalAttributeEdit.vm to modify Attribute Name/Description/Type Use doSaveoptions to modify the options.
 boolean doSaveoptions(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Used on AttributeEdit.vm to change the name of an existing AttributeOption or add a new one if the name doesn't already exist.
 boolean doSavetransitiondata(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Saves (creates or updates) transition data.
 
Methods inherited from class org.tigris.scarab.actions.base.RequireLoginFirstAction
areThereDupeSequences, 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, 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

GlobalAttributeEdit

public GlobalAttributeEdit()
Method Detail

doSaveattributedata

public boolean doSaveattributedata(org.apache.turbine.RunData data,
                                   org.apache.turbine.TemplateContext context)
                            throws java.lang.Exception
Used on GlobalAttributeEdit.vm to modify Attribute Name/Description/Type Use doSaveoptions to modify the options.

Throws:
java.lang.Exception

doDeleteattribute

public void doDeleteattribute(org.apache.turbine.RunData data,
                              org.apache.turbine.TemplateContext context)
                       throws java.lang.Exception
Deletes attribute and its mappings after confirmation.

Throws:
java.lang.Exception

doSaveoptions

public boolean doSaveoptions(org.apache.turbine.RunData data,
                             org.apache.turbine.TemplateContext context)
                      throws java.lang.Exception
Used on AttributeEdit.vm to change the name of an existing AttributeOption or add a new one if the name doesn't already exist.

Throws:
java.lang.Exception

doDone

public void doDone(org.apache.turbine.RunData data,
                   org.apache.turbine.TemplateContext context)
            throws java.lang.Exception
Overrides:
doDone in class RequireLoginFirstAction
Throws:
java.lang.Exception

doCancel

public void doCancel(org.apache.turbine.RunData data,
                     org.apache.turbine.TemplateContext context)
              throws java.lang.Exception
Manages clicking of the cancel button. FIXME! document that the doCancel method alters the database Why does it do this?!!

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

doSavetransitiondata

public boolean doSavetransitiondata(org.apache.turbine.RunData data,
                                    org.apache.turbine.TemplateContext context)
                             throws java.lang.Exception
Saves (creates or updates) transition data.

Parameters:
data -
context -
Returns:
true if the operation gets done successfuly, false otherwise
Throws:
java.lang.Exception

doDeletetransitiondata

public boolean doDeletetransitiondata(org.apache.turbine.RunData data,
                                      org.apache.turbine.TemplateContext context)
                               throws java.lang.Exception
Deletes the transitions selected in the form.

Parameters:
data -
context -
Returns:
true if the operation gets done successfuly, false otherwise
Throws:
java.lang.Exception


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