com.atlassian.bamboo.ww2
Class BambooActionSupport

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.bamboo.ww2.BambooActionSupport
All Implemented Interfaces:
ErrorCollection, BambooSessionAware, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.core.i18n.I18nTextProvider, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AbstractAdminRestAction, AbstractEntityPagerSupport, AbstractJiraRelatedAction, AbstractNotificationBulkAction, AbstractPluginConfigurationAction, AbstractRepositoryBulkAction, AbstractSetupAction, AccessDeniedAction, AdminErrorAction, AdministerAction, AgentJsonProvider, AllBuildsRssFeedAction, AllowLicenseUpdateOrShowExpirationInfo, BambooAgentInstallerAction, BuildExpiryAction, BuildJsonProviderAction, BuildList, BulkPlanAction, ChainJsonProviderAction, ChangeForgottenPassword, ChangePassword, ConfigureAlias, ConfigureCloverPlugin, ConfigureGlobalBuildHangingDetection, ConfigureGroup, ConfigureProfile, ConfigureUser, CreateChain, CronExpressionGeneratorAction, DeleteBuilds, ErrorAction, ExecuteBuild, FilterCookieWriterAction, FiveOhOh, ForgotPassword, GetBambooBuildNumber, GetFingerprintAction, GetLatestBuildResults, GetLatestBuildResultsForProject, GetLatestBuildsByUser, GetLatestUserBuilds, GetProjectDetails, GetRecentlyCompletedBuildResultsForBuild, GetRecentlyCompletedBuildResultsForProject, GiveBamboonsFeedback, GlobalAdminAction, GotoAuthors, ImportMavenPlanAction, JiraRedirectAction, ListBuildNames, ListProjectNames, ListRunningInstances, Login, Login, Logout, Logout, LogToServer, ManageCachesAction, PlanActionSupport, Profile, RssFeedAction, SetAgentBuildFilter, SignupUser, StarterAction, SystemErrorList, SystemInfoAction, ViewAdministrators, ViewAgent, ViewAgentDetailsAction, ViewAgents, ViewAggregatedAuthors, ViewAuthor, ViewAuthorChart, ViewAuthors, ViewBuildResultsForLabelAction, ViewBuildResultsTable, ViewGlobalAuditLogAction, ViewPlanUpdates, ViewProject, ViewReport, ViewReportChart, ViewUserSummary

public class BambooActionSupport
extends com.opensymphony.xwork.ActionSupport
implements ErrorCollection, ReturnUrlAware, BambooSessionAware, GlobalReadSecurityAware, com.atlassian.core.i18n.I18nTextProvider, NavigationAware

See Also:
Serialized Form

Nested Class Summary
static class BambooActionSupport.JSONStatus
           
 
Field Summary
protected  AdministrationConfigurationManager administrationConfigurationManager
           
protected  BambooPermissionManager bambooPermissionManager
           
protected  BambooUserManager bambooUserManager
           
protected  BuildDefinitionManager buildDefinitionManager
           
static java.lang.String CONFIRM
           
protected  CookieCutter cookieCutter
           
protected  DashboardCachingManager dashboardCachingManager
           
protected  PlanExecutionManager planExecutionManager
           
protected  PlanManager planManager
           
protected  ProjectManager projectManager
           
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
BambooActionSupport()
           
 
Method Summary
 void addError(java.lang.String field, java.lang.String message)
          Deprecated. since 1.0 Use ActionSupport.addFieldError(String, String) instead
 void addError(java.lang.String prefix, java.lang.String field, java.lang.String message)
          Adds a new form validation error with a given prefix.
 void addErrorCollection(ErrorCollection errors)
          Populate this ErrorCollection with general and field-specific errors.
 void addErrorMessage(java.lang.String message)
          Deprecated. since 1.0 Use ActionSupport.addActionError(String) instead
 java.lang.String addErrorMessage(java.lang.String message, java.lang.Exception e)
           
 void addErrorMessages(java.util.Collection<java.lang.String> errorMessages)
          Append new error messages to those already collected.
 void addErrors(java.util.Map<java.lang.String,?> errors)
          Append new field-specific errors to those already collected.
 void addIllegalArgumentException(java.lang.String field, java.lang.IllegalArgumentException e)
           
