com.atlassian.bamboo.v2.build.trigger
Class AbstractTriggerReason

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.trigger.AbstractTriggerReason
All Implemented Interfaces:
TriggerReason, Serializable
Direct Known Subclasses:
ChildDependencyTriggerReason, CodeChangedTriggerReason, DependencyTriggerReason, EnvironmentDependencyTriggerReason, InitialBuildTriggerReason, JIRAReleaseTriggerReason, ManualBuildTriggerReason, ScheduledTriggerReason, UnknownTriggerReason

public abstract class AbstractTriggerReason
extends Object
implements TriggerReason

See Also:
Serialized Form

Field Summary
protected static String PLUGIN_KEY
           
protected  com.opensymphony.xwork2.TextProvider textProvider
           
 
Constructor Summary
AbstractTriggerReason()
           
 
Method Summary
 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()
          The TriggerReason key
protected  void init(String key)
           
 void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
           
 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

PLUGIN_KEY

protected static final String PLUGIN_KEY
See Also:
Constant Field Values

textProvider

protected com.opensymphony.xwork2.TextProvider textProvider
Constructor Detail

AbstractTriggerReason

public AbstractTriggerReason()
Method Detail

getKey

public String getKey()
Description copied from interface: TriggerReason
The TriggerReason key

Specified by:
getKey in interface TriggerReason
Returns:
key

getChildTriggerReason

@NotNull
public 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 interface TriggerReason
Returns:

toString

public String toString()
Overrides:
toString in class Object

init

protected void init(String key)

setTextProvider

public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)

updateIfValueNotNull

protected void updateIfValueNotNull(BambooCustomDataAware customDataAware,
                                    String key,
                                    String value)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.