public static enum PluginDataSourceFactory.FilterByType extends Enum<PluginDataSourceFactory.FilterByType> implements Predicate<PluginDataSourceFactory.ResourceView>
Enum Constant and Description |
---|
CSS
content-type equals text/css
|
DOWNLOAD
type="download" is used to expose resources over HTTP
|
EMBEDDED
type="embedded" is used to expose resources over a medium that requires embedding of images, such as emails.
|
IMAGE
content-type starts with image/
|
RELATED
type="related" is used to mark resources for mail attachment
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(PluginDataSourceFactory.ResourceView resource)
Deprecated.
since 7.0.1. Use
#test(ResourceView) instead. |
boolean |
test(PluginDataSourceFactory.ResourceView resource) |
String |
toString() |
static PluginDataSourceFactory.FilterByType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PluginDataSourceFactory.FilterByType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PluginDataSourceFactory.FilterByType EMBEDDED
public static final PluginDataSourceFactory.FilterByType DOWNLOAD
public static final PluginDataSourceFactory.FilterByType RELATED
public static final PluginDataSourceFactory.FilterByType IMAGE
public static final PluginDataSourceFactory.FilterByType CSS
public static PluginDataSourceFactory.FilterByType[] values()
for (PluginDataSourceFactory.FilterByType c : PluginDataSourceFactory.FilterByType.values()) System.out.println(c);
public static PluginDataSourceFactory.FilterByType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean test(PluginDataSourceFactory.ResourceView resource)
test
in interface Predicate<PluginDataSourceFactory.ResourceView>
@Deprecated public boolean evaluate(PluginDataSourceFactory.ResourceView resource)
#test(ResourceView)
instead.public String toString()
toString
in class Enum<PluginDataSourceFactory.FilterByType>
Copyright © 2003–2021 Atlassian. All rights reserved.