Package com.atlassian.bamboo.plugin
Class BambooPluginUtils
java.lang.Object
com.atlassian.bamboo.plugin.BambooPluginUtils
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V> V
callChangedApi
(Callable<V> newMethod, Callable<V> oldMethod) static <T> T
callUnsafeCode
(BambooPluginUtils.Callable<T> callable) Calls call() method on the supplied callable.static Iterable<TaskDefinition>
filterEnabledTasks
(BuildContext buildContext, String pluginKey) static <T extends TaskDefinition>
Iterable<T>filterEnabledTasks
(Iterable<T> taskDefinitions, String pluginKey) static Iterable<TaskDefinition>
filterTasks
(ImmutableJob job, String pluginKey) static Iterable<TaskDefinition>
filterTasks
(BuildContext buildContext, String pluginKey) static Iterable<TaskDefinition>
filterTasks
(Iterable<TaskDefinition> taskDefinitions, String pluginKey) static <T extends TaskDefinition>
Iterable<T>filterTasks
(Iterable<T> taskDefinitions, com.google.common.base.Predicate<TaskDefinition>... predicates) static @NotNull com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor<?>>
static <T> T
instantiateModule
(com.atlassian.plugin.ModuleDescriptor<T> md) isTaskProcessCommandDecoratorApplicableTo
(@NotNull TaskIdentifier taskIdentifier) static Predicate<PluginKeyProvider>
pluginKeyEquals
(String pluginKey)
-
Field Details
-
BAMBOO_APPLICATION_KEY
- See Also:
-
PLUGIN_DESCRIPTOR_FILENAME
- See Also:
-
-
Method Details
-
callUnsafeCode
Calls call() method on the supplied callable. RuntimeExceptions are logged and swallowed.- Type Parameters:
T
-- Parameters:
callable
- a callable wrapping unsafe plugin calls- Returns:
-
instantiateModule
public static <T> T instantiateModule(com.atlassian.plugin.ModuleDescriptor<T> md) -
isTaskProcessCommandDecoratorApplicableTo
public static Predicate<TaskProcessCommandDecoratorModuleDescriptor> isTaskProcessCommandDecoratorApplicableTo(@NotNull @NotNull TaskIdentifier taskIdentifier) -
getModuleDescriptorNameOrdering
@NotNull public static @NotNull com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor<?>> getModuleDescriptorNameOrdering() -
filterTasks
-
filterEnabledTasks
public static Iterable<TaskDefinition> filterEnabledTasks(BuildContext buildContext, String pluginKey) -
filterTasks
public static Iterable<TaskDefinition> filterTasks(Iterable<TaskDefinition> taskDefinitions, String pluginKey) -
filterTasks
public static <T extends TaskDefinition> Iterable<T> filterTasks(Iterable<T> taskDefinitions, com.google.common.base.Predicate<TaskDefinition>... predicates) -
filterEnabledTasks
public static <T extends TaskDefinition> Iterable<T> filterEnabledTasks(Iterable<T> taskDefinitions, String pluginKey) -
filterTasks
-
pluginKeyEquals
-
callChangedApi
-