Package com.atlassian.bamboo.trigger
Interface TriggerTypeManager
-
- All Known Implementing Classes:
TriggerTypeManagerImpl
public interface TriggerTypeManager
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUILD_STRATEGY_DAILY
Deprecated.since 5.8static String
BUILD_STRATEGY_MANUAL
Deprecated.since 5.8static String
BUILD_STRATEGY_POLLING
Deprecated.since 5.8static String
BUILD_STRATEGY_SCHEDULED
Deprecated.since 5.8static String
BUILD_STRATEGY_STASH
Deprecated.since 5.8static String
BUILD_STRATEGY_TRIGGERED
Deprecated.since 5.8static String
SELECTED_BUILD_STRATEGY
Deprecated.since 5.8
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull List<BuildTriggerConditionModuleDescriptor>
getAvailableBuildTriggerConditionModuleDescriptors()
@NotNull Iterable<TriggerModuleDescriptor>
getAvailableTriggerDescriptors(@NotNull Triggerable triggerable)
Provides a list of available trigger types for a specific triggerable.Iterable<TriggerModuleDescriptor>
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>
getBuildTriggerConditions()
@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 Detail
-
BUILD_STRATEGY_POLLING
@Deprecated static final String BUILD_STRATEGY_POLLING
Deprecated.since 5.8- See Also:
- Constant Field Values
-
BUILD_STRATEGY_TRIGGERED
@Deprecated static final String BUILD_STRATEGY_TRIGGERED
Deprecated.since 5.8- See Also:
- Constant Field Values
-
BUILD_STRATEGY_DAILY
@Deprecated static final String BUILD_STRATEGY_DAILY
Deprecated.since 5.8- See Also:
- Constant Field Values
-
BUILD_STRATEGY_SCHEDULED
@Deprecated static final String BUILD_STRATEGY_SCHEDULED
Deprecated.since 5.8- See Also:
- Constant Field Values
-
BUILD_STRATEGY_STASH
@Deprecated static final String BUILD_STRATEGY_STASH
Deprecated.since 5.8- See Also:
- Constant Field Values
-
BUILD_STRATEGY_MANUAL
@Deprecated static final String BUILD_STRATEGY_MANUAL
Deprecated.since 5.8- See Also:
- Constant Field Values
-
SELECTED_BUILD_STRATEGY
@Deprecated static final String SELECTED_BUILD_STRATEGY
Deprecated.since 5.8- See Also:
- Constant Field Values
-
-
Method Detail
-
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
@Nullable @Nullable TriggerActivator getTriggerActivator(@NotNull @NotNull String pluginKey)
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
@NotNull @NotNull List<BuildTriggerCondition> 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.
-
-