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:
  • Field Details

  • Constructor Details

    • BambooActionSupport

      public BambooActionSupport()
  • Method Details

    • setProfile

      public void setProfile(String value)
    • doDefault

      @Deprecated public String doDefault() throws Exception
      Deprecated.
      since 5.4 use a different method name, for example "execute"
      Default action just sends to the input
      Throws:
      Exception
    • getBambooSession

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

      protected Bamboo 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: UserAware
      Returns 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.

      Specified by:
      getUser in interface UserAware
      Returns:
      the authenticated user, or null if the request is anonymous or no user is currently authenticated
    • getNodeLifecycleState

      @NotNull public @NotNull NodeLifecycleState getNodeLifecycleState()
    • setNodeLifecycleProvider

      public void setNodeLifecycleProvider(NodeLifecycleProvider nodeLifecycleProvider)
    • doesLabelKeyHaveMatchingDescription

      @TemplateAccessible public boolean doesLabelKeyHaveMatchingDescription(String labelKey)
    • doesHelpLinkHaveMatchingTitle

      @TemplateAccessible public boolean doesHelpLinkHaveMatchingTitle(String helpKey)
    • getDescriptionFromLabelKey

      @TemplateAccessible public String getDescriptionFromLabelKey(String labelKey)
    • hasGlobalPermission

      public boolean hasGlobalPermission(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.
    • 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

      public boolean hasProjectPermission(String permission, String projectKey)
    • hasPlanPermission

      @TemplateAccessible public boolean hasPlanPermission(String permission, String planKey)
      You should always prefer using hasPlanPermission(String, PlanIdentifier) if you have, or you are about to have Plan reference.
    • hasPlanPermission

      @TemplateAccessible public boolean hasPlanPermission(String permission, PlanIdentifier plan)
    • hasEntityPermission

      @TemplateAccessible public boolean hasEntityPermission(String permission, Object object)
    • hasResultKeyReadPermission

      @TemplateAccessible public boolean hasResultKeyReadPermission(ResultKey resultKey)
    • isRestrictedAdminEnabled

      public boolean isRestrictedAdminEnabled()
    • isEnableSignup

      public boolean isEnableSignup()
    • getConcurrentBuildsEnabled

      public boolean getConcurrentBuildsEnabled()
    • getConcurrentBuildExecutionStrategyOptions

      public List<String> getConcurrentBuildExecutionStrategyOptions()
    • isViewContactDetailsEnabled

      @TemplateAccessible public boolean isViewContactDetailsEnabled()
    • hasBuilds

      public boolean hasBuilds()
    • getPlan

      @Nullable @TemplateAccessible public @Nullable ImmutableChain getPlan(String planKey)
    • getBreadCrumbs

      public Collection<BreadCrumb> getBreadCrumbs()
    • setAuthenticationContext

      public void setAuthenticationContext(BambooAuthenticationContext authenticationContext)
    • forceRelativeReturnUrl

      protected void forceRelativeReturnUrl()
      converts current return URL to a path rooted under context.
    • getReturnUrl

      public String getReturnUrl()
      Specified by:
      getReturnUrl in interface ReturnUrlAware
    • setReturnUrl

      public void setReturnUrl(String returnUrl)
      Specified by:
      setReturnUrl in interface ReturnUrlAware
    • getCurrentUrl

      @Nullable public @Nullable String getCurrentUrl()
    • getCurrentSystemTime

      public Long getCurrentSystemTime()
    • getCookieValue

      @NotNull public @NotNull String getCookieValue(String key)
    • getBambooLicenseManager

      protected BambooLicenseManager getBambooLicenseManager()
    • setBambooLicenseManager

      public void setBambooLicenseManager(BambooLicenseManager bambooLicenseManager)
    • getBootstrapManager

      public BootstrapManager getBootstrapManager()
    • getWebItemsForSection

      @TemplateAccessible public List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getWebItemsForSection(String sectionName)
    • getWebSectionsForLocation

      @TemplateAccessible public List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> getWebSectionsForLocation(String location)
    • renderFreemarkerTemplate

      @TemplateAccessible public String renderFreemarkerTemplate(String templateString)
    • getWebFragmentsContextMap

      public Map<String,Object> getWebFragmentsContextMap()
    • getJsonObject

      @NotNull public @NotNull org.json.JSONObject getJsonObject() throws org.json.JSONException
      This 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.JSONException
      Builds 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

      public void streamJson(JsonStream stream) throws IOException, org.json.JSONException
      Specified by:
      streamJson in interface JsonStreamingAction
      Throws:
      IOException
      org.json.JSONException
    • addActionError

      protected void addActionError(@NotNull @NotNull Exception exception)
    • addActionError

      public void addActionError(@Nullable @Nullable String errorMessage)
      Specified by:
      addActionError in interface org.apache.struts2.interceptor.ValidationAware
      Overrides:
      addActionError in class org.apache.struts2.ActionSupport
    • hasActionWarnings

      @TemplateAccessible public boolean hasActionWarnings()
    • getActionWarnings

      @NotNull public @NotNull List<String> getActionWarnings()
    • addActionWarning

      public void addActionWarning(@Nullable @Nullable String errorMessage)
    • addError

      public void addError(String prefix, String field, 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
    • getActionErrors

      public Collection<String> getActionErrors()
      Specified by:
      getActionErrors in interface org.apache.struts2.interceptor.ValidationAware
      Overrides:
      getActionErrors in class org.apache.struts2.ActionSupport
    • addErrorCollection

      public void addErrorCollection(@NotNull @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(Collection<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.
    • getErrors

      @Deprecated public Map<String,List<String>> getErrors()
      Deprecated.
      since 5.1 use getFieldErrors() instead
      Description copied from interface: ErrorCollection
      Get all field-specific errors.
      Specified by:
      getErrors in interface ErrorCollection
      Returns:
      Map of String: String pairs, eg. {"assignee": "Assignee is required"}
    • getErrorMessages

      @Deprecated public Collection<String> getErrorMessages()
      Deprecated.
      since 5.1 use getActionErrors() instead
      Description copied from interface: ErrorCollection
      Get all non field-specific error messages.
      Specified by:
      getErrorMessages in interface ErrorCollection
      Returns:
      Collection of error Strings.
    • addFieldErrors

      public void addFieldErrors(@NotNull @NotNull Map<String,List<String>> errors)
      Description copied from interface: ErrorCollection
      Append new field-specific errors to those already collected.
      Specified by:
      addFieldErrors in interface ErrorCollection
      Parameters:
      errors - A Map from String field names, to String error messages, or Collections of String error messages.
    • hasAnyErrors

      @TemplateAccessible 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

      @TemplateAccessible public int getTotalErrors()
      Specified by:
      getTotalErrors in interface ErrorCollection
    • getFieldErrors

      @TemplateAccessible public Map<String,List<String>> getFieldErrors()
      Specified by:
      getFieldErrors in interface ErrorCollection
      Specified by:
      getFieldErrors in interface org.apache.struts2.interceptor.ValidationAware
      Overrides:
      getFieldErrors in class org.apache.struts2.ActionSupport
    • addError

      @Deprecated public void addError(String field, 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 String addErrorMessage(String message)
      Deprecated.
      since 1.0 Use 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(Collection<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 String addErrorMessage(String message, Exception e)
      Specified by:
      addErrorMessage in interface ErrorCollection
    • addIllegalArgumentException

      public void addIllegalArgumentException(String field, IllegalArgumentException e)
    • setCookieCutter

      public void setCookieCutter(CookieCutter cookieCutter)
    • getCookieCutter

      public CookieCutter getCookieCutter()
    • setBambooPermissionManager

      public void setBambooPermissionManager(BambooPermissionManager bambooPermissionManager)
    • getBambooPermissionManager

      protected BambooPermissionManager getBambooPermissionManager()
    • setWebInterfaceManager

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

      public boolean isSelectFieldAndNull(String buildKeysField)
    • getConglomerateCookieValue

      @TemplateAccessible public String getConglomerateCookieValue(String cookieKey, String conglomerateKey)
    • getDefaultPersister

      @Deprecated protected Persister getDefaultPersister()
      Deprecated.
      since 5.10
    • areCheckBoxesEmpty

      protected boolean areCheckBoxesEmpty(String field)
    • getAdministrationConfiguration

      @NotNull protected @NotNull AdministrationConfiguration getAdministrationConfiguration()
      Makes the current Admin configuration available to an action
      Returns:
      The admin settings
    • getBaseUrl

      @Nullable public @Nullable String getBaseUrl()
    • getBambooUrl

      public BambooUrl getBambooUrl()
    • getBestBaseUrl

      @Nullable public @Nullable String 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

      @Nullable public @Nullable String getInstanceName()
    • checkFieldXssSafety

      protected void checkFieldXssSafety(String fieldName, String fieldValue)
    • 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 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 String getText(String s, Object[] objects)
      Specified by:
      getText in interface com.atlassian.core.i18n.I18nTextProvider
    • getTextProvider

      protected org.apache.struts2.text.TextProvider getTextProvider()
      Overrides:
      getTextProvider in class org.apache.struts2.ActionSupport
    • hasKey

      public boolean hasKey(String key)
      Specified by:
      hasKey in interface org.apache.struts2.text.TextProvider
      Overrides:
      hasKey in class org.apache.struts2.ActionSupport
    • getText

      @TemplateAccessible public String getText(String key)
      Specified by:
      getText in interface com.atlassian.core.i18n.I18nTextProvider
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getText

      @TemplateAccessible public String getText(String key, List args)
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getTextWithArgs

      @TemplateAccessible public String getTextWithArgs(String key, String... args)
    • getText

      public String getText(String key, String defaultValue)
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getText

      public String getText(String key, String defaultValue, String obj)
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getText

      public String getText(String key, String[] args)
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getText

      public String getText(String key, String defaultValue, List args)
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getText

      public String getText(String key, String defaultValue, String[] args)
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getText

      public String getText(String key, String defaultValue, String[] args, org.apache.struts2.util.ValueStack stack)
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getText

      public String getText(String key, String defaultValue, List args, org.apache.struts2.util.ValueStack stack)
      Specified by:
      getText in interface org.apache.struts2.text.TextProvider
      Overrides:
      getText in class org.apache.struts2.ActionSupport
    • getTexts

      public ResourceBundle getTexts(String bundleName)
      Specified by:
      getTexts in interface org.apache.struts2.text.TextProvider
      Overrides:
      getTexts in class org.apache.struts2.ActionSupport
    • getTexts

      public ResourceBundle getTexts()
      Specified by:
      getTexts in interface org.apache.struts2.text.TextProvider
      Overrides:
      getTexts in class org.apache.struts2.ActionSupport
    • setCheckBoxFields

      public void setCheckBoxFields(String[] checkBoxFields)
    • getCheckBoxFields

      public Set<String> getCheckBoxFields()
    • isCheckboxSetInAction

      public boolean isCheckboxSetInAction(@NotNull @NotNull String checkboxName)
    • getNavigationUrl

      public String getNavigationUrl()
      Description copied from interface: NavigationAware
      The url of the current action.
      Specified by:
      getNavigationUrl in interface NavigationAware
      Returns:
    • getChainEquiv

      public 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(String chainEquiv)
    • getJobEquiv

      public 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(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
      Parameters:
      navigationContext -
    • getNavigationContext

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

      @TemplateAccessible public int getNumberOfCurrentlyBuildingPlans(String planKey)
      Returns:
      number of builds that are currently in the build pipeline (both queued and executing)
    • canRunBuild

      @TemplateAccessible public boolean canRunBuild(ImmutablePlan plan)
      Returns:
      true if the plan can be executed at the moment, false otherwise
    • getSecuredDomainObject

      public Object getSecuredDomainObject()
      Specified by:
      getSecuredDomainObject in interface DomainObjectSecurityAware
    • getBambooUserManager

      public BambooUserManager getBambooUserManager()
    • setBambooUserManager

      public void setBambooUserManager(BambooUserManager bambooUserManager)
    • getSessionUser

      public BambooUser getSessionUser(String auth) throws BambooRemoteException
      Throws:
      BambooRemoteException
    • isEnableJavascript

      public boolean isEnableJavascript()
    • setEnableJavascript

      public void setEnableJavascript(boolean enableJavascript)
    • getCurrentFormTheme

      public String getCurrentFormTheme()
    • setCurrentFormTheme

      @TemplateAccessible public void setCurrentFormTheme(String currentFormTheme)
    • setAdministrationConfigurationAccessor

      public void setAdministrationConfigurationAccessor(AdministrationConfigurationAccessor administrationConfigurationAccessor)
    • setAdministrationConfigurationManager

      public void setAdministrationConfigurationManager(AdministrationConfigurationManager administrationConfigurationManager)
    • setAdministrationConfigurationPersister

      public void setAdministrationConfigurationPersister(AdministrationConfigurationPersister administrationConfigurationPersister)
    • setProjectManager

      public void setProjectManager(ProjectManager projectManager)
    • setCachedEnvironmentService

      public void setCachedEnvironmentService(CachedEnvironmentService cachedEnvironmentService)
    • setDeploymentProjectService

      public void setDeploymentProjectService(DeploymentProjectService deploymentProjectService)
    • setBuildDefinitionManager

      public void setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
    • getPlanManager

      public PlanManager getPlanManager()
    • setPlanManager

      public void setPlanManager(PlanManager planManager)
    • setCachedPlanManager

      public void setCachedPlanManager(CachedPlanManager cachedPlanManager)
    • setPlanExecutionManager

      public void setPlanExecutionManager(PlanExecutionManager planExecutionManager)
    • setI18nBeanFactory

      public void setI18nBeanFactory(I18nBeanFactory i18nBeanFactory)
    • getPluginAccessor

      public com.atlassian.plugin.PluginAccessor getPluginAccessor()
    • setPluginAccessor

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

      public FeatureManager getFeatureManager()
    • setFeatureManager

      public void setFeatureManager(FeatureManager featureManager)
    • setJsonator

      public void setJsonator(Jsonator jsonator)
    • getFormattedActionErrors

      @TemplateAccessible public Collection<String> getFormattedActionErrors()
    • getFormattedActionMessages

      @TemplateAccessible public List<String> getFormattedActionMessages()
    • getFormattedActionWarnings

      @TemplateAccessible public List<String> getFormattedActionWarnings()
    • getWebPanelContext

      @NotNull public final @NotNull Map<String,Object> getWebPanelContext(@NotNull @NotNull 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
    • getElasticConfig

      @Nullable public @Nullable ElasticConfiguration getElasticConfig()
    • buildWebPanelContext

      @NotNull protected @NotNull Map<String,Object> buildWebPanelContext(@NotNull @NotNull 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
    • setDecorator

      public void setDecorator(String decorator)
    • getDecorator

      public String getDecorator()
    • isInlineDialog

      public boolean isInlineDialog()
    • getFieldErrorAccessTracker

      public Set<String> getFieldErrorAccessTracker()
    • toJson

      @TemplateAccessible public String toJson(Object object)
    • toJson

      public String toJson(Object object, Jsonator.EnumConversionMode enumConversionMode)
    • getAvailableCategoryJson

      public String getAvailableCategoryJson() throws org.json.JSONException
      Throws:
      org.json.JSONException
    • addHelpPanel

      public void addHelpPanel(String helpPanel)
    • getHelpPanels

      public final List<Map<String,Object>> getHelpPanels()
    • getRandomString

      public String getRandomString(int length)
    • doExecute

      @Deprecated public String doExecute() throws Exception
      Deprecated.
      since 5.10 use ActionSupport.execute() instead
      Throws:
      Exception
    • doInput

      @Deprecated public String doInput() throws Exception
      Deprecated.
      since 5.1 use ${#input()} instead.
      Throws:
      Exception
    • setDocumentationLinkProvider

      public void setDocumentationLinkProvider(DocumentationLinkProvider documentationLinkProvider)
    • setLocalizedTextProvider

      public void setLocalizedTextProvider(org.apache.struts2.text.LocalizedTextProvider localizedTextProvider)