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 lists
V - The "value" or identifier type on the map of option items - usually a long or a string
All Implemented Interfaces:
DatasetProvider<T,V>, PluginProvider

public abstract class AbstractDatasetProvider<T,V> extends Object implements DatasetProvider<T,V>
Base class
Since:
0.15.1
  • Field Details

  • Constructor Details

    • AbstractDatasetProvider

      public AbstractDatasetProvider()
  • Method Details

    • getMorpheus

      public MorpheusContext getMorpheus()
      Description copied from interface: PluginProvider
      Returns the Morpheus Context for interacting with data stored in the Main Morpheus Application
      Specified by:
      getMorpheus in interface PluginProvider
      Returns:
      an implementation of the MorpheusContext for running Future based rxJava queries
    • getPlugin

      public Plugin getPlugin()
      Description copied from interface: PluginProvider
      Returns the instance of the Plugin class that this provider is loaded from
      Specified by:
      getPlugin in interface PluginProvider
      Returns:
      Plugin class contains references to other providers
    • getInfo

      public DatasetInfo getInfo()
      Description copied from interface: DatasetProvider
      info about this provider
      Specified by:
      getInfo in interface DatasetProvider<T,V>
      Returns:
      a map of info abount the provider
    • getCode

      public String 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 interface PluginProvider
      Returns:
      short code string that should be unique across all other plugin implementations.
    • getName

      public String 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 interface PluginProvider
      Returns:
      either an English name of a Provider or an i18n based key that can be scanned for in a properties file.