protected  boolean areCheckBoxesEmpty(java.lang.String field)
           
protected  com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject()
          Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly.
protected  java.util.Map<java.lang.String,java.lang.Object> buildWebPanelContext(java.lang.String location)
          Builds a context suitable for rendering WebPanels via FreemarkerContext.getWebPanels(String) In the future the results of this method may be cached
protected  void checkFieldXssSafety(java.lang.String fieldName, java.lang.String fieldValue)
           
protected
<T extends com.opensymphony.xwork.validator.FieldValidator>
T
createFieldValidator(java.lang.String fieldName, java.lang.Class<T> validatorClass, java.lang.String messageKey, java.lang.String[] messageParameters)
          Create WebWork's field validator
 java.lang.String doDefault()
          Default action just sends to the input
 boolean doesHelpLinkHaveMatchingTitle(java.lang.String helpKey)
           
 boolean doesLabelKeyHaveMatchingDescription(java.lang.String labelKey)
           
 java.lang.String doExecute()
          Places the current user on the page
 java.lang.String execute()
           
protected  AdministrationConfiguration getAdministrationConfiguration()
          Makes the current Admin configuration available to an action
protected  Bamboo getBamboo()
          Allows access to the Bamboo container.
 BambooLicenseManager getBambooLicenseManager()
           
 BambooPermissionManager getBambooPermissionManager()
           
 BambooSession getBambooSession()
           
 BambooUserManager getBambooUserManager()
           
 java.lang.String getBaseUrl()
           
 BootstrapManager getBootstrapManager()
           
 java.util.Collection<BreadCrumb> getBreadCrumbs()
           
 java.lang.String getChainEquiv()
           
 boolean getConcurrentBuildsEnabled()
           
 java.lang.String getConglomerateCookieValue(java.lang.String cookieKey, java.lang.String conglomerateKey)
           
 CookieCutter getCookieCutter()
           
 java.lang.String getCookieValue(java.lang.String key)
           
 java.lang.String getCurrentFormTheme()
           
 java.lang.Long getCurrentSystemTime()
           
static java.lang.String getCurrentUrl()
           
protected  Persister getDefaultPersister()
           
 java.lang.String getDescriptionFromLabelKey(java.lang.String labelKey)
           
 java.util.Collection<java.lang.String> getFlushedErrorMessages()
          Get error messages, then get rid of them.
 java.util.Collection<java.lang.String> getFormattedActionErrors()
           
 java.util.List<java.lang.String> getFormattedActionMessages()
           
 java.util.Collection<java.lang.String> getFormattedErrorMessages()
          Deprecated. since 3.0 use #getFormattedActionErrors
 java.lang.String getInstanceName()
           
 java.lang.String getJobEquiv()
           
 com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
          This is default property read by webwork for webwork's result type "json".
 NavigationContext getNavigationContext()
           
 java.lang.String getNavigationUrl()
          The url of the current action.
 int getNumberOfCurrentlyBuildingPlans(java.lang.String planKey)
           
 TopLevelPlan getPlan(java.lang.String planKey)
           
 PlanManager getPlanManager()
           
 com.atlassian.plugin.PluginAccessor getPluginAccessor()
           
 java.lang.String getReturnUrl()
           
 java.lang.Object getSecuredDomainObject()
           
 ServerLifecycleState getServerLifecycleState()
           
 BambooUser getSessionUser(java.lang.String auth)
           
 java.lang.String getText(java.lang.String key)
           
 java.lang.String getText(java.lang.String key, java.util.List args)
           
 java.lang.String getText(java.lang.String s, java.lang.Object[] objects)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue)
           
 java.lang.String getText(java.lang.String key, java.lang.String[] args)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue, java.util.List args)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue, java.util.List args, com.opensymphony.xwork.util.OgnlValueStack stack)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue, java.lang.String obj)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue, java.lang.String[] args)
           
 java.lang.String getText(java.lang.String key, java.lang.String defaultValue, java.lang.String[] args, com.opensymphony.xwork.util.OgnlValueStack stack)
           
 java.util.ResourceBundle getTexts()
           
 java.util.ResourceBundle getTexts(java.lang.String bundleName)
           
 java.lang.String getTextWithArgs(java.lang.String key, java.lang.String... args)
           
 int getTotalErrors()
           
 com.atlassian.user.User getUser()
           
