Package com.atlassian.bamboo.trigger
Interface TriggerTypeManager
- All Known Implementing Classes:
TriggerTypeManagerImpl
public interface TriggerTypeManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.since 5.8static final String
Deprecated.since 5.8static final String
Deprecated.since 5.8static final String
Deprecated.since 5.8static final String
Deprecated.since 5.8static final String
Deprecated.since 5.8static final String
Deprecated.since 5.8 -
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.
-
Field Details
-
BUILD_STRATEGY_POLLING
Deprecated.since 5.8- See Also:
-
BUILD_STRATEGY_TRIGGERED
Deprecated.since 5.8- See Also:
-
BUILD_STRATEGY_DAILY
Deprecated.since 5.8- See Also:
-
BUILD_STRATEGY_SCHEDULED
Deprecated.since 5.8- See Also:
-
BUILD_STRATEGY_STASH
Deprecated.since 5.8- See Also:
-
BUILD_STRATEGY_MANUAL
Deprecated.since 5.8- See Also:
-
SELECTED_BUILD_STRATEGY
Deprecated.since 5.8- See Also:
-
-
Method Details
-
getAvailableTriggerDescriptors
@NotNull @NotNull Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptors(@NotNull @NotNull Triggerable triggerable) Provides a list of available trigger types for a specific triggerable.- Parameters:
triggerable
-- Returns:
-
getAvailableTriggerDescriptorsByType
Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptorsByType(Class<? extends Triggerable> triggerableClass) Provides a list of available trigger types for a specific type of triggerable. Only use when actual instance of triggerable is not available. Otherwise usegetAvailableTriggerDescriptors(Triggerable)
- Parameters:
triggerableClass
-- Returns:
-
getTriggerDescriptor
@Nullable @Nullable TriggerModuleDescriptor getTriggerDescriptor(@Nullable @Nullable String pluginKey) Get the trigger type descriptor matching a particular plugin key.- Parameters:
pluginKey
- - key to match- Returns:
TriggerModuleDescriptor
matching the given key if it exists. Null if the plugin can not be found.
-
getTriggerActivator
GetTriggerActivator
instance for a particular plugin key.- Parameters:
pluginKey
- - key to match- Returns:
TriggerActivator
matching the given key if it exists. Null if the plugin can not be found.
-
getBuildTriggerConditions
- Returns:
- all trigger condition plugins currently in the system.
-
getAvailableBuildTriggerConditionModuleDescriptors
@NotNull @NotNull List<BuildTriggerConditionModuleDescriptor> getAvailableBuildTriggerConditionModuleDescriptors()- Returns:
- all module descriptors of build trigger condition plugins in the system.
- Since:
- 5.14
-
getBuildTriggerConditionDescriptor
@Nullable @Nullable BuildTriggerConditionModuleDescriptor getBuildTriggerConditionDescriptor(String pluginKey) Get the build trigger condition module descriptor matching a particular plugin key.- Parameters:
pluginKey
- - key to match- Returns:
BuildTriggerConditionModuleDescriptor
matching the given key if it exists. Null if the plugin can not be found.
-