Class AbstractExecutableCapabilityTypeModule

All Implemented Interfaces:
InitablePluginModule, BambooPluginModule, CapabilityDefaultsHelper, CapabilityType, CapabilityTypeModule, com.atlassian.core.i18n.I18nTextProvider, Comparable<CapabilityType>
Direct Known Subclasses:
AbstractMultipleExecutableCapabilityTypeModule, SshCapabilityTypeModule

public abstract class AbstractExecutableCapabilityTypeModule extends AbstractCapabilityTypeModule implements CapabilityDefaultsHelper, com.atlassian.core.i18n.I18nTextProvider
  • Field Details

  • Constructor Details

    • AbstractExecutableCapabilityTypeModule

      public AbstractExecutableCapabilityTypeModule()
  • Method Details

    • getMandatoryCapabilityKey

      public abstract String getMandatoryCapabilityKey()
    • getExecutableKey

      public abstract String getExecutableKey()
    • getCapabilityUndefinedKey

      public abstract String getCapabilityUndefinedKey()
    • getDefaultWindowPaths

      public abstract List<String> getDefaultWindowPaths()
    • getExecutableFilename

      public abstract String getExecutableFilename()
    • getLabel

      @NotNull public @NotNull String getLabel(@NotNull @NotNull String key)
      Description copied from interface: CapabilityType
      The display label
      Specified by:
      getLabel in interface CapabilityType
      Returns:
    • validate

      @NotNull public @NotNull Map<String,String> validate(@NotNull @NotNull Map<String,String[]> params)
      Description copied from interface: CapabilityType
      Validate given an action params map.
      Specified by:
      validate in interface CapabilityType
      Returns:
      Map with errors. key = field name, value = error message
    • getParamValue

      @Nullable public static @Nullable String getParamValue(@NotNull @NotNull Map<String,String[]> params, String field)
    • getCapability

      @NotNull public @NotNull Capability getCapability(@NotNull @NotNull Map<String,String[]> params)
      Description copied from interface: CapabilityType
      Returns a new capability given the action params map
      Specified by:
      getCapability in interface CapabilityType
    • addDefaultCapabilities

      @NotNull public @NotNull CapabilitySet addDefaultCapabilities(@NotNull @NotNull CapabilitySet capabilitySet)
      Description copied from interface: CapabilityDefaultsHelper
      Adds default Capabilities for this module. Used during auto-detecting server capabilities.
      Specified by:
      addDefaultCapabilities in interface CapabilityDefaultsHelper
      Parameters:
      capabilitySet - to add the capability to
      Returns:
      the supplied capabilitySet with the new capabilities included if found, else the given capabilitySet
    • getTextProvider

      @Deprecated protected com.opensymphony.xwork2.TextProvider getTextProvider()
      Deprecated.
      since 6.8 inject your own
    • getText

      public String getText(String key)
      Specified by:
      getText in interface com.atlassian.core.i18n.I18nTextProvider
    • getText

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

      public String getText(String key, String[] args)
    • setTextProvider

      @Deprecated public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
      Deprecated.
      since 6.8 use constructor injection or annotation injection