protected  com.opensymphony.xwork.validator.DelegatingValidatorContext getValidatorContext()
          Can be used for WebWork's validation
 java.util.Map<java.lang.String,java.lang.Object> getWebFragmentsContextMap()
           
 java.util.List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForSection(java.lang.String sectionName)
           
 java.util.Map<java.lang.String,java.lang.Object> getWebPanelContext(java.lang.String location)
          Returns for the context for a WebPanel based on the location specified In the future the results of this method may be cached
 java.util.List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> getWebSectionsForLocation(java.lang.String location)
           
 boolean hasAdminPermission()
           
 boolean hasAnyErrors()
          Whether any errors (of any type - field-specific or otherwise) have been collected.
 boolean hasBuilds()
           
 boolean hasGlobalAdminPermission()
           
 boolean hasGlobalPermission(java.lang.String permission)
          Does this user have the global permission right?
 boolean hasKey(java.lang.String key)
           
 boolean hasPlanPermission(java.lang.String permission, Plan plan)
           
 boolean hasPlanPermission(java.lang.String permission, java.lang.String buildKey)
           
 boolean hasRestrictedAdminPermission()
           
 boolean isCheckboxSetInAction(java.lang.String checkboxName)
           
 boolean isEnableJavascript()
           
 boolean isEnableSignup()
           
 boolean isRestrictedAdminEnabled()
           
 boolean isSelectFieldAndNull(java.lang.String buildKeysField)
           
 java.lang.String renderFreemarkerTemplate(java.lang.String templateString)
           
 void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)
           
 void setAuthenticationContext(BambooAuthenticationContext authenticationContext)
           
 void setBambooLicenseManager(BambooLicenseManager bambooLicenseManager)
           
 void setBambooPermissionManager(BambooPermissionManager bambooPermissionManager)
           
 void setBambooUserManager(BambooUserManager bambooUserManager)
           
 void setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
           
 void setChainEquiv(java.lang.String chainEquiv)
           
 void setCheckBoxFields(java.lang.String[] checkBoxFields)
           
 void setCookieCutter(CookieCutter cookieCutter)
           
 void setCurrentFormTheme(java.lang.String currentFormTheme)
           
 void setDashboardCachingManager(DashboardCachingManager dashboardCachingManager)
           
 void setEnableJavascript(boolean enableJavascript)
           
 void setErrorMessages(java.util.Collection<java.lang.String> errorMessages)
          Deprecated. since 1.0 Use ActionSupport.setActionErrors(Collection) instead
 void setI18nBeanFactory(I18nBeanFactory i18nBeanFactory)
           
 void setJobEquiv(java.lang.String jobEquiv)
           
 void setNavigationContext(NavigationContext navigationContext)
          Set the current context for this action
 void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
           
 void setPlanManager(PlanManager planManager)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setProjectManager(ProjectManager projectManager)
           
 void setReturnUrl(java.lang.String returnUrl)
           
 void setServerLifecycleProvider(ServerLifecycleProvider serverLifecycleProvider)
           
 void setWebInterfaceManager(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
           
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getErrorMessages, getErrors, getFieldErrors
 

Field Detail

CONFIRM

public static final java.lang.String CONFIRM
See Also:
Constant Field Values

cookieCutter

protected CookieCutter cookieCutter

planManager

protected PlanManager planManager

buildDefinitionManager

protected BuildDefinitionManager buildDefinitionManager

projectManager

protected ProjectManager projectManager

bambooPermissionManager

protected BambooPermissionManager bambooPermissionManager

administrationConfigurationManager

protected AdministrationConfigurationManager administrationConfigurationManager

dashboardCachingManager

protected DashboardCachingManager dashboardCachingManager

bambooUserManager

protected BambooUserManager bambooUserManager

planExecutionManager

protected PlanExecutionManager planExecutionManager
Constructor Detail

BambooActionSupport

public BambooActionSupport()
Method Detail

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Default action just sends to the input

Overrides:
doDefault in class com.opensymphony.xwork.ActionSupport
Returns:
Throws:
java.lang.Exception

getBambooSession

public BambooSession getBambooSession()
Specified by:
getBambooSession in interface BambooSessionAware

getBamboo

protected Bamboo getBamboo()
Allows access to the Bamboo container. Currently not injected using Spring

Returns:
The singleton instance of Bamboo.

getUser

@Nullable
public com.atlassian.user.User getUser()

getServerLifecycleState

@NotNull
public ServerLifecycleState getServerLifecycleState()

setServerLifecycleProvider

public void setServerLifecycleProvider(ServerLifecycleProvider serverLifecycleProvider)

doesLabelKeyHaveMatchingDescription

public boolean doesLabelKeyHaveMatchingDescription(java.lang.String labelKey)

doesHelpLinkHaveMatchingTitle

public boolean doesHelpLinkHaveMatchingTitle(java.lang.String helpKey)

getDescriptionFromLabelKey

public java.lang.String getDescriptionFromLabelKey(java.lang.String labelKey)

hasGlobalPermission

public boolean hasGlobalPermission(java.lang.String permission)
Does this user have the global permission right?

Parameters:
permission - - The global permission being checked.
Returns:
true if the current user has this permission; false otherwise.

hasGlobalAdminPermission

public boolean hasGlobalAdminPermission()

hasRestrictedAdminPermission

public boolean hasRestrictedAdminPermission()

hasAdminPermission

public boolean hasAdminPermission()

hasPlanPermission

public boolean hasPlanPermission(java.lang.String permission,
                                 java.lang.String buildKey)

hasPlanPermission

public boolean hasPlanPermission(java.lang.String permission,
                                 Plan plan)

isRestrictedAdminEnabled

public boolean isRestrictedAdminEnabled()

isEnableSignup

public boolean isEnableSignup()

getConcurrentBuildsEnabled

public boolean getConcurrentBuildsEnabled()

hasBuilds

public boolean hasBuilds()

getPlan

@Nullable
public TopLevelPlan getPlan(java.lang.String planKey)

getBreadCrumbs

public java.util.Collection<BreadCrumb> getBreadCrumbs()

setAuthenticationContext

public void setAuthenticationContext(BambooAuthenticationContext authenticationContext)

getReturnUrl

public java.lang.String getReturnUrl()
Specified by:
getReturnUrl in interface ReturnUrlAware

setReturnUrl

public void setReturnUrl(java.lang.String returnUrl)
Specified by:
setReturnUrl in interface ReturnUrlAware

getCurrentUrl

@Nullable
public static java.lang.String getCurrentUrl()

getCurrentSystemTime

public java.lang.Long getCurrentSystemTime()

getCookieValue

@NotNull
public java.lang.String getCookieValue(java.lang.String key)

getBambooLicenseManager

public BambooLicenseManager getBambooLicenseManager()

setBambooLicenseManager

public void setBambooLicenseManager(BambooLicenseManager bambooLicenseManager)

getBootstrapManager

public BootstrapManager getBootstrapManager()

getWebItemsForSection

public java.util.List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForSection(java.lang.String sectionName)

getWebSectionsForLocation

public java.util.List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> getWebSectionsForLocation(java.lang.String location)

renderFreemarkerTemplate

public java.lang.String renderFreemarkerTemplate(java.lang.String templateString)

getWebFragmentsContextMap

public java.util.Map<java.lang.String,java.lang.Object> getWebFragmentsContextMap()

getJsonObject

@NotNull
public com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
                                                                  throws com.opensymphony.webwork.dispatcher.json.JSONException
This is default property read by webwork for webwork's result type "json".

Returns:
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
See Also:
JSON Result

buildJsonObject

@NotNull
protected com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject()
                                                                       throws com.opensymphony.webwork.dispatcher.json.JSONException
Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly.

Returns:
Initialized JSONObject
Throws:
com.opensymphony.webwork.dispatcher.json.JSONException

addError

public void addError(java.lang.String prefix,
                     java.lang.String field,
                     java.lang.String message)
Description copied from interface: ErrorCollection
Adds a new form validation error with a given prefix. ie. prefix of "builder.ant" and field "target" will result in a key of "builder.ant.target"

Specified by:
addError in interface ErrorCollection
Parameters:
prefix - The prefix of the field in . form
field - The id of the form element in error
message - The error message to display to the user

getFlushedErrorMessages

public java.util.Collection<java.lang.String> getFlushedErrorMessages()
Description copied from interface: ErrorCollection
Get error messages, then get rid of them.

Specified by:
getFlushedErrorMessages in interface ErrorCollection
Returns:
The (now cleared) error messages.

addErrorCollection

public void addErrorCollection(@NotNull
                               ErrorCollection errors)
Description copied from interface: ErrorCollection
Populate this ErrorCollection with general and field-specific errors.

Specified by:
addErrorCollection in interface ErrorCollection
Parameters:
errors - ErrorCollection whose errors/messages we obtain.

addErrorMessages

public void addErrorMessages(java.util.Collection<java.lang.String> errorMessages)
Description copied from interface: ErrorCollection
Append new error messages to those already collected.

Specified by:
addErrorMessages in interface ErrorCollection
Parameters:
errorMessages - Collection of error strings.

addErrors

public void addErrors(java.util.Map<java.lang.String,?> errors)
Description copied from interface: ErrorCollection
Append new field-specific errors to those already collected.

Specified by:
addErrors in interface ErrorCollection
Parameters:
errors - A Map from String field names, to String error messages, or Collections of String error messages.

hasAnyErrors

public boolean hasAnyErrors()
Description copied from interface: ErrorCollection
Whether any errors (of any type - field-specific or otherwise) have been collected.

Specified by:
hasAnyErrors in interface ErrorCollection
Returns:
true if there are errors; false otherwise.

getTotalErrors

public int getTotalErrors()
Specified by:
getTotalErrors in interface ErrorCollection

addError

@Deprecated
public void addError(java.lang.String field,
                                java.lang.String message)
Deprecated. since 1.0 Use ActionSupport.addFieldError(String, String) instead

Description copied from interface: ErrorCollection
Add a field-specific error message.

Specified by:
addError in interface ErrorCollection
Parameters:
field - Field name, eg. "assignee"
message - Error message.

addErrorMessage

@Deprecated
public void addErrorMessage(java.lang.String message)
Deprecated. since 1.0 Use ActionSupport.addActionError(String) instead

Description copied from interface: ErrorCollection
Add error message relating to system state (not field-specific).

Specified by:
addErrorMessage in interface ErrorCollection
Parameters:
message - Error message.

setErrorMessages

@Deprecated
public void setErrorMessages(java.util.Collection<java.lang.String> errorMessages)
Deprecated. since 1.0 Use ActionSupport.setActionErrors(Collection) instead

Description copied from interface: ErrorCollection
Populate this ErrorCollection with a new set of messages (existing errors are lost).

Specified by:
setErrorMessages in interface ErrorCollection
Parameters:
errorMessages - List of error message Strings.

addErrorMessage

public java.lang.String addErrorMessage(java.lang.String message,
                                        java.lang.Exception e)
Specified by:
addErrorMessage in interface ErrorCollection

addIllegalArgumentException

public void addIllegalArgumentException(java.lang.String field,
                                        java.lang.IllegalArgumentException e)

setCookieCutter

public void setCookieCutter(CookieCutter cookieCutter)

getCookieCutter

public CookieCutter getCookieCutter()

setBambooPermissionManager

public void setBambooPermissionManager(BambooPermissionManager bambooPermissionManager)

getBambooPermissionManager

public BambooPermissionManager getBambooPermissionManager()

setWebInterfaceManager

public void setWebInterfaceManager(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)

isSelectFieldAndNull

public boolean isSelectFieldAndNull(java.lang.String buildKeysField)

getConglomerateCookieValue

public java.lang.String getConglomerateCookieValue(java.lang.String cookieKey,
                                                   java.lang.String conglomerateKey)

getDefaultPersister

protected Persister getDefaultPersister()

areCheckBoxesEmpty

protected boolean areCheckBoxesEmpty(java.lang.String field)

getAdministrationConfiguration

@Nullable
protected AdministrationConfiguration getAdministrationConfiguration()
Makes the current Admin configuration available to an action

Returns:
The admin settings

getBaseUrl

@Nullable
public java.lang.String getBaseUrl()

getInstanceName

@Nullable
public java.lang.String getInstanceName()

checkFieldXssSafety

protected void checkFieldXssSafety(java.lang.String fieldName,
                                   java.lang.String fieldValue)

getValidatorContext

protected com.opensymphony.xwork.validator.DelegatingValidatorContext getValidatorContext()
Can be used for WebWork's validation

Returns:

createFieldValidator

@Nullable
protected <T extends com.opensymphony.xwork.validator.FieldValidator> T createFieldValidator(@NotNull
                                                                                                      java.lang.String fieldName,
                                                                                                      @NotNull
                                                                                                      java.lang.Class<T> validatorClass,
                                                                                                      @NotNull
                                                                                                      java.lang.String messageKey,
                                                                                                      @Nullable
                                                                                                      java.lang.String[] messageParameters)
Create WebWork's field validator

Type Parameters:
T - class of the created FieldValidator object
Parameters:
fieldName - field to be validated by validator
validatorClass - validator class
messageKey - key of the error message to display
messageParameters - parameters to use for formatting of the error message
Returns:
FieldValidator object or null if creation failed

getText

public java.lang.String getText(java.lang.String s,
                                java.lang.Object[] objects)
Specified by:
getText in interface com.atlassian.core.i18n.I18nTextProvider

hasKey

public boolean hasKey(java.lang.String key)
Specified by:
hasKey in interface com.opensymphony.xwork.TextProvider
Overrides:
hasKey in class com.opensymphony.xwork.ActionSupport

getText

public java.lang.String getText(java.lang.String key)
Specified by:
getText in interface com.atlassian.core.i18n.I18nTextProvider
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue)
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue,
                                java.lang.String obj)
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getText

