Package com.atlassian.bamboo.ww2
Class BambooActionSupport
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
- All Implemented Interfaces:
JsonStreamingAction,ErrorCollection,BambooSessionAware,NavigationAware,DomainObjectSecurityAware,GlobalReadSecurityAware,ReturnUrlAware,UserAware,com.atlassian.core.i18n.I18nTextProvider,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
- 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,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,Login,Login,Logout,Logout,LogToServer,ManualEncryptionAction,MoveEnvironment,OgnlBlockListAction,PerformanceStatsAction,PerformanceStatsJmxAction,PlanActionSupport,PlanStatusHistoryAction,Profile,ProjectActionSupport,RemoveBuildError,ReorderBuild,RepositorySettingsAction,RssFeedAction,SecondaryNodeNotAccessibleAction,SelectAgentsAction,SignupUser,StarterAction,StopDeployment,StrutsAction,SystemErrorList,SystemInfoAction,TestOgnlEscaping,VelocityAction,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,XWorkAction,YamlValidationAction
public class BambooActionSupport
extends org.apache.struts2.ActionSupport
implements ErrorCollection, ReturnUrlAware, BambooSessionAware, GlobalReadSecurityAware, com.atlassian.core.i18n.I18nTextProvider, NavigationAware, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.text.TextProvider, JsonStreamingAction, UserAware
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected AdministrationConfigurationAccessorprotected AdministrationConfigurationManagerDeprecated.since 5.0protected AdministrationConfigurationPersisterstatic final Stringprotected BambooAuthenticationContextprotected BambooPermissionManagerprotected BambooUserManagerstatic final Stringprotected BuildDefinitionManagerprotected CachedPlanManagerstatic final Stringprotected CookieCutterprotected DeploymentProjectServiceprotected FeatureManagerstatic final Stringstatic final Stringprotected PlanExecutionManagerprotected PlanManagerprotected com.atlassian.plugin.PluginAccessorprotected ProjectManagerprotected com.atlassian.plugin.web.WebInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddActionError(@NotNull Exception exception) voidaddActionError(@Nullable String errorMessage) voidaddActionWarning(@Nullable String errorMessage) voidDeprecated.since 1.0 UseActionSupport.addFieldError(String, String)insteadvoidAdds 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"voidaddErrorCollection(@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) voidaddErrorMessages(Collection<String> errorMessages) Append new error messages to those already collected.voidaddFieldErrors(@NotNull Map<String, List<String>> errors) Append new field-specific errors to those already collected.voidaddHelpPanel(String helpPanel) voidprotected booleanareCheckBoxesEmpty(String field) protected @NotNull org.json.JSONObjectBuilds JSONObject and sets 'status', 'errors' and 'fieldErrors' properties accordingly.buildWebPanelContext(@NotNull String location) Builds a context suitable for renderingWebPanels viaFreemarkerContext.getWebPanels(String)In the future the results of this method may be cachedbooleancanRunBuild(ImmutablePlan plan) protected voidcheckFieldXssSafety(String fieldName, String fieldValue) protected <T extends org.apache.struts2.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"booleandoesHelpLinkHaveMatchingTitle(String helpKey) booleandoesLabelKeyHaveMatchingDescription(String labelKey) Deprecated.since 5.10 useActionSupport.execute()insteaddoInput()Deprecated.since 5.1 use ${#input()} instead.protected voidconverts current return URL to a path rooted under context.protected @NotNull AdministrationConfigurationMakes the current Admin configuration available to an actionprotected BambooAllows access to the Bamboo container. śCurrently, not injected using Springprotected BambooLicenseManagerprotected BambooPermissionManager@Nullable String@Nullable StringbooleangetConglomerateCookieValue(String cookieKey, String conglomerateKey) @NotNull StringgetCookieValue(String key) @Nullable Stringprotected PersisterDeprecated.since 5.10getDescriptionFromLabelKey(String labelKey) @Nullable ElasticConfigurationDeprecated.since 5.1 usegetActionErrors()insteadDeprecated.since 5.1 usegetFieldErrors()instead@Nullable String@NotNull org.json.JSONObjectThis is default property read by webwork for webwork's result type "json".The url of the current action.@NotNull NodeLifecycleStateintgetNumberOfCurrentlyBuildingPlans(String planKey) @Nullable ImmutableChaincom.atlassian.plugin.PluginAccessorgetRandomString(int length) getSessionUser(String auth) protected org.apache.struts2.text.TextProvidergetTexts()getTextWithArgs(String key, String... args) int@Nullable com.atlassian.user.UsergetUser()Returns the currently authenticated user performing this action.protected org.apache.struts2.validator.DelegatingValidatorContextCan be used for WebWork's validationList<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForSection(String sectionName) getWebPanelContext(@NotNull String location) Returns for the context for aWebPanelbased on the location specified In the future the results of this method may be cachedList<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> getWebSectionsForLocation(String location) booleanbooleanbooleanWhether any errors (of any type - field-specific or otherwise) have been collected.booleanbooleanhasEntityPermission(String permission, Object object) booleanbooleanhasGlobalPermission(String permission) Does this user have the global permission right?booleanhasGlobalPermission(org.acegisecurity.acls.Permission permission) booleanbooleanhasPlanPermission(String permission, PlanIdentifier plan) booleanhasPlanPermission(String permission, String planKey) You should always prefer usinghasPlanPermission(String, PlanIdentifier)if you have, or you are about to have Plan reference.booleanhasProjectPermission(String permission, String projectKey) booleanhasProjectPermission(org.acegisecurity.acls.Permission permission, String projectKey) Does this user have the project permission right?booleanbooleanhasResultKeyReadPermission(ResultKey resultKey) booleanisCheckboxSetInAction(@NotNull String checkboxName) booleanbooleanbooleanbooleanbooleanisSelectFieldAndNull(String buildKeysField) booleanrenderFreemarkerTemplate(String templateString) voidsetAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor) voidsetAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager) voidsetAdministrationConfigurationPersister(AdministrationConfigurationPersister administrationConfigurationPersister) voidsetAuthenticationContext(BambooAuthenticationContext authenticationContext) voidsetBambooLicenseManager(BambooLicenseManager bambooLicenseManager) voidsetBambooPermissionManager(BambooPermissionManager bambooPermissionManager) voidsetBambooUserManager(BambooUserManager bambooUserManager) voidsetBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager) voidsetCachedEnvironmentService(CachedEnvironmentService cachedEnvironmentService) voidsetCachedPlanManager(CachedPlanManager cachedPlanManager) voidsetChainEquiv(String chainEquiv) voidsetCheckBoxFields(String[] checkBoxFields) voidsetCookieCutter(CookieCutter cookieCutter) voidsetCurrentFormTheme(String currentFormTheme) voidsetDecorator(String decorator) voidsetDeploymentProjectService(DeploymentProjectService deploymentProjectService) voidsetDocumentationLinkProvider(DocumentationLinkProvider documentationLinkProvider) voidsetEnableJavascript(boolean enableJavascript) voidsetErrorMessages(Collection<String> errorMessages) Deprecated.since 1.0 UseActionSupport.setActionErrors(Collection)insteadvoidsetFeatureManager(FeatureManager featureManager) voidsetI18nBeanFactory(I18nBeanFactory i18nBeanFactory) voidsetJobEquiv(String jobEquiv) voidsetJsonator(Jsonator jsonator) voidsetLocalizedTextProvider(org.apache.struts2.text.LocalizedTextProvider localizedTextProvider) voidsetNavigationContext(NavigationContext navigationContext) Set the current context for this actionvoidsetNodeLifecycleProvider(NodeLifecycleProvider nodeLifecycleProvider) voidsetPlanExecutionManager(PlanExecutionManager planExecutionManager) voidsetPlanManager(PlanManager planManager) voidsetPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) voidsetProfile(String value) voidsetProjectManager(ProjectManager projectManager) voidsetReturnUrl(String returnUrl) voidsetWebInterfaceManager(com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager) voidstreamJson(JsonStream stream) toJson(Object object, Jsonator.EnumConversionMode enumConversionMode) Methods inherited from class org.apache.struts2.ActionSupport
addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionMessages, getContainer, getFormatted, getLocale, getLocaleProvider, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validateMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.utils.error.ErrorCollection
getAllErrorMessagesMethods inherited from interface org.apache.struts2.interceptor.ValidationAware
addActionMessage, addFieldError, 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:
getBambooSessionin interfaceBambooSessionAware
-
getBambooContainer
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()Description copied from interface:UserAwareReturns the currently authenticated user performing this action.The user is typically obtained from the current authentication context and represents the principal who initiated the request.
-
getNodeLifecycleState
-
setNodeLifecycleProvider
-
doesLabelKeyHaveMatchingDescription
-
doesHelpLinkHaveMatchingTitle
-
getDescriptionFromLabelKey
-
hasGlobalPermission
Does this user have the global permission right?- Parameters:
permission- - The global permission being checked.- Returns:
trueif the current user has this permission;falseotherwise.
-
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:
trueif the current user has this permission;falseotherwise.
-
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
@TemplateAccessible 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:
getReturnUrlin interfaceReturnUrlAware
-
setReturnUrl
- Specified by:
setReturnUrlin interfaceReturnUrlAware
-
getCurrentUrl
-
getCurrentSystemTime
-
getCookieValue
-
getBambooLicenseManager
-
setBambooLicenseManager
-
getBootstrapManager
-
getWebItemsForSection
-
getWebSectionsForLocation
-
renderFreemarkerTemplate
-
getWebFragmentsContextMap
-
getJsonObject
@NotNull public @NotNull org.json.JSONObject getJsonObject() throws org.json.JSONExceptionThis is default property read by webwork for webwork's result type "json".- Returns:
- Throws:
org.json.JSONException- See Also:
-
buildJsonObject
@NotNull protected @NotNull org.json.JSONObject buildJsonObject() throws org.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:
org.json.JSONException
-
streamJson
- Specified by:
streamJsonin interfaceJsonStreamingAction- Throws:
IOExceptionorg.json.JSONException
-
addActionError
-
addActionError
- Specified by:
addActionErrorin interfaceorg.apache.struts2.interceptor.ValidationAware- Overrides:
addActionErrorin classorg.apache.struts2.ActionSupport
-
hasActionWarnings
@TemplateAccessible public boolean hasActionWarnings() -
getActionWarnings
-
addActionWarning
-
addError
Description copied from interface:ErrorCollectionAdds 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:
addErrorin 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
-
getActionErrors
- Specified by:
getActionErrorsin interfaceorg.apache.struts2.interceptor.ValidationAware- Overrides:
getActionErrorsin classorg.apache.struts2.ActionSupport
-
addErrorCollection
Description copied from interface:ErrorCollectionPopulate this ErrorCollection with general and field-specific errors.- Specified by:
addErrorCollectionin interfaceErrorCollection- Parameters:
errors- ErrorCollection whose errors/messages we obtain.
-
addErrorMessages
Description copied from interface:ErrorCollectionAppend new error messages to those already collected.- Specified by:
addErrorMessagesin interfaceErrorCollection- Parameters:
errorMessages- Collection of error strings.
-
getErrors
Deprecated.since 5.1 usegetFieldErrors()insteadDescription copied from interface:ErrorCollectionGet all field-specific errors.- Specified by:
getErrorsin interfaceErrorCollection- Returns:
- Map of String: String pairs, eg. {"assignee": "Assignee is required"}
-
getErrorMessages
Deprecated.since 5.1 usegetActionErrors()insteadDescription copied from interface:ErrorCollectionGet all non field-specific error messages.- Specified by:
getErrorMessagesin interfaceErrorCollection- Returns:
- Collection of error Strings.
-
addFieldErrors
Description copied from interface:ErrorCollectionAppend new field-specific errors to those already collected.- Specified by:
addFieldErrorsin interfaceErrorCollection- Parameters:
errors- AMapfromStringfield names, toStringerror messages, orCollections ofStringerror messages.
-
hasAnyErrors
@TemplateAccessible public boolean hasAnyErrors()Description copied from interface:ErrorCollectionWhether any errors (of any type - field-specific or otherwise) have been collected.- Specified by:
hasAnyErrorsin interfaceErrorCollection- Returns:
trueif there are errors;falseotherwise.
-
getTotalErrors
@TemplateAccessible public int getTotalErrors()- Specified by:
getTotalErrorsin interfaceErrorCollection
-
getFieldErrors
- Specified by:
getFieldErrorsin interfaceErrorCollection- Specified by:
getFieldErrorsin interfaceorg.apache.struts2.interceptor.ValidationAware- Overrides:
getFieldErrorsin classorg.apache.struts2.ActionSupport
-
addError
Deprecated.since 1.0 UseActionSupport.addFieldError(String, String)insteadDescription copied from interface:ErrorCollectionAdd a field-specific error message.- Specified by:
addErrorin interfaceErrorCollection- Parameters:
field- Field name, eg. "assignee"message- Error message.
-
addErrorMessage
Deprecated.since 1.0 UseaddActionError(String)insteadDescription copied from interface:ErrorCollectionAdd error message relating to system state (not field-specific).- Specified by:
addErrorMessagein interfaceErrorCollection- Parameters:
message- Error message.
-
setErrorMessages
Deprecated.since 1.0 UseActionSupport.setActionErrors(Collection)insteadDescription copied from interface:ErrorCollectionPopulate this ErrorCollection with a new set of messages (existing errors are lost).- Specified by:
setErrorMessagesin interfaceErrorCollection- Parameters:
errorMessages- List of error messageStrings.
-
addErrorMessage
- Specified by:
addErrorMessagein 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 org.apache.struts2.validator.DelegatingValidatorContext getValidatorContext()Can be used for WebWork's validation- Returns:
-
createFieldValidator
@Nullable protected <T extends org.apache.struts2.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:
getTextin interfacecom.atlassian.core.i18n.I18nTextProvider
-
getTextProvider
protected org.apache.struts2.text.TextProvider getTextProvider()- Overrides:
getTextProviderin classorg.apache.struts2.ActionSupport
-
hasKey
- Specified by:
hasKeyin interfaceorg.apache.struts2.text.TextProvider- Overrides:
hasKeyin classorg.apache.struts2.ActionSupport
-
getText
- Specified by:
getTextin interfacecom.atlassian.core.i18n.I18nTextProvider- Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getText
- Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getTextWithArgs
-
getText
- Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getText
- Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getText
- Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getText
- Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getText
- Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getText
public String getText(String key, String defaultValue, String[] args, org.apache.struts2.util.ValueStack stack) - Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getText
public String getText(String key, String defaultValue, List args, org.apache.struts2.util.ValueStack stack) - Specified by:
getTextin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextin classorg.apache.struts2.ActionSupport
-
getTexts
- Specified by:
getTextsin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextsin classorg.apache.struts2.ActionSupport
-
getTexts
- Specified by:
getTextsin interfaceorg.apache.struts2.text.TextProvider- Overrides:
getTextsin classorg.apache.struts2.ActionSupport
-
setCheckBoxFields
-
getCheckBoxFields
-
isCheckboxSetInAction
-
getChainEquiv
- Specified by:
getChainEquivin interfaceNavigationAware- Returns:
- the chain equivilant url to this action (if you wish to explicitly define one)
-
setChainEquiv
-
getJobEquiv
- Specified by:
getJobEquivin 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:
getSecuredDomainObjectin 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
-
setCachedEnvironmentService
-
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 aWebPanelbased 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 renderingWebPanels viaFreemarkerContext.getWebPanels(String)In the future the results of this method may be cached- Parameters:
location-- Returns:
- context
-
setDecorator
-
getDecorator
-
isInlineDialog
public boolean isInlineDialog() -
getFieldErrorAccessTracker
-
toJson
-
toJson
-
getAvailableCategoryJson
- Throws:
org.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(org.apache.struts2.text.LocalizedTextProvider localizedTextProvider)
-