Class TriggerTypeManagerImpl
java.lang.Object
com.atlassian.bamboo.build.strategy.TriggerTypeManagerImpl
- All Implemented Interfaces:
TriggerTypeManager
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.trigger.TriggerTypeManager
BUILD_STRATEGY_DAILY, BUILD_STRATEGY_MANUAL, BUILD_STRATEGY_POLLING, BUILD_STRATEGY_SCHEDULED, BUILD_STRATEGY_STASH, BUILD_STRATEGY_TRIGGERED, SELECTED_BUILD_STRATEGY
-
Constructor Summary
ConstructorDescriptionTriggerTypeManagerImpl
(com.atlassian.plugin.PluginAccessor pluginAccessor) Alternative constructor for agent that doesn't use feature manager -
Method Summary
Modifier and TypeMethodDescription@NotNull List<BuildTriggerConditionModuleDescriptor>
@NotNull Iterable<TriggerModuleDescriptor>
getAvailableTriggerDescriptors
(@NotNull Triggerable triggerable) Provides a list of available trigger types for a specific triggerable.getAvailableTriggerDescriptorsByType
(Class<? extends Triggerable> triggerableClass) Provides a list of available trigger types for a specific type of triggerable.@Nullable BuildTriggerConditionModuleDescriptor
getBuildTriggerConditionDescriptor
(String pluginKey) Get the build trigger condition module descriptor matching a particular plugin key.@NotNull List<BuildTriggerCondition>
@Nullable TriggerActivator
getTriggerActivator
(@NotNull String pluginKey) GetTriggerActivator
instance for a particular plugin key.@Nullable TriggerModuleDescriptor
getTriggerDescriptor
(@Nullable String pluginKey) Get the trigger type descriptor matching a particular plugin key.
-
Constructor Details
-
TriggerTypeManagerImpl
public TriggerTypeManagerImpl(com.atlassian.plugin.PluginAccessor pluginAccessor) Alternative constructor for agent that doesn't use feature manager- Parameters:
pluginAccessor
-
-
-
Method Details
-
getBuildTriggerConditions
- Specified by:
getBuildTriggerConditions
in interfaceTriggerTypeManager
- Returns:
- all trigger condition plugins currently in the system.
-
getAvailableBuildTriggerConditionModuleDescriptors
@NotNull public @NotNull List<BuildTriggerConditionModuleDescriptor> getAvailableBuildTriggerConditionModuleDescriptors()- Specified by:
getAvailableBuildTriggerConditionModuleDescriptors
in interfaceTriggerTypeManager
- Returns:
- all module descriptors of build trigger condition plugins in the system.
-
getAvailableTriggerDescriptors
@NotNull public @NotNull Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptors(@NotNull @NotNull Triggerable triggerable) Description copied from interface:TriggerTypeManager
Provides a list of available trigger types for a specific triggerable.- Specified by:
getAvailableTriggerDescriptors
in interfaceTriggerTypeManager
- Returns:
-
getAvailableTriggerDescriptorsByType
public Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptorsByType(Class<? extends Triggerable> triggerableClass) Description copied from interface:TriggerTypeManager
Provides a list of available trigger types for a specific type of triggerable. Only use when actual instance of triggerable is not available. Otherwise useTriggerTypeManager.getAvailableTriggerDescriptors(Triggerable)
- Specified by:
getAvailableTriggerDescriptorsByType
in interfaceTriggerTypeManager
- Returns:
-
getTriggerDescriptor
@Nullable public @Nullable TriggerModuleDescriptor getTriggerDescriptor(@Nullable @Nullable String pluginKey) Description copied from interface:TriggerTypeManager
Get the trigger type descriptor matching a particular plugin key.- Specified by:
getTriggerDescriptor
in interfaceTriggerTypeManager
- Parameters:
pluginKey
- - key to match- Returns:
TriggerModuleDescriptor
matching the given key if it exists. Null if the plugin can not be found.
-
getBuildTriggerConditionDescriptor
@Nullable public @Nullable BuildTriggerConditionModuleDescriptor getBuildTriggerConditionDescriptor(String pluginKey) Description copied from interface:TriggerTypeManager
Get the build trigger condition module descriptor matching a particular plugin key.- Specified by:
getBuildTriggerConditionDescriptor
in interfaceTriggerTypeManager
- Parameters:
pluginKey
- - key to match- Returns:
BuildTriggerConditionModuleDescriptor
matching the given key if it exists. Null if the plugin can not be found.
-
getTriggerActivator
Description copied from interface:TriggerTypeManager
GetTriggerActivator
instance for a particular plugin key.- Specified by:
getTriggerActivator
in interfaceTriggerTypeManager
- Parameters:
pluginKey
- - key to match- Returns:
TriggerActivator
matching the given key if it exists. Null if the plugin can not be found.
-