Package com.atlassian.bamboo.ww2
Class BambooActionSupport
java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
- All Implemented Interfaces:
JsonStreamingAction
,ErrorCollection
,BambooSessionAware
,NavigationAware
,DomainObjectSecurityAware
,GlobalReadSecurityAware
,ReturnUrlAware
,com.atlassian.core.i18n.I18nTextProvider
,com.atlassian.struts.TextProvider
,com.atlassian.struts.ValidationAware
,com.opensymphony.xwork.ValidationAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
AboutAction
,AbstractAdminRestAction
,AbstractCreateDeploymentVersion
,AbstractDeploymentProjectConfigurationAction
,AbstractDeploymentProjectDetailsAction
,AbstractEntityPagerSupport
,AbstractJiraIssueAction
,AbstractJiraRelatedAction
,AbstractNotificationBulkAction
,AbstractPermissionAction
,AbstractPluginConfigurationAction
,AbstractRepositoryAction
,AbstractRepositoryBulkAction
,AbstractSetupAction
,AccessDeniedAction
,AdminErrorAction
,AdministerAction
,AdministerAuthors
,AgentConsoleAction
,AllBuildsRssFeedAction
,AllowLicenseUpdateOrShowExpirationInfo
,ArtifactUrlRedirectAction
,BambooAgentInstallerAction
,BambooCancellableAction
,BaseSecurityAnnotatedAction
,BuildExpiryAction
,BuildJsonProviderAction
,BulkPlanAction
,ChainResultProviderAction
,ChangeEmail
,ChangeForgottenPassword
,ChangePassword
,CloneEnvironment
,ConfigureAlias
,ConfigureCloverPlugin
,ConfigureDeploymentProjectSpecsRepositories
,ConfigureEnvironment
,ConfigureGlobalBuildHangingDetection
,ConfigureGroup
,ConfigurePage
,ConfigureProfile
,ConfigureUser
,ConfigureUserAccessTokens
,CreateAccessTokensAction
,CreateChain
,CreateDeploymentVersion
,CreateEnvironment
,CreateGroupAction
,CreateProject
,CreateSpecs
,CronExpressionGeneratorAction
,DeleteBuilds
,DeploymentProjectAuditLog
,DescribeAgentAvailability
,ErrorAction
,ErrorEventsAction
,FilterCookieWriterAction
,FiveOhOh
,ForgotPassword
,GetFingerprintAction
,GlobalAdminAction
,GotoAuthors
,ImportMavenPlanAction
,JiraRedirectAction
,ListProjects
,ListRunningInstances
,Login
,Login
,Logout
,Logout
,LogToServer
,ManualEncryptionAction
,MoveEnvironment
,PerformanceStatsAction
,PerformanceStatsJmxAction
,PlanActionSupport
,PlanStatusHistoryAction
,Profile
,ProjectActionSupport
,RemoveBuildError
,ReorderBuild
,RepositorySettingsAction
,RssFeedAction
,SecondaryNodeNotAccessibleAction
,SelectAgentsAction
,SetAgentBuildFilter
,SignupUser
,StarterAction
,StopDeployment
,SystemErrorList
,SystemInfoAction
,TestOgnlEscaping
,ViewAdministrators
,ViewAgent
,ViewAgentDetailsAction
,ViewAgentRecentBuildsSummary
,ViewAgentRecentBuildsSummary
,ViewAgents
,ViewAggregatedAuthors
,ViewAllDeploymentProjects
,ViewAllRepositories
,ViewAuthor
,ViewAuthorChart
,ViewAuthors
,ViewAuthors
,ViewBuildResultsForLabelAction
,ViewBuildResultsTable
,ViewBuildTaskTypes
,ViewDeploymentProjects
,ViewDeploymentProjectSpecs
,ViewDeploymentResult
,ViewDeploymentWebhookResponses
,ViewEnvironment
,ViewEnvironmentTaskTypes
,ViewGlobalAuditLogAction
,ViewProjectPlans
,ViewProjectRepositories
,ViewRejectedRequirements
,ViewRemoteAgentAuthentications
,ViewReport
,ViewReportChart
,ViewUserDetailsAdminAction
,ViewUserSummary
,ViewWebhookResponseDetails
,WebSudoAction
,YamlValidationAction
public class BambooActionSupport
extends com.opensymphony.xwork2.ActionSupport
implements ErrorCollection, ReturnUrlAware, BambooSessionAware, GlobalReadSecurityAware, com.atlassian.core.i18n.I18nTextProvider, NavigationAware, com.opensymphony.xwork.ValidationAware, com.atlassian.struts.ValidationAware, com.atlassian.struts.TextProvider, JsonStreamingAction
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
protected AdministrationConfigurationAccessor
protected AdministrationConfigurationManager
Deprecated.since 5.0protected AdministrationConfigurationPersister
static final String
protected BambooAuthenticationContext
protected BambooPermissionManager
protected BambooUserManager
static final String
protected BuildDefinitionManager
protected CachedPlanManager
static final String
protected CookieCutter
protected DeploymentProjectService
protected FeatureManager
static final String
static final String
protected PlanExecutionManager
protected PlanManager
protected com.atlassian.plugin.PluginAccessor
protected ProjectManager
protected com.atlassian.plugin.web.WebInterfaceManager
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addActionError
(@NotNull Exception exception) void
addActionError
(@Nullable String errorMessage) void
addActionWarning
(@Nullable String errorMessage) void
Deprecated.since 1.0 UseActionSupport.addFieldError(String, String)
insteadvoid
Adds a new form validation error with a given prefix.void
addErrorCollection
(@NotNull ErrorCollection errors) Populate this ErrorCollection with general and field-specific errors.addErrorMessage
(String message) Deprecated.since 1.0 UseaddActionError(String)
insteadaddErrorMessage
(String message, Exception e) void
addErrorMessages
(Collection<String> errorMessages) Append new error messages to those already collected.void
addFieldErrors
(@NotNull Map<String, List<String>> errors) Append new field-specific errors to those already collected.void
addHelpPanel
(String helpPanel) void
protected boolean
areCheckBoxesEmpty
(String field) protected @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject
Builds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly.buildWebPanelContext
(@NotNull String location) Builds a context suitable for renderingWebPanel
s viaFreemarkerContext.getWebPanels(String)
In the future the results of this method may be cachedboolean
canRunBuild
(ImmutablePlan plan) protected void
checkFieldXssSafety
(String fieldName, String fieldValue) protected <T extends com.opensymphony.xwork2.validator.FieldValidator>
TcreateFieldValidator
(@NotNull String fieldName, @NotNull Class<T> validatorClass, @NotNull String messageKey, @Nullable String[] messageParameters) Create WebWork's field validatorDeprecated.since 5.4 use a different method name, for example "execute"boolean
doesHelpLinkHaveMatchingTitle
(String helpKey) boolean
doesLabelKeyHaveMatchingDescription
(String labelKey) Deprecated.since 5.10 useActionSupport.execute()
insteaddoInput()
Deprecated.since 5.1 use ${#input()} instead.protected void
converts current return URL to a path rooted under context.protected @NotNull AdministrationConfiguration
Makes the current Admin configuration available to an actionprotected Bamboo
Allows access to the Bamboo container.protected BambooLicenseManager
protected BambooPermissionManager
@Nullable String
@Nullable String
boolean
getConglomerateCookieValue
(String cookieKey, String conglomerateKey) @NotNull String
getCookieValue
(String key) @Nullable String
protected Persister
Deprecated.since 5.10getDescriptionFromLabelKey
(String labelKey) @Nullable ElasticConfiguration
Deprecated.since 5.1 useActionSupport.getActionErrors()
insteadDeprecated.since 5.1 usegetFieldErrors()
insteadGet error messages, then get rid of them.@Nullable String
@NotNull com.opensymphony.webwork.dispatcher.json.JSONObject
This is default property read by webwork for webwork's result type "json".The url of the current action.@NotNull NodeLifecycleState
int
getNumberOfCurrentlyBuildingPlans
(String planKey) @Nullable ImmutableChain
com.atlassian.plugin.PluginAccessor
getRandomString
(int length) getSessionUser
(String auth) getText
(String key, String defaultValue, String[] args, com.opensymphony.xwork2.ognl.OgnlValueStack stack) Deprecated.since 5.1getText
(String key, String defaultValue, String[] args, com.opensymphony.xwork2.util.ValueStack stack) getText
(String key, String defaultValue, List args, com.opensymphony.xwork2.ognl.OgnlValueStack stack) Deprecated.since 5.1protected com.opensymphony.xwork2.TextProvider
getTexts()
getTextWithArgs
(String key, String... args) int
@Nullable com.atlassian.user.User
getUser()
protected com.opensymphony.xwork2.validator.DelegatingValidatorContext
Can be used for WebWork's validationList<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor>
getWebItemsForSection
(String sectionName) getWebPanelContext
(@NotNull String location) Returns for the context for aWebPanel
based on the location specified In the future the results of this method may be cachedList<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor>
getWebSectionsForLocation
(String location) boolean
boolean
boolean
Whether any errors (of any type - field-specific or otherwise) have been collected.boolean
boolean
hasEntityPermission
(String permission, Object object) boolean
boolean
hasGlobalPermission
(String permission) Does this user have the global permission right?boolean
hasGlobalPermission
(org.acegisecurity.acls.Permission permission) boolean
boolean
hasPlanPermission
(String permission, PlanIdentifier plan) boolean
hasPlanPermission
(String permission, String planKey) You should always prefer usinghasPlanPermission(String, PlanIdentifier)
if you have or you are about to have Plan reference.boolean
hasProjectPermission
(String permission, String projectKey) boolean
hasProjectPermission
(org.acegisecurity.acls.Permission permission, String projectKey) Does this user have the project permission right?boolean
boolean
hasResultKeyReadPermission
(ResultKey resultKey) boolean
isCheckboxSetInAction
(@NotNull String checkboxName) boolean
boolean
boolean
boolean
boolean
isSelectFieldAndNull
(String buildKeysField) boolean
renderFreemarkerTemplate
(String templateString) void
setAdministrationConfigurationAccessor
(AdministrationConfigurationAccessor administrationConfigurationAccessor) void
setAdministrationConfigurationManager
(AdministrationConfigurationManager administrationConfigurationManager) void
setAdministrationConfigurationPersister
(AdministrationConfigurationPersister administrationConfigurationPersister) void
setAuthenticationContext
(BambooAuthenticationContext authenticationContext) void
setBambooLicenseManager
(BambooLicenseManager bambooLicenseManager) void
setBambooPermissionManager
(BambooPermissionManager bambooPermissionManager) void
setBambooUserManager
(BambooUserManager bambooUserManager) void
setBuildDefinitionManager
(BuildDefinitionManager buildDefinitionManager) void
setCachedPlanManager
(CachedPlanManager cachedPlanManager) void
setChainEquiv
(String chainEquiv) void
setCheckBoxFields
(String[] checkBoxFields) void
setCookieCutter
(CookieCutter cookieCutter) void
setCurrentFormTheme
(String currentFormTheme) void
setDecorator
(String decorator) void
setDeploymentProjectService
(DeploymentProjectService deploymentProjectService) void
setDocumentationLinkProvider
(DocumentationLinkProvider documentationLinkProvider) void
setEnableJavascript
(boolean enableJavascript) void
setEnvironmentService
(EnvironmentService environmentService) void
setErrorMessages
(Collection<String> errorMessages) Deprecated.since 1.0 UseActionSupport.setActionErrors(Collection)
insteadvoid
setFeatureManager
(FeatureManager featureManager) void
setI18nBeanFactory
(I18nBeanFactory i18nBeanFactory) void
setJobEquiv
(String jobEquiv) void
setJsonator
(Jsonator jsonator) void
setLocalizedTextProvider
(com.opensymphony.xwork2.LocalizedTextProvider localizedTextProvider) void
setNavigationContext
(NavigationContext navigationContext) Set the current context for this actionvoid
setNodeLifecycleProvider
(NodeLifecycleProvider nodeLifecycleProvider) void
setPlanExecutionManager
(PlanExecutionManager planExecutionManager) void
setPlanManager
(PlanManager planManager) void
setPluginAccessor
(com.atlassian.plugin.PluginAccessor pluginAccessor) void
setProfile
(String value) void
setProjectManager
(ProjectManager projectManager) void
setReturnUrl
(String returnUrl) void
setWebInterfaceManager
(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager) void
streamJson
(JsonStream stream) toJson
(Object object, Jsonator.EnumConversionMode enumConversionMode) Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, 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
getAllErrorMessages
Methods inherited from interface com.opensymphony.xwork2.interceptor.ValidationAware
addActionMessage, addFieldError, getActionErrors, getActionMessages, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors
-
Field Details
-
CONFIRM
- See Also:
-
ACCESS_DENIED
- See Also:
-
PAGE_NOT_FOUND
- See Also:
-
PLAN_KEY_CONTEXT
- See Also:
-
BUILD_KEY_CONTEXT
- See Also:
-
AGGREGATE_URL_PATTERN
- See Also:
-
administrationConfigurationAccessor
-
administrationConfigurationManager
Deprecated.since 5.0 -
administrationConfigurationPersister
-
authenticationContext
-
bambooPermissionManager
-
bambooUserManager
-
buildDefinitionManager
-
cachedPlanManager
-
cookieCutter
-
featureManager
-
planExecutionManager
-
planManager
-
pluginAccessor
protected com.atlassian.plugin.PluginAccessor pluginAccessor -
projectManager
-
deploymentProjectService
-
webInterfaceManager
protected com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager
-
-
Constructor Details
-
BambooActionSupport
public BambooActionSupport()
-
-
Method Details
-
setProfile
-
doDefault
Deprecated.since 5.4 use a different method name, for example "execute"Default action just sends to the input- Throws:
Exception
-
getBambooSession
- Specified by:
getBambooSession
in interfaceBambooSessionAware
-
getBamboo
Allows access to the Bamboo container. Currently not injected using Spring- Returns:
- The singleton instance of
Bamboo
.
-
getUser
@Nullable public @Nullable com.atlassian.user.User getUser() -
getNodeLifecycleState
-
setNodeLifecycleProvider
-
doesLabelKeyHaveMatchingDescription
-
doesHelpLinkHaveMatchingTitle
-
getDescriptionFromLabelKey
-
hasGlobalPermission
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.
-
hasGlobalPermission
public boolean hasGlobalPermission(org.acegisecurity.acls.Permission permission) -
hasGlobalAdminPermission
public boolean hasGlobalAdminPermission() -
hasRestrictedAdminPermission
public boolean hasRestrictedAdminPermission() -
hasAdminPermission
public boolean hasAdminPermission() -
hasProjectPermission
public boolean hasProjectPermission(org.acegisecurity.acls.Permission permission, String projectKey) Does this user have the project permission right?- Parameters:
permission
- - The project permission being checked.projectKey
- - The key of the project- Returns:
true
if the current user has this permission;false
otherwise.
-
hasProjectPermission
-
hasPlanPermission
You should always prefer usinghasPlanPermission(String, PlanIdentifier)
if you have or you are about to have Plan reference. -
hasPlanPermission
-
hasEntityPermission
-
hasResultKeyReadPermission
-
isRestrictedAdminEnabled
public boolean isRestrictedAdminEnabled() -
isEnableSignup
public boolean isEnableSignup() -
getConcurrentBuildsEnabled
public boolean getConcurrentBuildsEnabled() -
getConcurrentBuildExecutionStrategyOptions
-
isViewContactDetailsEnabled
public boolean isViewContactDetailsEnabled() -
hasBuilds
public boolean hasBuilds() -
getPlan
-
getBreadCrumbs
-
setAuthenticationContext
-
forceRelativeReturnUrl
protected void forceRelativeReturnUrl()converts current return URL to a path rooted under context. -
getReturnUrl
- Specified by:
getReturnUrl
in interfaceReturnUrlAware
-
setReturnUrl
- Specified by:
setReturnUrl
in interfaceReturnUrlAware
-
getCurrentUrl
-
getCurrentSystemTime
-
getCookieValue
-
getBambooLicenseManager
-
setBambooLicenseManager
-
getBootstrapManager
-
getWebItemsForSection
-
getWebSectionsForLocation
-
renderFreemarkerTemplate
-
getWebFragmentsContextMap
-
getJsonObject
@NotNull public @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject getJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONExceptionThis is default property read by webwork for webwork's result type "json".- Returns:
- Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
- See Also:
-
- JSON Result
If descending classes need to add anything to JSON response these should override #buildJsonObject() method.
- JSON Result
-
buildJsonObject
@NotNull protected @NotNull com.opensymphony.webwork.dispatcher.json.JSONObject buildJsonObject() throws com.opensymphony.webwork.dispatcher.json.JSONExceptionBuilds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly. If descending classes need to add anything to JSON response these should override this method.- Returns:
- Initialized JSONObject
- Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
-
streamJson
public void streamJson(JsonStream stream) throws IOException, com.opensymphony.webwork.dispatcher.json.JSONException - Specified by:
streamJson
in interfaceJsonStreamingAction
- Throws:
IOException
com.opensymphony.webwork.dispatcher.json.JSONException
-
addActionError
-
addActionError
- Specified by:
addActionError
in interfacecom.opensymphony.xwork2.interceptor.ValidationAware
- Overrides:
addActionError
in classcom.opensymphony.xwork2.ActionSupport
-
hasActionWarnings
public boolean hasActionWarnings() -
getActionWarnings
-
addActionWarning
-
addError
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 interfaceErrorCollection
- Parameters:
prefix
- The prefix of the field in . formfield
- The id of the form element in errormessage
- The error message to display to the user
-
getFlushedErrorMessages
Description copied from interface:ErrorCollection
Get error messages, then get rid of them.- Specified by:
getFlushedErrorMessages
in interfaceErrorCollection
- Returns:
- The (now cleared) error messages.
-
addErrorCollection
Description copied from interface:ErrorCollection
Populate this ErrorCollection with general and field-specific errors.- Specified by:
addErrorCollection
in interfaceErrorCollection
- Parameters:
errors
- ErrorCollection whose errors/messages we obtain.
-
addErrorMessages
Description copied from interface:ErrorCollection
Append new error messages to those already collected.- Specified by:
addErrorMessages
in interfaceErrorCollection
- Parameters:
errorMessages
- Collection of error strings.
-
getErrors
Deprecated.since 5.1 usegetFieldErrors()
insteadDescription copied from interface:ErrorCollection
Get all field-specific errors.- Specified by:
getErrors
in interfaceErrorCollection
- Returns:
- Map of String: String pairs, eg. {"assignee": "Assignee is required"}
-
getErrorMessages
Deprecated.since 5.1 useActionSupport.getActionErrors()
insteadDescription copied from interface:ErrorCollection
Get all non field-specific error messages.- Specified by:
getErrorMessages
in interfaceErrorCollection
- Returns:
- Collection of error Strings.
-
addFieldErrors
Description copied from interface:ErrorCollection
Append new field-specific errors to those already collected.- Specified by:
addFieldErrors
in interfaceErrorCollection
- Parameters:
errors
- AMap
fromString
field names, toString
error messages, orCollection
s ofString
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 interfaceErrorCollection
- Returns:
true
if there are errors;false
otherwise.
-
getTotalErrors
public int getTotalErrors()- Specified by:
getTotalErrors
in interfaceErrorCollection
-
getFieldErrors
- Specified by:
getFieldErrors
in interfaceErrorCollection
- Specified by:
getFieldErrors
in interfacecom.opensymphony.xwork2.interceptor.ValidationAware
- Overrides:
getFieldErrors
in classcom.opensymphony.xwork2.ActionSupport
-
addError
Deprecated.since 1.0 UseActionSupport.addFieldError(String, String)
insteadDescription copied from interface:ErrorCollection
Add a field-specific error message.- Specified by:
addError
in interfaceErrorCollection
- Parameters:
field
- Field name, eg. "assignee"message
- Error message.
-
addErrorMessage
Deprecated.since 1.0 UseaddActionError(String)
insteadDescription copied from interface:ErrorCollection
Add error message relating to system state (not field-specific).- Specified by:
addErrorMessage
in interfaceErrorCollection
- Parameters:
message
- Error message.
-
setErrorMessages
Deprecated.since 1.0 UseActionSupport.setActionErrors(Collection)
insteadDescription copied from interface:ErrorCollection
Populate this ErrorCollection with a new set of messages (existing errors are lost).- Specified by:
setErrorMessages
in interfaceErrorCollection
- Parameters:
errorMessages
- List of error messageString
s.
-
addErrorMessage
- Specified by:
addErrorMessage
in interfaceErrorCollection
-
addIllegalArgumentException
-
setCookieCutter
-
getCookieCutter
-
setBambooPermissionManager
-
getBambooPermissionManager
-
setWebInterfaceManager
public void setWebInterfaceManager(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager) -
isSelectFieldAndNull
-
getConglomerateCookieValue
-
getDefaultPersister
Deprecated.since 5.10 -
areCheckBoxesEmpty
-
getAdministrationConfiguration
Makes the current Admin configuration available to an action- Returns:
- The admin settings
-
getBaseUrl
-
getBambooUrl
-
getBestBaseUrl
- Returns:
- returns base URL from the current request, if for some reason it's not available, falls back to the BaseURL. The URL ends with the request context and does not end with a slash. If root context is used, the last element of the URL will be the port
-
getInstanceName
-
checkFieldXssSafety
-
getValidatorContext
protected com.opensymphony.xwork2.validator.DelegatingValidatorContext getValidatorContext()Can be used for WebWork's validation- Returns:
-
createFieldValidator
@Nullable protected <T extends com.opensymphony.xwork2.validator.FieldValidator> T createFieldValidator(@NotNull @NotNull String fieldName, @NotNull @NotNull Class<T> validatorClass, @NotNull @NotNull String messageKey, @Nullable @Nullable String[] messageParameters) Create WebWork's field validator- Type Parameters:
T
- class of the created FieldValidator object- Parameters:
fieldName
- field to be validated by validatorvalidatorClass
- validator classmessageKey
- key of the error message to displaymessageParameters
- parameters to use for formatting of the error message- Returns:
- FieldValidator object or null if creation failed
-
getText
- Specified by:
getText
in interfacecom.atlassian.core.i18n.I18nTextProvider
-
getTextProvider
protected com.opensymphony.xwork2.TextProvider getTextProvider()- Overrides:
getTextProvider
in classcom.opensymphony.xwork2.ActionSupport
-
hasKey
- Specified by:
hasKey
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
hasKey
in classcom.opensymphony.xwork2.ActionSupport
-
getText
- Specified by:
getText
in interfacecom.atlassian.core.i18n.I18nTextProvider
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getTextWithArgs
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getText
- Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getText
@Deprecated public String getText(String key, String defaultValue, List args, com.opensymphony.xwork2.ognl.OgnlValueStack stack) Deprecated.since 5.1 -
getText
@Deprecated public String getText(String key, String defaultValue, String[] args, com.opensymphony.xwork2.ognl.OgnlValueStack stack) Deprecated.since 5.1 -
getText
public String getText(String key, String defaultValue, String[] args, com.opensymphony.xwork2.util.ValueStack stack) - Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getText
public String getText(String key, String defaultValue, List args, com.opensymphony.xwork2.util.ValueStack stack) - Specified by:
getText
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getText
in classcom.opensymphony.xwork2.ActionSupport
-
getTexts
- Specified by:
getTexts
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getTexts
in classcom.opensymphony.xwork2.ActionSupport
-
getTexts
- Specified by:
getTexts
in interfacecom.opensymphony.xwork2.TextProvider
- Overrides:
getTexts
in classcom.opensymphony.xwork2.ActionSupport
-
setCheckBoxFields
-
isCheckboxSetInAction
-
getChainEquiv
- Specified by:
getChainEquiv
in interfaceNavigationAware
- Returns:
- the chain equivilant url to this action (if you wish to explicitly define one)
-
setChainEquiv
-
getJobEquiv
- Specified by:
getJobEquiv
in interfaceNavigationAware
- Returns:
- the job equivilant url to this action (if you wish to explicitly define one)
-
setJobEquiv
-
getNumberOfCurrentlyBuildingPlans
- Returns:
- number of builds that are currently in the build pipeline (both queued and executing)
-
canRunBuild
- Returns:
- true if the plan can be executed at the moment, false otherwise
-
getSecuredDomainObject
- Specified by:
getSecuredDomainObject
in interfaceDomainObjectSecurityAware
-
getBambooUserManager
-
setBambooUserManager
-
getSessionUser
- Throws:
BambooRemoteException
-
isEnableJavascript
public boolean isEnableJavascript() -
setEnableJavascript
public void setEnableJavascript(boolean enableJavascript) -
getCurrentFormTheme
-
setCurrentFormTheme
-
setAdministrationConfigurationAccessor
public void setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor) -
setAdministrationConfigurationManager
public void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager) -
setAdministrationConfigurationPersister
public void setAdministrationConfigurationPersister(AdministrationConfigurationPersister administrationConfigurationPersister) -
setProjectManager
-
setEnvironmentService
-
setDeploymentProjectService
-
setBuildDefinitionManager
-
getPlanManager
-
setPlanManager
-
setCachedPlanManager
-
setPlanExecutionManager
-
setI18nBeanFactory
-
getPluginAccessor
public com.atlassian.plugin.PluginAccessor getPluginAccessor() -
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) -
getFeatureManager
-
setFeatureManager
-
setJsonator
-
getFormattedActionErrors
-
getFormattedActionMessages
-
getFormattedActionWarnings
-
getWebPanelContext
@NotNull public final @NotNull Map<String,Object> getWebPanelContext(@NotNull @NotNull String location) Returns for the context for aWebPanel
based on the location specified In the future the results of this method may be cached- Parameters:
location
-- Returns:
- context
-
getElasticConfig
-
buildWebPanelContext
@NotNull protected @NotNull Map<String,Object> buildWebPanelContext(@NotNull @NotNull String location) Builds a context suitable for renderingWebPanel
s viaFreemarkerContext.getWebPanels(String)
In the future the results of this method may be cached- Parameters:
location
-- Returns:
- context
-
setDecorator
-
isInlineDialog
public boolean isInlineDialog() -
getFieldErrorAccessTracker
-
toJson
-
toJson
-
getAvailableCategoryJson
public String getAvailableCategoryJson() throws com.opensymphony.webwork.dispatcher.json.JSONException- Throws:
com.opensymphony.webwork.dispatcher.json.JSONException
-
addHelpPanel
-
getHelpPanels
-
getRandomString
-
doExecute
Deprecated.since 5.10 useActionSupport.execute()
instead- Throws:
Exception
-
doInput
Deprecated.since 5.1 use ${#input()} instead.- Throws:
Exception
-
setDocumentationLinkProvider
-
setLocalizedTextProvider
public void setLocalizedTextProvider(com.opensymphony.xwork2.LocalizedTextProvider localizedTextProvider)
-