Package com.atlassian.confluence.core
Enum PluginDataSourceFactory.FilterByType
- java.lang.Object
-
- java.lang.Enum<PluginDataSourceFactory.FilterByType>
-
- com.atlassian.confluence.core.PluginDataSourceFactory.FilterByType
-
- All Implemented Interfaces:
Serializable
,Comparable<PluginDataSourceFactory.FilterByType>
,Predicate<PluginDataSourceFactory.ResourceView>
- Enclosing interface:
- PluginDataSourceFactory
public static enum PluginDataSourceFactory.FilterByType extends Enum<PluginDataSourceFactory.FilterByType> implements Predicate<PluginDataSourceFactory.ResourceView>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CSS
content-type equals text/cssDOWNLOAD
type="download" is used to expose resources over HTTPEMBEDDED
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
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
evaluate(PluginDataSourceFactory.ResourceView resource)
Deprecated.since 7.0.1.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.
-
-
-
Enum Constant Detail
-
EMBEDDED
public static final PluginDataSourceFactory.FilterByType EMBEDDED
type="embedded" is used to expose resources over a medium that requires embedding of images, such as emails.
-
DOWNLOAD
public static final PluginDataSourceFactory.FilterByType DOWNLOAD
type="download" is used to expose resources over HTTP
-
RELATED
public static final PluginDataSourceFactory.FilterByType RELATED
type="related" is used to mark resources for mail attachment
-
IMAGE
public static final PluginDataSourceFactory.FilterByType IMAGE
content-type starts with image/
-
CSS
public static final PluginDataSourceFactory.FilterByType CSS
content-type equals text/css
-
-
Method Detail
-
values
public static PluginDataSourceFactory.FilterByType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PluginDataSourceFactory.FilterByType c : PluginDataSourceFactory.FilterByType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PluginDataSourceFactory.FilterByType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
test
public boolean test(PluginDataSourceFactory.ResourceView resource)
- Specified by:
test
in interfacePredicate<PluginDataSourceFactory.ResourceView>
-
evaluate
@Deprecated public boolean evaluate(PluginDataSourceFactory.ResourceView resource)
Deprecated.since 7.0.1. Usetest(ResourceView)
instead.
-
toString
public String toString()
- Overrides:
toString
in classEnum<PluginDataSourceFactory.FilterByType>
-
-