public java.lang.String getText(java.lang.String key,
                                java.util.List args)
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String[] args)
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getTextWithArgs

public java.lang.String getTextWithArgs(java.lang.String key,
                                        java.lang.String... args)

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue,
                                java.util.List args)
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue,
                                java.lang.String[] args)
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue,
                                java.util.List args,
                                com.opensymphony.xwork.util.OgnlValueStack stack)
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getText

public java.lang.String getText(java.lang.String key,
                                java.lang.String defaultValue,
                                java.lang.String[] args,
                                com.opensymphony.xwork.util.OgnlValueStack stack)
Specified by:
getText in interface com.opensymphony.xwork.TextProvider
Overrides:
getText in class com.opensymphony.xwork.ActionSupport

getTexts

public java.util.ResourceBundle getTexts(java.lang.String bundleName)
Specified by:
getTexts in interface com.opensymphony.xwork.TextProvider
Overrides:
getTexts in class com.opensymphony.xwork.ActionSupport

getTexts

public java.util.ResourceBundle getTexts()
Specified by:
getTexts in interface com.opensymphony.xwork.TextProvider
Overrides:
getTexts in class com.opensymphony.xwork.ActionSupport

doExecute

public java.lang.String doExecute()
                           throws java.lang.Exception
Places the current user on the page

