public final class BambooPluginPredicates extends Object
Modifier and Type | Method and Description |
---|---|
static Predicate<com.atlassian.plugin.Plugin> |
alwaysTrue() |
static Predicate<com.atlassian.plugin.Plugin> |
and(Predicate<com.atlassian.plugin.Plugin>... predicates) |
static Predicate<com.atlassian.plugin.Plugin> |
isAvailable() |
static Predicate<com.atlassian.plugin.Plugin> |
isBlacklisted(@NotNull Set<String> blacklist)
Predicate that returns
true if a plugin key can be found on a blacklist |
static Predicate<com.atlassian.plugin.Plugin> |
isBundled() |
static Predicate<com.atlassian.plugin.Plugin> |
isEnabled(com.atlassian.plugin.PluginAccessor pluginAccessor) |
static Predicate<com.atlassian.plugin.Plugin> |
isRemoteAgentSupported()
Predicate that returns
true if a plugin should run on agents, i.e. |
static Predicate<com.atlassian.plugin.Plugin> |
isSystemProvided(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
Predicate that returns
true if a plugin is provided by the system. |
static Predicate<com.atlassian.plugin.Plugin> |
isUserInstalled(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
Predicate that returns
true if a plugin is user installed. |
static Predicate<com.atlassian.plugin.Plugin> |
or(Predicate<com.atlassian.plugin.Plugin>... predicates) |
public static Predicate<com.atlassian.plugin.Plugin> alwaysTrue()
public static Predicate<com.atlassian.plugin.Plugin> and(Predicate<com.atlassian.plugin.Plugin>... predicates)
public static Predicate<com.atlassian.plugin.Plugin> or(Predicate<com.atlassian.plugin.Plugin>... predicates)
public static Predicate<com.atlassian.plugin.Plugin> isRemoteAgentSupported()
true
if a plugin should run on agents, i.e. if any of its
modules is annotated with RemoteAgentSupported
or it's whitelisted for
remote agent use.public static Predicate<com.atlassian.plugin.Plugin> isBlacklisted(@NotNull @NotNull Set<String> blacklist)
true
if a plugin key can be found on a blacklistblacklist
- set of strings that define plugin blacklistpublic static Predicate<com.atlassian.plugin.Plugin> isUserInstalled(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
Predicate that returns true
if a plugin is user installed.
Needs instance of PluginMetadataManager
to do the job.
pluginMetadataManager
- manager used to do the checkpublic static Predicate<com.atlassian.plugin.Plugin> isSystemProvided(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
Predicate that returns true
if a plugin is provided by the system.
Needs instance of PluginMetadataManager
to do the job.
pluginMetadataManager
- manager used to do the checkpublic static Predicate<com.atlassian.plugin.Plugin> isAvailable()
public static Predicate<com.atlassian.plugin.Plugin> isEnabled(com.atlassian.plugin.PluginAccessor pluginAccessor)
public static Predicate<com.atlassian.plugin.Plugin> isBundled()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.