Package com.atlassian.bamboo.plugin
Class BambooPluginUtils
java.lang.Object
com.atlassian.bamboo.plugin.BambooPluginUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> VcallChangedApi(Callable<V> newMethod, Callable<V> oldMethod) static <T> TcallUnsafeCode(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, Predicate<TaskDefinition>... predicates) static @NotNull com.google.common.collect.Ordering<com.atlassian.plugin.ModuleDescriptor<?>>static <T> TinstantiateModule(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
-
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, Predicate<TaskDefinition>... predicates) -
filterEnabledTasks
public static <T extends TaskDefinition> Iterable<T> filterEnabledTasks(Iterable<T> taskDefinitions, String pluginKey) -
filterTasks
-
pluginKeyEquals
-
callChangedApi
-