Returns:
webwork success status
Throws:
java.lang.Exception - something nasty went wrong

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
java.lang.Exception

setCheckBoxFields

public void setCheckBoxFields(java.lang.String[] checkBoxFields)

isCheckboxSetInAction

public boolean isCheckboxSetInAction(@NotNull
                                     java.lang.String checkboxName)

getNavigationUrl

public java.lang.String getNavigationUrl()
Description copied from interface: NavigationAware
The url of the current action.

Specified by:
getNavigationUrl in interface NavigationAware
Returns:

getChainEquiv

public java.lang.String getChainEquiv()
Specified by:
getChainEquiv in interface NavigationAware
Returns:
the chain equivilant url to this action (if you wish to explicitly define one)

setChainEquiv

public void setChainEquiv(java.lang.String chainEquiv)

getJobEquiv

public java.lang.String getJobEquiv()
Specified by:
getJobEquiv in interface NavigationAware
Returns:
the job equivilant url to this action (if you wish to explicitly define one)

setJobEquiv

public void setJobEquiv(java.lang.String jobEquiv)

setNavigationContext

public void setNavigationContext(NavigationContext navigationContext)
Description copied from interface: NavigationAware
Set the current context for this action

Specified by:
setNavigationContext in interface NavigationAware

getNavigationContext

