public interface PluginDataSourceFactory
DataSources
for plugin module resources
.DataSourceFactory.forPlugin(String)
Modifier and Type | Interface and Description |
---|---|
static class |
PluginDataSourceFactory.FilterByType |
static interface |
PluginDataSourceFactory.ResourceView
A view on the
ResourceDescriptor . |
Modifier and Type | Method and Description |
---|---|
default Optional<DataSource> |
getResourceFromModuleByName(String moduleKey,
String resourceName)
Extract a resource identified by name from a module and expose it as
DataSource . |
default Optional<Iterable<DataSource>> |
getResourcesFromModules(String moduleKey)
Extract all resources from a module and expose them as
DataSources . |
Optional<Iterable<DataSource>> |
getResourcesFromModules(String moduleKey,
@Nullable Predicate<PluginDataSourceFactory.ResourceView> filter)
Extract resources from a module and expose them as
DataSources . |
com.atlassian.fugue.Maybe<DataSource> |
resourceFromModuleByName(String moduleKey,
String resourceName)
Deprecated.
since 7.0.1. Use
getResourceFromModuleByName(String, String) |
com.atlassian.fugue.Maybe<Iterable<DataSource>> |
resourcesFromModules(String moduleKey)
Deprecated.
since 7.0.1. Use
getResourcesFromModules(String) |
Optional<Iterable<DataSource>> getResourcesFromModules(String moduleKey, @Nullable Predicate<PluginDataSourceFactory.ResourceView> filter)
DataSources
.moduleKey
- the key used to locate the modulefilter
- an optional filter for resourcesDataSources
if the module could be located, the container is empty if the filter
did not match anything@Deprecated com.atlassian.fugue.Maybe<Iterable<DataSource>> resourcesFromModules(String moduleKey)
getResourcesFromModules(String)
DataSources
.default Optional<Iterable<DataSource>> getResourcesFromModules(String moduleKey)
DataSources
.getResourcesFromModules(String, Predicate)
@Deprecated com.atlassian.fugue.Maybe<DataSource> resourceFromModuleByName(String moduleKey, String resourceName)
getResourceFromModuleByName(String, String)
DataSource
.moduleKey
- the key used to locate the moduleresourceName
- the name of the resourceDataSource
if the module could be located and contained a resource with the given namedefault Optional<DataSource> getResourceFromModuleByName(String moduleKey, String resourceName)
DataSource
.moduleKey
- the key used to locate the moduleresourceName
- the name of the resourceDataSource
if the module could be located and contained a resource with the given nameCopyright © 2003–2020 Atlassian. All rights reserved.