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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.morpheusdata.core.providers.PluginProvider
PluginProvider.EventSubscriberFacet<E extends Event> -
Field Summary
Fields -
Constructor Summary
Constructors -
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, waitMethods inherited from interface com.morpheusdata.core.providers.DatasetProvider
fetchItem, find, getItemType, item, itemName, itemValue, list, listOptionsMethods 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:PluginProviderReturns the Morpheus Context for interacting with data stored in the Main Morpheus Application- Specified by:
getMorpheusin interfacePluginProvider- Returns:
- an implementation of the MorpheusContext for running Future based rxJava queries
-
getPlugin
Description copied from interface:PluginProviderReturns the instance of the Plugin class that this provider is loaded from- Specified by:
getPluginin interfacePluginProvider- Returns:
- Plugin class contains references to other providers
-
getInfo
Description copied from interface:DatasetProvider{DatasetInfo} about this provider- Specified by:
getInfoin interfaceDatasetProvider<T,V> - Returns:
- a DatasetInfo object
-
getKey
Description copied from interface:DatasetProviderThe 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:
getKeyin interfaceDatasetProvider<T,V> - Returns:
- the key identifier used to access the dataset
-
getNamespace
Description copied from interface:DatasetProviderDatasets 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:
getNamespacein interfaceDatasetProvider<T,V> - Returns:
- the dataset namespace
-
getCode
Description copied from interface:PluginProviderA 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:
getCodein interfacePluginProvider- Returns:
- short code string that should be unique across all other plugin implementations.
-
getName
Description copied from interface:PluginProviderProvides 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:
getNamein interfacePluginProvider- Returns:
- either an English name of a Provider or an i18n based key that can be scanned for in a properties file.
-