public NavigationContext getNavigationContext()
Specified by:
getNavigationContext in interface NavigationAware
Returns:
the context for this action

getNumberOfCurrentlyBuildingPlans

public int getNumberOfCurrentlyBuildingPlans(java.lang.String planKey)
Returns:
number of builds that are currently in the build pipeline (both queued and executing)

getSecuredDomainObject

public java.lang.Object getSecuredDomainObject()
Specified by:
getSecuredDomainObject in interface DomainObjectSecurityAware

setDashboardCachingManager

public void setDashboardCachingManager(DashboardCachingManager dashboardCachingManager)

getBambooUserManager

public BambooUserManager getBambooUserManager()

setBambooUserManager

public void setBambooUserManager(BambooUserManager bambooUserManager)

getSessionUser

public BambooUser getSessionUser(java.lang.String auth)
                          throws BambooRemoteException
Throws:
BambooRemoteException

isEnableJavascript

public boolean isEnableJavascript()

setEnableJavascript

public void setEnableJavascript(boolean enableJavascript)

getCurrentFormTheme

public java.lang.String getCurrentFormTheme()

setCurrentFormTheme

public void setCurrentFormTheme(java.lang.String currentFormTheme)

setAdministrationConfigurationManager

public void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)

setProjectManager

public void setProjectManager(ProjectManager projectManager)

