Class DataProvider
java.lang.Object
com.pnfsoftware.jeb.core.dao.impl.DataProvider
- All Implemented Interfaces:
IDataProvider
Simple immutable implementation of
IDataProvider.-
Constructor Summary
ConstructorsConstructorDescriptionDataProvider(IFileStore userstore, IFileDatabase projectdb, IFileStore pluginstore, IConfiguration config) DataProvider(IUserDatabase userdb, IFileDatabase projectdb, IFileStore filestore, IFileStore pluginstore, IApplicationDatabase appdb, IConfiguration config) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration data.Get the plugins file store.Get the project database.Get the user private store.
-
Constructor Details
-
DataProvider
@Deprecated public DataProvider(IUserDatabase userdb, IFileDatabase projectdb, IFileStore filestore, IFileStore pluginstore, IApplicationDatabase appdb, IConfiguration config) Legacy constructor. The userstore will be set to be the same as the pluginstore.- Parameters:
userdb- NOT USEDprojectdb- optional project databasefilestore- NOT USEDpluginstore- optional plugin file storeappdb- NOT USEDconfig- optional configuration object
-
DataProvider
public DataProvider(IFileStore userstore, IFileDatabase projectdb, IFileStore pluginstore, IConfiguration config) - Parameters:
userstore-projectdb-pluginstore-config-
-
-
Method Details
-
getUserStore
Description copied from interface:IDataProviderGet the user private store. It may be the same as the plugins store.- Specified by:
getUserStorein interfaceIDataProvider- Returns:
-
getProjectDatabase
Description copied from interface:IDataProviderGet the project database.- Specified by:
getProjectDatabasein interfaceIDataProvider- Returns:
- the project database, or
null
-
getPluginStore
Description copied from interface:IDataProviderGet the plugins file store.- Specified by:
getPluginStorein interfaceIDataProvider- Returns:
- the plugin file store, or
null
-
getConfiguration
Description copied from interface:IDataProviderGet the configuration data.- Specified by:
getConfigurationin interfaceIDataProvider- Returns:
- the configuration object, or
null
-
DataProvider(IFileStore, IFileDatabase, IFileStore, IConfiguration)