public final class BambooPluginPredicates extends Object
PluginPredicate
and Predicate
related to plugins.Modifier and Type | Method and Description |
---|---|
static com.atlassian.plugin.predicate.PluginPredicate |
alwaysTrue() |
static com.atlassian.plugin.predicate.PluginPredicate |
and(com.atlassian.plugin.predicate.PluginPredicate... predicates) |
static com.google.common.base.Predicate<com.atlassian.plugin.Plugin> |
isAvailable() |
static com.google.common.base.Predicate<com.atlassian.plugin.Plugin> |
isBlacklisted(Set<String> blacklist)
Predicate that returns
true if a plugin key can be found on a blacklist |
static com.google.common.base.Predicate<com.atlassian.plugin.Plugin> |
isBundled() |
static com.google.common.base.Predicate<com.atlassian.plugin.Plugin> |
isEnabled(com.atlassian.plugin.PluginAccessor pluginAccessor) |
static com.google.common.base.Predicate<com.atlassian.plugin.Plugin> |
isRemoteAgentSupported()
Predicate that returns
true if a plugin should run on agents, i.e. |
static com.google.common.base.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 com.google.common.base.Predicate<com.atlassian.plugin.Plugin> |
isUserInstalled(com.atlassian.plugin.metadata.PluginMetadataManager pluginMetadataManager)
Predicate that returns
true if a plugin is user installed. |
static com.atlassian.plugin.predicate.PluginPredicate |
or(com.atlassian.plugin.predicate.PluginPredicate... predicates) |
public static com.atlassian.plugin.predicate.PluginPredicate alwaysTrue()
public static com.atlassian.plugin.predicate.PluginPredicate and(com.atlassian.plugin.predicate.PluginPredicate... predicates)
public static com.atlassian.plugin.predicate.PluginPredicate or(com.atlassian.plugin.predicate.PluginPredicate... predicates)
public static com.google.common.base.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 com.google.common.base.Predicate<com.atlassian.plugin.Plugin> isBlacklisted(@NotNull Set<String> blacklist)
true
if a plugin key can be found on a blacklistblacklist
- set of strings that define plugin blacklistpublic static com.google.common.base.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 com.google.common.base.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 com.google.common.base.Predicate<com.atlassian.plugin.Plugin> isAvailable()
public static com.google.common.base.Predicate<com.atlassian.plugin.Plugin> isEnabled(com.atlassian.plugin.PluginAccessor pluginAccessor)
public static com.google.common.base.Predicate<com.atlassian.plugin.Plugin> isBundled()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.