setBuildDefinitionManager

public void setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)

getPlanManager

public PlanManager getPlanManager()

setPlanManager

public void setPlanManager(PlanManager planManager)

setPlanExecutionManager

public void setPlanExecutionManager(PlanExecutionManager planExecutionManager)

setI18nBeanFactory

public final void setI18nBeanFactory(I18nBeanFactory i18nBeanFactory)

getPluginAccessor

public com.atlassian.plugin.PluginAccessor getPluginAccessor()

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)

getFormattedActionErrors

public java.util.Collection<java.lang.String> getFormattedActionErrors()

getFormattedActionMessages

public java.util.List<java.lang.String> getFormattedActionMessages()

getFormattedErrorMessages

@Deprecated
public java.util.Collection<java.lang.String> getFormattedErrorMessages()
Deprecated. since 3.0 use #getFormattedActionErrors

Returns:
list of formatted action error messages

getWebPanelContext

@NotNull
public final java.util.Map<java.lang.String,java.lang.Object> getWebPanelContext(@NotNull
                                                                                         java.lang.String location)
Returns for the context for a WebPanel based on the location specified In the future the results of this method may be cached

Parameters:
location -
Returns:
context

buildWebPanelContext

@NotNull
protected java.util.Map<java.lang.String,java.lang.Object> buildWebPanelContext(@NotNull
                                                                                        java.lang.String location)
Builds a context suitable for rendering WebPanels via FreemarkerContext.getWebPanels(String) In the future the results of this method may be cached

Parameters:
location -
Returns:
context


Copyright © 2011 Atlassian. All Rights Reserved.