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 PlanTrigger
getPlanTrigger(@NotNull String completeKey)
@NotNull TriggerReason
getTriggerReason(@NotNull ChainResultsSummary chainResultsSummary, @NotNull BuildResultsSummary buildResultsSummary)
Combines the data from the givenChainResultsSummary
andBuildResultsSummary
to produce aTriggerReason
for aJob
result@NotNull TriggerReason
getTriggerReason(@NotNull BuildContext buildContext)
Creates a new instance of theCommonContext.getTriggerReason()
@NotNull TriggerReason
getTriggerReason(@NotNull String key, @NotNull ResultsSummary resultsSummary)
@NotNull TriggerReason
getTriggerReason(@NotNull String key, @NotNull Map<String,String> fieldsMap)
@NotNull TriggerReasonRenderer
getTriggerReasonRenderer(@NotNull TriggerReason triggerReason)
@NotNull TriggerReasonRenderer
getTriggerReasonRenderer(@NotNull TriggerReason triggerReason, @NotNull ResultsSummary resultsSummary)
@NotNull TriggerReasonRenderer
getTriggerReasonRenderer(@NotNull TriggerReason triggerReason, @NotNull CurrentlyBuilding currentlyBuilding)
-
-
-
Method Detail
-
getPlanTrigger
@NotNull public @NotNull PlanTrigger getPlanTrigger(@NotNull @NotNull String completeKey) throws IllegalArgumentException
- Specified by:
getPlanTrigger
in interfaceTriggerManager
- Returns:
- planTrigger
- Throws:
IllegalArgumentException
- if aPlanTrigger
cannot be found for pluginKey
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason(@NotNull @NotNull ChainResultsSummary chainResultsSummary, @NotNull @NotNull BuildResultsSummary buildResultsSummary)
Description copied from interface:TriggerManager
Combines the data from the givenChainResultsSummary
andBuildResultsSummary
to produce aTriggerReason
for aJob
result- Specified by:
getTriggerReason
in interfaceTriggerManager
- Returns:
- triggerReason
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason(@NotNull @NotNull BuildContext buildContext)
Description copied from interface:TriggerManager
Creates a new instance of theCommonContext.getTriggerReason()
- Specified by:
getTriggerReason
in interfaceTriggerManager
- Returns:
- triggerReason
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason(@NotNull @NotNull String key, @NotNull @NotNull Map<String,String> fieldsMap)
- Specified by:
getTriggerReason
in interfaceTriggerManager
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason(@NotNull @NotNull String key, @NotNull @NotNull ResultsSummary resultsSummary)
- Specified by:
getTriggerReason
in interfaceTriggerManager
-
getTriggerReasonRenderer
@NotNull public @NotNull TriggerReasonRenderer getTriggerReasonRenderer(@NotNull @NotNull TriggerReason triggerReason, @NotNull @NotNull ResultsSummary resultsSummary)
- Specified by:
getTriggerReasonRenderer
in interfaceTriggerManager
-
getTriggerReasonRenderer
@NotNull public @NotNull TriggerReasonRenderer getTriggerReasonRenderer(@NotNull @NotNull TriggerReason triggerReason, @NotNull @NotNull CurrentlyBuilding currentlyBuilding)
- Specified by:
getTriggerReasonRenderer
in interfaceTriggerManager
-
getTriggerReasonRenderer
@NotNull public @NotNull TriggerReasonRenderer getTriggerReasonRenderer(@NotNull @NotNull TriggerReason triggerReason)
- Specified by:
getTriggerReasonRenderer
in interfaceTriggerManager
-
-