Class AbstractTriggerReason
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.trigger.AbstractTriggerReason
-
- All Implemented Interfaces:
TriggerReason
,Serializable
- Direct Known Subclasses:
ChildDependencyTriggerReason
,CodeChangedTriggerReason
,CompletedStageTriggerReason
,DependencyTriggerReason
,EnvironmentDependencyTriggerReason
,InitialBuildTriggerReason
,JIRAReleaseTriggerReason
,ManualBuildTriggerReason
,RssChangedTriggerReason
,ScheduledTriggerReason
,TagBuildTriggerReason
,UnknownTriggerReason
public abstract class AbstractTriggerReason extends Object implements TriggerReason
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
PLUGIN_KEY
static String
TRIGGER_REASON_KEY
-
Constructor Summary
Constructors Constructor Description AbstractTriggerReason()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull TriggerReason
getChildTriggerReason(BuildContext child, ImmutablePlan plan)
If build A (triggered because of this TriggerReason) caused builds of plans X,Y,Z to trigger, this method will be called to determine trigger reasons for plans X, Y, Z.String
getKey()
TheTriggerReason
keyprotected void
init(String key)
String
toString()
protected void
updateIfValueNotNull(BambooCustomDataAware customDataAware, String key, String value)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.v2.build.trigger.TriggerReason
getName, getNameForSentence, init, init, updateCustomData
-
-
-
-
Field Detail
-
TRIGGER_REASON_KEY
public static final String TRIGGER_REASON_KEY
- See Also:
- Constant Field Values
-
PLUGIN_KEY
protected static final String PLUGIN_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:TriggerReason
TheTriggerReason
key- Specified by:
getKey
in interfaceTriggerReason
- Returns:
- key
-
getChildTriggerReason
@NotNull public @NotNull TriggerReason getChildTriggerReason(BuildContext child, ImmutablePlan plan)
Description copied from interface:TriggerReason
If build A (triggered because of this TriggerReason) caused builds of plans X,Y,Z to trigger, this method will be called to determine trigger reasons for plans X, Y, Z.- Specified by:
getChildTriggerReason
in interfaceTriggerReason
- Returns:
-
init
protected void init(String key)
-
updateIfValueNotNull
protected void updateIfValueNotNull(BambooCustomDataAware customDataAware, String key, String value)
-
-