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, 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, AbstractSetupAction, AccessDeniedAction, AdminErrorAction, AdministerAction, AgentJsonProvider, AllBuildsRssFeedAction, AllowLicenseUpdateOrShowExpirationInfo, BambooAgentInstallerAction, BuildExpiryAction, BuildJsonProviderAction, BuildList, BulkPlanAction, ChainJsonProviderAction, ChangeForgottenPassword, ChangePassword, ConfigureAlias, ConfigureAutoFavouriteAction, ConfigureCloverPlugin, ConfigureGlobalBuildHangingDetection, ConfigureGroup, ConfigureProfile, ConfigureUser, CreateChain, CreateTopLevelPlan, DeleteBuilds, ErrorAction, ExecuteBuild, FilterCookieWriterAction, FiveOhOh, ForgotPassword, GetBambooBuildNumber, GetFingerprintAction, GetLatestBuildResults, GetLatestBuildResultsForProject, GetLatestBuildsByUser, GetLatestUserBuilds, GetProjectDetails, GetRecentlyCompletedBuildResultsForBuild, GetRecentlyCompletedBuildResultsForProject, GlobalAdminAction, GotoAuthors, ImportMavenPlanAction, ListBuildNames, ListProjectNames, ListRunningInstances, Login, Login, Logout, Logout, LogToServer, PlanActionSupport, Profile, RssFeedAction, SetAgentBuildFilter, SignupUser, StarterAction, SystemErrorList, SystemInfoAction, UpdateCvsModuleBulkAction, UpdateCvsRootCredentialsBulkAction, UpdateSvnCredentialsBulkAction, UpdateSvnUrlBulkAction, UpdateWebUrlBulkAction, ViewAdministrators, ViewAgent, ViewAgentDetailsAction, ViewAgents, 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

See Also:
Serialized Form

Nested Class Summary
static class BambooActionSupport.JSONStatus
           
 
Field Summary
protected  AdministrationConfigurationManager administrationConfigurationManager
           
protected  BambooPermissionManager bambooPermissionManager
           
protected  BuildDefinitionManager buildDefinitionManager
           
protected  BuildManager buildManager
           
protected  CommentManager commentManager
           
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. 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. 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  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()
           
 BuildManager getBuildManager()
           
 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.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.Collection<java.lang.String> getFormattedErrorMessages()
          Deprecated. 
 java.lang.String getInstanceName()
           
 com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject()
          This is default property read by webwork for webwork's result type "json".
 int getNumberOfCurrentlyBuildingPlans(java.lang.String planKey)
           
 TopLevelPlan getPlan(java.lang.String planKey)
           
 PlanManager getPlanManager()
           
 java.lang.String getReturnUrl()
           
 java.lang.Object getSecuredDomainObject()
           
 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)
           
 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.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 setBuildManager(BuildManager buildManager)
           
 void setCheckBoxFields(java.lang.String[] checkBoxFields)
           
 void setCommentManager(CommentManager commentManager)
           
 void setCookieCutter(CookieCutter cookieCutter)
           
 void setDashboardCachingManager(DashboardCachingManager dashboardCachingManager)
           
 void setEnableJavascript(boolean enableJavascript)
           
 void setErrorMessages(java.util.Collection<java.lang.String> errorMessages)
          Deprecated. Use ActionSupport.setActionErrors(Collection) instead
 void setI18nBeanFactory(I18nBeanFactory i18nBeanFactory)
           
 void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
           
 void setPlanManager(PlanManager planManager)
           
 void setProjectManager(ProjectManager projectManager)
           
 void setReturnUrl(java.lang.String returnUrl)
           
 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

buildManager

protected BuildManager buildManager

buildDefinitionManager

protected BuildDefinitionManager buildDefinitionManager

projectManager

protected ProjectManager projectManager

bambooPermissionManager

protected BambooPermissionManager bambooPermissionManager

administrationConfigurationManager

protected AdministrationConfigurationManager administrationConfigurationManager

dashboardCachingManager

protected DashboardCachingManager dashboardCachingManager

planExecutionManager

protected PlanExecutionManager planExecutionManager

commentManager

protected CommentManager commentManager
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()

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

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

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

public void addError(java.lang.String field,
                     java.lang.String message)
Deprecated. 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

public void addErrorMessage(java.lang.String message)
Deprecated. 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

public void setErrorMessages(java.util.Collection<java.lang.String> errorMessages)
Deprecated. 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()

setBuildManager

public void setBuildManager(BuildManager buildManager)

getBuildManager

public BuildManager getBuildManager()

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

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)

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)

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)

setCommentManager

public void setCommentManager(CommentManager commentManager)

getFormattedActionErrors

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

getFormattedErrorMessages

@Deprecated
public java.util.Collection<java.lang.String> getFormattedErrorMessages()
Deprecated. 



Copyright © 2010 Atlassian. All Rights Reserved.