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 intcompareTo(CapabilityType o)booleanequals(Object o)@Nullable StringgetViewTypeAction()The action name of the list view action of this capability typeinthashCode()StringtoString()voidupdatePlanForNewLabel(@NotNull Buildable plan, @NotNull String oldLabel, @NotNull String newLabel)Perform custom work when the key has been updated.protected voidupdateTasksForNewLabel(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:
compareToin interfaceComparable<CapabilityType>
-
getViewTypeAction
@Nullable public @Nullable String getViewTypeAction()
Description copied from interface:CapabilityTypeThe action name of the list view action of this capability type- Specified by:
getViewTypeActionin interfaceCapabilityType- Returns:
-
updatePlanForNewLabel
public void updatePlanForNewLabel(@NotNull @NotNull Buildable plan, @NotNull @NotNull String oldLabel, @NotNull @NotNull String newLabel)Description copied from interface:CapabilityTypePerform custom work when the key has been updated.- Specified by:
updatePlanForNewLabelin interfaceCapabilityTypeoldLabel- label to replacenewLabel- new label
-
-