Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.webwork
Class AbstractAction

    java.lang.Object
      ActionSupport
          com.atlassian.bamboo.ww2.BambooActionSupport
              com.atlassian.bamboo.webwork.AbstractAction

All Implemented Interfaces:
  ErrorCollection, BambooSessionAware, ReturnUrlAware

Direct Known Subclasses:
  AbstractBuildAction, AbstractLicenseAction, AbstractPluginConfigurationAction, AdminErrorAction, AdministerAction, BuildExpiry, BuildJdkList, BuildList, BuildResultsFilterList, DeleteBuilds, EmailStrategyList, ForgotPassword, Login, Login, Profile, RepositoryList, StarterAction, SystemErrorList, SystemInfoAction, VersionAction, WelcomeWizard

    public class AbstractAction

extends BambooActionSupport

This class provides common web works action behaviour.

Field Summary

Fields inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
`buildManager, CONFIRM, cookieCutter`

Constructor Summary
`AbstractAction()`

Method Summary
`protected void` | `addFormErrors(ErrorCollection errorCollection)` Add the given errorCollection to the web work page errors
`String` | `doDefault()` Places the current user on the page
`String` | `doExecute()` Places the current user on the page
`String` | `execute()`
`Action` | `getAction()` Method used in velocity to get reference to the current action (so you can run methods on it)
`protected AdministrationConfiguration` | `getAdministrationConfiguration()` Makes the current Admin configuration available to an action
`Bamboo` | `getBamboo()` Obtain the action's Bamboo instance
`String` | `getBaseUrl()`
`void` | `setAdministrationConfiguration(AdministrationConfiguration administrationConfiguration)`
`void` | `validate()` Place the user in the page context

Methods inherited from class com.atlassian.bamboo.ww2.BambooActionSupport
`addError, addError, addErrorCollection, addErrorMessage, addErrorMessages, addErrors, addIllegalArgumentException, doesLabelKeyHaveMatchingDescription, getAsPreformattedText, getBambooSession, getBreadCrumbs, getBuildManager, getConglomerateCookieValue, getCookieCutter, getCookieValue, getCurrentUrl, getDescriptionFromLabelKey, getFlushedErrorMessages, getReturnUrl, getUser, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, hasAnyErrors, hasBuilds, hasPerm, isEnableSignup, isSelectFieldAndNull, setAuthenticationContext, setBambooPermissionManager, setBuildManager, setCookieCutter, setErrorMessages, setHtmlUtils, setReturnUrl, setWebInterfaceManager, setWebResourceManager`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
`getErrorMessages, getErrors, getFieldErrors`

Constructor Detail

### AbstractAction

    public AbstractAction()

Method Detail

### getBamboo

    public Bamboo getBamboo()

  Obtain the action's Bamboo instance

  Overrides:
    `getBamboo` in class `BambooActionSupport`
  Returns:
    Bamboo!

### getAdministrationConfiguration

    protected AdministrationConfiguration getAdministrationConfiguration()

  Makes the current Admin configuration available to an action

  Returns:
    The admin settings

### setAdministrationConfiguration

    public void setAdministrationConfiguration(AdministrationConfiguration administrationConfiguration)

### getBaseUrl

    public String getBaseUrl()

### addFormErrors

    protected void addFormErrors(ErrorCollection errorCollection)

  Add the given errorCollection to the web work page errors

  Parameters:
    `errorCollection` - Errors generated by a Bamboo component

### doDefault

    public String doDefault()
                     throws Exception

  Places the current user on the page

  Overrides:
    `doDefault` in class `BambooActionSupport`
  Returns:
    webwork success status
  Throws:
    `Exception` - something nasty went wrong

### doExecute

    public String doExecute()
                     throws Exception

  Places the current user on the page

  Returns:
    webwork success status
  Throws:
    `Exception` - something nasty went wrong

### execute

    public String execute()
                   throws Exception

  Throws:
    `Exception`

### validate

    public void validate()

  Place the user in the page context

### getAction

    public Action getAction()

  Method used in velocity to get reference to the current action (so you can run methods on it)

  Returns:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.