Class AbstractCapabilityType
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
-
- All Implemented Interfaces:
CapabilityType
,Comparable<CapabilityType>
- Direct Known Subclasses:
AbstractCapabilityTypeModule
,AgentEnvironmentCapabilityType
,BuilderCapabilityType
,GenericCapabilityType
,JdkCapabilityType
,KubectlCapabilityType
,PerforceCapabilityType
public abstract class AbstractCapabilityType extends Object implements CapabilityType
All subclassses should have the same implementation of equals and compareTo
-
-
Constructor Summary
Constructors Constructor Description AbstractCapabilityType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CapabilityType o)
boolean
equals(Object o)
@Nullable String
getViewTypeAction()
The action name of the list view action of this capability typeint
hashCode()
String
toString()
void
updatePlanForNewLabel(@NotNull Buildable plan, @NotNull String oldLabel, @NotNull String newLabel)
Perform custom work when the key has been updated.protected void
updateTasksForNewLabel(Buildable plan, String keyToReplace, String oldLabel, String newLabel)
-
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
getCapability, getCapabilityTypeKey, getCapabilityTypeLabel, getCapabilityTypeSpecificTaskConfigurationKey, getExtraInfo, getLabel, getNewKeyFromLabel, getSortOrder, getValueDescriptionKey, isAllowRename, validate
-
-
-
-
Method Detail
-
compareTo
public int compareTo(CapabilityType o)
- Specified by:
compareTo
in interfaceComparable<CapabilityType>
-
getViewTypeAction
@Nullable public @Nullable String getViewTypeAction()
Description copied from interface:CapabilityType
The action name of the list view action of this capability type- Specified by:
getViewTypeAction
in interfaceCapabilityType
- Returns:
-
updatePlanForNewLabel
public void updatePlanForNewLabel(@NotNull @NotNull Buildable plan, @NotNull @NotNull String oldLabel, @NotNull @NotNull String newLabel)
Description copied from interface:CapabilityType
Perform custom work when the key has been updated.- Specified by:
updatePlanForNewLabel
in interfaceCapabilityType
oldLabel
- label to replacenewLabel
- new label
-
-