Interface DbConfiguration

All Superinterfaces:
VitamApplicationConfiguration, VitamApplicationConfigurationInterface
All Known Implementing Classes:
AdminManagementConfiguration, BatchReportConfiguration, CollectInternalConfiguration, DbConfigurationImpl, InterceptorConfiguration, InternalSecurityConfiguration, LogbookConfiguration, MetaDataConfiguration, OfferConfiguration, WebApplicationConfig

public interface DbConfiguration extends VitamApplicationConfiguration
Defines minimal common configurations for database configuration properties.

Your configuration class must implement it whenever you use database configuration in your configuration file
  • Method Details

    • getMongoDbNodes

      List<MongoDbNode> getMongoDbNodes()
      Must return the value of a 'mongoDbNodes' attribute
      Returns:
      the list of mongodb node which contains the dbHost and dbPort
    • getDbName

      String getDbName()
      Must return the value of a 'dbName' attribute
      Returns:
      the database host value
    • getDbUserName

      String getDbUserName()
      Must return the value of a 'dbName' attribute
      Returns:
      the database user name
    • getDbPassword

      String getDbPassword()
      Must return the value of a 'dbName' attribute
      Returns:
      the database user's password
    • isDbAuthentication

      boolean isDbAuthentication()
      Must return the value of a 'dbName' attribute
      Returns:
      boolean is autenticated or not