Package fr.gouv.vitam.common.server.application.configuration

# 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 Summary

  Modifier and Type
  Method
  Description
  `String`
  `getDbName()`
  Must return the value of a 'dbName' attribute
  `String`
  `getDbPassword()`
  Must return the value of a 'dbName' attribute
  `String`
  `getDbUserName()`
  Must return the value of a 'dbName' attribute
  `List<MongoDbNode>`
  `getMongoDbNodes()`
  Must return the value of a 'mongoDbNodes' attribute
  `boolean`
  `isDbAuthentication()`
  Must return the value of a 'dbName' attribute

  ### Methods inherited from interface fr.gouv.vitam.common.server.application.configuration.VitamApplicationConfiguration

  `isEnableSession, isEnableXsrFilter, setEnableSession, setEnableXsrFilter`

  ### Methods inherited from interface fr.gouv.vitam.common.server.application.configuration.VitamApplicationConfigurationInterface

  `getBaseUri, getBaseUrl, getJettyConfig, isAuthentication, isTenantFilter, setAuthentication, setBaseUri, setBaseUrl, setJettyConfig, setTenantFilter`

- ## 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