org.tigris.scarab.actions.admin
Class GlobalArtifactTypeCreate

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

public class GlobalArtifactTypeCreate
extends RequireLoginFirstAction

This class deals with modifying Global Artifact Types.

Version:
$Id: GlobalArtifactTypeCreate.java 9255 2004-11-14 21:07:04Z dep4b $
Author:
Elicia David

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
GlobalArtifactTypeCreate()
           
 
Method Summary
 AttributeGroup doCreatenewgroup(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Creates new attribute group.
 void doCreatenewuserattribute(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Redirects to create new user attribute screen.
 void doDeletegroup(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Deletes an attribute group.
 void doDeleteuserattribute(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Unmaps attributes to issue types.
 void doDone(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Manages clicking of the AllDone button
 void doGotoothertemplate(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Overridden method to check for system defined issue types and prevent New attributes from being added to them.
 boolean doSavegroups(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Adds or modifies an issue type's attribute groups.
 boolean doSaveinfo(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          creates or edits global artifact type
 boolean doSaveuserattributes(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Adds or modifies user attributes' properties
 void doSelectuserattribute(org.apache.turbine.RunData data, org.apache.turbine.TemplateContext context)
          Selects attribute to add to issue type.
 
Methods inherited from class org.tigris.scarab.actions.base.RequireLoginFirstAction
areThereDupeSequences, doCancel, doGonext, 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

GlobalArtifactTypeCreate

public GlobalArtifactTypeCreate()
Method Detail

doSaveinfo

public boolean doSaveinfo(org.apache.turbine.RunData data,
                          org.apache.turbine.TemplateContext context)
                   throws java.lang.Exception
creates or edits global artifact type

Throws:
java.lang.Exception

doSavegroups

public boolean doSavegroups(org.apache.turbine.RunData data,
                            org.apache.turbine.TemplateContext context)
                     throws java.lang.Exception
Adds or modifies an issue type's attribute groups.

Throws:
java.lang.Exception

doCreatenewuserattribute

public void doCreatenewuserattribute(org.apache.turbine.RunData data,
                                     org.apache.turbine.TemplateContext context)
                              throws java.lang.Exception
Redirects to create new user attribute screen.

Throws:
java.lang.Exception

doCreatenewgroup

public AttributeGroup doCreatenewgroup(org.apache.turbine.RunData data,
                                       org.apache.turbine.TemplateContext context)
                                throws java.lang.Exception
Creates new attribute group.

Throws:
java.lang.Exception

doDeletegroup

public void doDeletegroup(org.apache.turbine.RunData data,
                          org.apache.turbine.TemplateContext context)
                   throws java.lang.Exception
Deletes an attribute group.

Throws:
java.lang.Exception

doSelectuserattribute

public void doSelectuserattribute(org.apache.turbine.RunData data,
                                  org.apache.turbine.TemplateContext context)
                           throws java.lang.Exception
Selects attribute to add to issue type.

Throws:
java.lang.Exception

doDeleteuserattribute

public void doDeleteuserattribute(org.apache.turbine.RunData data,
                                  org.apache.turbine.TemplateContext context)
                           throws java.lang.Exception
Unmaps attributes to issue types.

Throws:
java.lang.Exception

doSaveuserattributes

public boolean doSaveuserattributes(org.apache.turbine.RunData data,
                                    org.apache.turbine.TemplateContext context)
                             throws java.lang.Exception
Adds or modifies user attributes' properties

Throws:
java.lang.Exception

doDone

public void doDone(org.apache.turbine.RunData data,
                   org.apache.turbine.TemplateContext context)
            throws java.lang.Exception
Manages clicking of the AllDone button

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

doGotoothertemplate

public void doGotoothertemplate(org.apache.turbine.RunData data,
                                org.apache.turbine.TemplateContext context)
                         throws java.lang.Exception
Overridden method to check for system defined issue types and prevent New attributes from being added to them.

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


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