public abstract class AbstractExecutableCapabilityTypeModule extends AbstractCapabilityTypeModule implements CapabilityDefaultsHelper, com.atlassian.core.i18n.I18nTextProvider
Modifier and Type | Field and Description |
---|---|
protected static String |
AGENT_CAPABILITY_TYPE_PREFIX |
CAPABILITY_AGENT_ENVIRONMENT_PREFIX, CAPABILITY_BUILDER_PREFIX, CAPABILITY_BUILDER_TYPE
Constructor and Description |
---|
AbstractExecutableCapabilityTypeModule() |
Modifier and Type | Method and Description |
---|---|
CapabilitySet |
addDefaultCapabilities(CapabilitySet capabilitySet)
Adds default Capabilities for this module.
|
Capability |
getCapability(Map<String,String[]> params)
Returns a new capability given the action params map
|
abstract String |
getCapabilityUndefinedKey() |
abstract List<String> |
getDefaultWindowPaths() |
abstract String |
getExecutableFilename() |
abstract String |
getExecutableKey() |
String |
getLabel(String key)
The display label
|
abstract String |
getMandatoryCapabilityKey() |
static String |
getParamValue(Map<String,String[]> params,
String field) |
String |
getText(String key) |
String |
getText(String s,
Object[] objects) |
String |
getText(String key,
String[] args) |
protected com.opensymphony.xwork2.TextProvider |
getTextProvider()
Deprecated.
since 6.8 inject your own
|
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
Map<String,String> |
validate(Map<String,String[]> params)
Validate given an action params map.
|
getCapabilityTypeKey, getCapabilityTypeLabel, getEditHtml, getExtraInfo, getNewKeyFromLabel, getSortOrder, getValueDescriptionKey, init, isAllowRename, setTemplateRenderer
compareTo, equals, getViewTypeAction, hashCode, toString, updatePlanForNewLabel, updateTasksForNewLabel
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCapabilityTypeSpecificTaskConfigurationKey, getViewTypeAction, updatePlanForNewLabel
compareTo
protected static final String AGENT_CAPABILITY_TYPE_PREFIX
public AbstractExecutableCapabilityTypeModule()
public abstract String getMandatoryCapabilityKey()
public abstract String getExecutableKey()
public abstract String getCapabilityUndefinedKey()
public abstract String getExecutableFilename()
@NotNull public String getLabel(@NotNull String key)
CapabilityType
getLabel
in interface CapabilityType
@NotNull public Map<String,String> validate(@NotNull Map<String,String[]> params)
CapabilityType
validate
in interface CapabilityType
@Nullable public static String getParamValue(@NotNull Map<String,String[]> params, String field)
@NotNull public Capability getCapability(@NotNull Map<String,String[]> params)
CapabilityType
getCapability
in interface CapabilityType
@NotNull public CapabilitySet addDefaultCapabilities(@NotNull CapabilitySet capabilitySet)
CapabilityDefaultsHelper
addDefaultCapabilities
in interface CapabilityDefaultsHelper
capabilitySet
- to add the capability to@Deprecated protected com.opensymphony.xwork2.TextProvider getTextProvider()
public String getText(String key)
getText
in interface com.atlassian.core.i18n.I18nTextProvider
public String getText(String s, Object[] objects)
getText
in interface com.atlassian.core.i18n.I18nTextProvider
@Deprecated public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.