com.atlassian.bamboo.plan.trigger
Class TriggerManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.plan.trigger.TriggerManagerImpl
All Implemented Interfaces:
TriggerManager, TriggerReasonManager

public class TriggerManagerImpl
extends java.lang.Object
implements TriggerManager, TriggerReasonManager


Constructor Summary
TriggerManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 
Method Summary
 PlanTrigger getPlanTrigger(java.lang.String completeKey)
           
 TriggerReason getTriggerReason(BuildContext buildContext)
          Creates a new instance of the BuildContext.getTriggerReason()
 TriggerReason getTriggerReason(ChainResultsSummary chainResultsSummary, BuildResultsSummary buildResultsSummary)
          Combines the data from the given ChainResultsSummary and BuildResultsSummary to produce a TriggerReason for a Job result
 TriggerReason getTriggerReason(java.lang.String key, BuildChanges buildChanges, java.util.Map<java.lang.String,java.lang.String> fieldsMap)
           
 TriggerReason getTriggerReason(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> fieldsMap)
           
 TriggerReason getTriggerReason(java.lang.String key, ResultsSummary resultsSummary)
           
 TriggerReasonRenderer getTriggerReasonRenderer(TriggerReason triggerReason, CurrentlyBuilding currentlyBuilding)
           
 TriggerReasonRenderer getTriggerReasonRenderer(TriggerReason triggerReason, ResultsSummary resultsSummary)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggerManagerImpl

public TriggerManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor)
Method Detail

getPlanTrigger

@NotNull
public PlanTrigger getPlanTrigger(@NotNull
                                          java.lang.String completeKey)
                           throws java.lang.IllegalArgumentException
Specified by:
getPlanTrigger in interface TriggerManager
Returns:
planTrigger
Throws:
java.lang.IllegalArgumentException - if a PlanTrigger cannot be found for pluginKey

getTriggerReason

@NotNull
public TriggerReason getTriggerReason(@NotNull
                                              ChainResultsSummary chainResultsSummary,
                                              @NotNull
                                              BuildResultsSummary buildResultsSummary)
Description copied from interface: TriggerManager
Combines the data from the given ChainResultsSummary and BuildResultsSummary to produce a TriggerReason for a Job result

Specified by:
getTriggerReason in interface TriggerManager
Specified by:
getTriggerReason in interface TriggerReasonManager
Returns:
triggerReason

getTriggerReason

@NotNull
public TriggerReason getTriggerReason(@NotNull
                                              BuildContext buildContext)
Description copied from interface: TriggerManager
Creates a new instance of the BuildContext.getTriggerReason()

Specified by:
getTriggerReason in interface TriggerManager
Specified by:
getTriggerReason in interface TriggerReasonManager
Returns:
triggerReason

getTriggerReason

@NotNull
public TriggerReason getTriggerReason(@NotNull
                                              java.lang.String key,
                                              @NotNull
                                              BuildChanges buildChanges,
                                              @NotNull
                                              java.util.Map<java.lang.String,java.lang.String> fieldsMap)
Specified by:
getTriggerReason in interface TriggerManager
Specified by:
getTriggerReason in interface TriggerReasonManager

getTriggerReason

@NotNull
public TriggerReason getTriggerReason(@NotNull
                                              java.lang.String key,
                                              @NotNull
                                              java.util.Map<java.lang.String,java.lang.String> fieldsMap)
Specified by:
getTriggerReason in interface TriggerManager
Specified by:
getTriggerReason in interface TriggerReasonManager

getTriggerReason

@NotNull
public TriggerReason getTriggerReason(@NotNull
                                              java.lang.String key,
                                              @NotNull
                                              ResultsSummary resultsSummary)
Specified by:
getTriggerReason in interface TriggerManager
Specified by:
getTriggerReason in interface TriggerReasonManager

getTriggerReasonRenderer

@NotNull
public TriggerReasonRenderer getTriggerReasonRenderer(@NotNull
                                                              TriggerReason triggerReason,
                                                              @NotNull
                                                              ResultsSummary resultsSummary)
Specified by:
getTriggerReasonRenderer in interface TriggerManager
Specified by:
getTriggerReasonRenderer in interface TriggerReasonManager

getTriggerReasonRenderer

@NotNull
public TriggerReasonRenderer getTriggerReasonRenderer(@NotNull
                                                              TriggerReason triggerReason,
                                                              @NotNull
                                                              CurrentlyBuilding currentlyBuilding)
Specified by:
getTriggerReasonRenderer in interface TriggerManager
Specified by:
getTriggerReasonRenderer in interface TriggerReasonManager


Copyright © 2012 Atlassian. All Rights Reserved.