Package com.morpheusdata.core.providers
Class AbstractDatasetProvider<T,V>
java.lang.Object
com.morpheusdata.core.providers.AbstractDatasetProvider<T,V>
- Type Parameters:
T
- The Model class type for this dataset - or just basic types for fixed listsV
- The "value" or identifier type on the map of option items - usually a long or a string
- All Implemented Interfaces:
DatasetProvider<T,
,V> PluginProvider
Base class
- Since:
- 0.15.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
A unique shortcode used for referencing the provided provider.getInfo()
{DatasetInfo
} about this providergetKey()
The identifier used to access the dataset.Returns the Morpheus Context for interacting with data stored in the Main Morpheus ApplicationgetName()
Provides the provider name for reference when adding to the Morpheus Orchestrator NOTE: This may be useful to set as an i18n key for UI reference and localization support.Datasets namespacing prevents key collision between datasets and provides a way to group similar or associated datasets.Returns the instance of the Plugin class that this provider is loaded fromMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.morpheusdata.core.providers.DatasetProvider
fetchItem, find, getItemType, item, itemName, itemValue, list, listOptions
Methods inherited from interface com.morpheusdata.core.providers.PluginProvider
isPlugin
-
Field Details
-
datasetInfo
-
plugin
-
morpheusContext
-
-
Constructor Details
-
AbstractDatasetProvider
public AbstractDatasetProvider()
-
-
Method Details
-
getMorpheus
Description copied from interface:PluginProvider
Returns the Morpheus Context for interacting with data stored in the Main Morpheus Application- Specified by:
getMorpheus
in interfacePluginProvider
- Returns:
- an implementation of the MorpheusContext for running Future based rxJava queries
-
getPlugin
Description copied from interface:PluginProvider
Returns the instance of the Plugin class that this provider is loaded from- Specified by:
getPlugin
in interfacePluginProvider
- Returns:
- Plugin class contains references to other providers
-
getInfo
Description copied from interface:DatasetProvider
{DatasetInfo
} about this provider- Specified by:
getInfo
in interfaceDatasetProvider<T,
V> - Returns:
- a DatasetInfo object
-
getKey
Description copied from interface:DatasetProvider
The identifier used to access the dataset. For example, the optionSource name for an {OptionType
} or identifier for a Dataset or Options API request.- Specified by:
getKey
in interfaceDatasetProvider<T,
V> - Returns:
- the key identifier used to access the dataset
-
getNamespace
Description copied from interface:DatasetProvider
Datasets namespacing prevents key collision between datasets and provides a way to group similar or associated datasets. A null namespace is for the global namespace- Specified by:
getNamespace
in interfaceDatasetProvider<T,
V> - Returns:
- the dataset namespace
-
getCode
Description copied from interface:PluginProvider
A unique shortcode used for referencing the provided provider. Make sure this is going to be unique as any data that is seeded or generated related to this provider will reference it by this code.- Specified by:
getCode
in interfacePluginProvider
- Returns:
- short code string that should be unique across all other plugin implementations.
-
getName
Description copied from interface:PluginProvider
Provides the provider name for reference when adding to the Morpheus Orchestrator NOTE: This may be useful to set as an i18n key for UI reference and localization support.- Specified by:
getName
in interfacePluginProvider
- Returns:
- either an English name of a Provider or an i18n based key that can be scanned for in a properties file.
-