Class PerforceCapabilityType
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
-
- com.atlassian.bamboo.v2.build.agent.capability.PerforceCapabilityType
-
- All Implemented Interfaces:
CapabilityType
,Comparable<CapabilityType>
public class PerforceCapabilityType extends AbstractCapabilityType
-
-
Field Summary
Fields Modifier and Type Field Description static String
P4_CAPABILITY_KEY
static String
P4_EXE
-
Constructor Summary
Constructors Constructor Description PerforceCapabilityType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull Capability
getCapability(@NotNull Map<String,String[]> params)
Returns a new capability given the action params map@NotNull String
getCapabilityTypeKey()
The key for the type typically lower case@NotNull String
getCapabilityTypeLabel()
Human readable version of the key@Nullable String
getExtraInfo(@NotNull String key)
Displayed after the label@NotNull String
getLabel(@NotNull String key)
The display label@NotNull String
getNewKeyFromLabel(@NotNull String oldKey, @NotNull String label)
From the key and label, return a new key.int
getSortOrder()
Specifies how early in the UI the type should be shown@Nullable String
getValueDescriptionKey(@NotNull String key, @Nullable String value)
Given the key and value, show any custom description for the valueboolean
isAllowRename()
Can you rename the key for this type@NotNull Map<String,String>
validate(@NotNull Map<String,String[]> params)
Validate given an action params map.-
Methods inherited from class com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
compareTo, equals, getViewTypeAction, hashCode, toString, updatePlanForNewLabel, updateTasksForNewLabel
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.v2.build.agent.capability.CapabilityType
getCapabilityTypeSpecificTaskConfigurationKey
-
-
-
-
Field Detail
-
P4_EXE
public static final String P4_EXE
- See Also:
- Constant Field Values
-
P4_CAPABILITY_KEY
public static final String P4_CAPABILITY_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSortOrder
public int getSortOrder()
Description copied from interface:CapabilityType
Specifies how early in the UI the type should be shown- Returns:
-
getCapabilityTypeKey
@NotNull public @NotNull String getCapabilityTypeKey()
Description copied from interface:CapabilityType
The key for the type typically lower case- Returns:
-
getCapabilityTypeLabel
@NotNull public @NotNull String getCapabilityTypeLabel()
Description copied from interface:CapabilityType
Human readable version of the key
-
getLabel
@NotNull public @NotNull String getLabel(@NotNull @NotNull String key)
Description copied from interface:CapabilityType
The display label- Returns:
-
getExtraInfo
@Nullable public @Nullable String getExtraInfo(@NotNull @NotNull String key)
Description copied from interface:CapabilityType
Displayed after the label- Returns:
-
getValueDescriptionKey
@Nullable public @Nullable String getValueDescriptionKey(@NotNull @NotNull String key, @Nullable @Nullable String value)
Description copied from interface:CapabilityType
Given the key and value, show any custom description for the value- Returns:
-
isAllowRename
public boolean isAllowRename()
Description copied from interface:CapabilityType
Can you rename the key for this type- Returns:
-
getNewKeyFromLabel
@NotNull public @NotNull String getNewKeyFromLabel(@NotNull @NotNull String oldKey, @NotNull @NotNull String label)
Description copied from interface:CapabilityType
From the key and label, return a new key. This is used in the rename process- 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.- Returns:
- Map with errors. key = field name, value = error message
-
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
-
-