com.atlassian.bamboo.v2.build.agent.capability
Class AbstractCapabilityType

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.agent.capability.AbstractCapabilityType
All Implemented Interfaces:
CapabilityType, java.lang.Comparable<CapabilityType>
Direct Known Subclasses:
AbstractCapabilityTypeModule, BuilderCapabilityType, GenericCapabilityType, JdkCapabilityType, PerforceCapabilityType

public abstract class AbstractCapabilityType
extends java.lang.Object
implements CapabilityType

All subclassses should have the same implementation of equals & comapreTo


Constructor Summary
AbstractCapabilityType()
           
 
Method Summary
 int compareTo(CapabilityType o)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getViewTypeAction()
          The action name of the list view action of this capability type
 int hashCode()
           
 java.lang.String toString()
           
 void updatePlanForNewLabel(Buildable plan, java.lang.String oldLabel, java.lang.String newLabel)
          Perform custom work when the key has been updated.
protected  void updateTasksForNewLabel(Buildable plan, java.lang.String keyToReplace, java.lang.String oldLabel, java.lang.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, getExtraInfo, getLabel, getNewKeyFromLabel, getSortOrder, getValueDescriptionKey, isAllowRename, validate
 

Constructor Detail

AbstractCapabilityType

public AbstractCapabilityType()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(CapabilityType o)
Specified by:
compareTo in interface java.lang.Comparable<CapabilityType>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getViewTypeAction

@Nullable
public java.lang.String getViewTypeAction()
Description copied from interface: CapabilityType
The action name of the list view action of this capability type

Specified by:
getViewTypeAction in interface CapabilityType
Returns:

updatePlanForNewLabel

public void updatePlanForNewLabel(@NotNull
                                  Buildable plan,
                                  @NotNull
                                  java.lang.String oldLabel,
                                  @NotNull
                                  java.lang.String newLabel)
Description copied from interface: CapabilityType
Perform custom work when the key has been updated.

Specified by:
updatePlanForNewLabel in interface CapabilityType
oldLabel - label to replace
newLabel - new label

updateTasksForNewLabel

protected void updateTasksForNewLabel(Buildable plan,
                                      java.lang.String keyToReplace,
                                      java.lang.String oldLabel,
                                      java.lang.String newLabel)


Copyright © 2012 Atlassian. All Rights Reserved.