Class TriggerManagerImpl
- java.lang.Object
-
- com.atlassian.bamboo.plan.trigger.TriggerManagerImpl
-
- All Implemented Interfaces:
TriggerManager
public class TriggerManagerImpl extends Object implements TriggerManager
-
-
Constructor Summary
Constructors Constructor Description TriggerManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull PlanTriggergetPlanTrigger(@NotNull String completeKey)@NotNull TriggerReasongetTriggerReason(@NotNull ChainResultsSummary chainResultsSummary, @NotNull BuildResultsSummary buildResultsSummary)Combines the data from the givenChainResultsSummaryandBuildResultsSummaryto produce aTriggerReasonfor aJobresult@NotNull TriggerReasongetTriggerReason(@NotNull BuildContext buildContext)Creates a new instance of theCommonContext.getTriggerReason()@NotNull TriggerReasongetTriggerReason(@NotNull String key, @NotNull ResultsSummary resultsSummary)@NotNull TriggerReasongetTriggerReason(@NotNull String key, @NotNull Map<String,String> fieldsMap)@NotNull TriggerReasonRenderergetTriggerReasonRenderer(@NotNull TriggerReason triggerReason)@NotNull TriggerReasonRenderergetTriggerReasonRenderer(@NotNull TriggerReason triggerReason, @NotNull ResultsSummary resultsSummary)@NotNull TriggerReasonRenderergetTriggerReasonRenderer(@NotNull TriggerReason triggerReason, @NotNull CurrentlyBuilding currentlyBuilding)
-
-
-
Method Detail
-
getPlanTrigger
@NotNull public @NotNull PlanTrigger getPlanTrigger(@NotNull @NotNull String completeKey) throws IllegalArgumentException
- Specified by:
getPlanTriggerin interfaceTriggerManager- Returns:
- planTrigger
- Throws:
IllegalArgumentException- if aPlanTriggercannot be found for pluginKey
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason(@NotNull @NotNull ChainResultsSummary chainResultsSummary, @NotNull @NotNull BuildResultsSummary buildResultsSummary)
Description copied from interface:TriggerManagerCombines the data from the givenChainResultsSummaryandBuildResultsSummaryto produce aTriggerReasonfor aJobresult- Specified by:
getTriggerReasonin interfaceTriggerManager- Returns:
- triggerReason
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason(@NotNull @NotNull BuildContext buildContext)
Description copied from interface:TriggerManagerCreates a new instance of theCommonContext.getTriggerReason()- Specified by:
getTriggerReasonin interfaceTriggerManager- Returns:
- triggerReason
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason(@NotNull @NotNull String key, @NotNull @NotNull Map<String,String> fieldsMap)
- Specified by:
getTriggerReasonin interfaceTriggerManager
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason(@NotNull @NotNull String key, @NotNull @NotNull ResultsSummary resultsSummary)
- Specified by:
getTriggerReasonin interfaceTriggerManager
-
getTriggerReasonRenderer
@NotNull public @NotNull TriggerReasonRenderer getTriggerReasonRenderer(@NotNull @NotNull TriggerReason triggerReason, @NotNull @NotNull ResultsSummary resultsSummary)
- Specified by:
getTriggerReasonRendererin interfaceTriggerManager
-
getTriggerReasonRenderer
@NotNull public @NotNull TriggerReasonRenderer getTriggerReasonRenderer(@NotNull @NotNull TriggerReason triggerReason, @NotNull @NotNull CurrentlyBuilding currentlyBuilding)
- Specified by:
getTriggerReasonRendererin interfaceTriggerManager
-
getTriggerReasonRenderer
@NotNull public @NotNull TriggerReasonRenderer getTriggerReasonRenderer(@NotNull @NotNull TriggerReason triggerReason)
- Specified by:
getTriggerReasonRendererin interfaceTriggerManager
-
-