Class WebApplicationConfig
java.lang.Object
fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
fr.gouv.vitam.common.server.application.configuration.DbConfigurationImpl
fr.gouv.vitam.ihmrecette.appserver.WebApplicationConfig
- All Implemented Interfaces:
DbConfiguration
,VitamApplicationConfiguration
,VitamApplicationConfigurationInterface
Web Application Configuration class
-
Field Summary
Fields inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
IS_A_MANDATORY_PARAMETER, jettyConfig
-
Constructor Summary
ConstructorDescriptionWebApplicationConfig
(List<MongoDbNode> mongoDbNodes, String dbName, String clusterName, List<ElasticsearchNode> elasticsearchNodes, MappingLoader mappingLoader) Default constructor (keep it ?) -
Method Summary
Modifier and TypeMethodDescriptionint
int
getPort()
get secure modeboolean
isSecure()
setBaseUri
(String baseUri) setBaseUrl
(String baseUrl) setClusterName
(String clusterName) setElasticsearchConfigurationFile
(String elasticsearchConfigurationFile) void
setElasticsearchExternalMetadataMappings
(List<ElasticsearchExternalMetadataMapping> elasticsearchExternalMetadataMappings) setElasticsearchNodes
(List<ElasticsearchNode> elasticsearchNodes) void
setFunctionalAdminAdmin
(FunctionalAdminAdmin functionalAdminAdmin) setFunctionalAdminIndexationConfiguration
(FunctionalAdminIndexationConfiguration functionalAdminIndexationConfiguration) void
setIngestMaxThread
(int ingestMaxThread) void
setLogbookDbName
(String logbookDbName) setLogbookIndexationConfiguration
(LogbookIndexationConfiguration logbookIndexationConfiguration) void
setMasterdataDbName
(String masterdataDbName) void
setMetadataDbName
(String metadataDbName) setMetadataIndexationConfiguration
(MetadataIndexationConfiguration metadataIndexationConfiguration) void
setPerformanceReportDirectory
(String performanceReportDirectory) void
setPort
(int port) void
setSecure
(boolean secure) void
setSecureMode
(List<String> secureMode) void
setServerHost
(String serverHost) void
setSipDirectory
(String sipDirectory) void
setTestSystemReportDirectory
(String testSystemReportDirectory) void
setTestSystemSipDirectory
(String testSystemSipDirectory) setWorkspaceUrl
(String workspaceUrl) Methods inherited from class fr.gouv.vitam.common.server.application.configuration.DbConfigurationImpl
getDbName, getDbPassword, getDbUserName, getMongoDbNodes, isDbAuthentication, setDbAuthentication, setDbName, setDbPassword, setDbUserName, setMongoDbNodes
Methods inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
getAdminBasicAuth, getJettyConfig, isAuthentication, isAuthorizeTrackTotalHits, isEnableSession, isEnableXsrFilter, isTenantFilter, setAdminBasicAuth, setAuthentication, setAuthorizeTrackTotalHits, setEnableSession, setEnableXsrFilter, setJettyConfig, setTenantFilter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
getJettyConfig, isAuthentication, isTenantFilter, setAuthentication, setJettyConfig, setTenantFilter
-
Constructor Details
-
WebApplicationConfig
public WebApplicationConfig(List<MongoDbNode> mongoDbNodes, String dbName, String clusterName, List<ElasticsearchNode> elasticsearchNodes, MappingLoader mappingLoader) Default constructor (keep it ?)- Parameters:
mongoDbNodes
- nodes mongoDbdbName
- mongoDb nameclusterName
- elastic search cluster nameelasticsearchNodes
- nodes elastic search
-
-
Method Details
-
getBaseUrl
- Returns:
- baseUrl
-
setBaseUrl
- Parameters:
baseUrl
- the base url
-
getBaseUri
-
setBaseUri
-
isSecure
public boolean isSecure()- Returns:
- true if athentication needed, false otherwise
-
setSecure
public void setSecure(boolean secure) - Parameters:
secure
- the secure access value
-
getSipDirectory
- Returns:
- the directory path that contains SIPs ready for upload
-
setSipDirectory
- Parameters:
sipDirectory
- the directory path that contains SIPs ready for upload
-
getServerHost
- Returns:
- the server host
-
setServerHost
- Parameters:
serverHost
- the server host
-
getPort
public int getPort()- Returns:
- the port number
-
setPort
public void setPort(int port) - Parameters:
port
- the port number
-
getMasterdataDbName
- Returns:
- masterdata database name
-
setMasterdataDbName
- Parameters:
masterdataDbName
- masterdata database name
-
getLogbookDbName
- Returns:
- logbook database name
-
setLogbookDbName
- Parameters:
logbookDbName
- logbook database name
-
getMetadataDbName
- Returns:
- metadata database name
-
setMetadataDbName
- Parameters:
metadataDbName
- metadata database name
-
getTestSystemSipDirectory
- Returns:
- folder to store integration test
-
setTestSystemSipDirectory
- Parameters:
testSystemSipDirectory
- folder to store integration test
-
getTestSystemReportDirectory
- Returns:
- folder to store report of system test
-
setTestSystemReportDirectory
- Parameters:
testSystemReportDirectory
- folder to store report of system test
-
getPerformanceReportDirectory
- Returns:
- performance report directory
-
setPerformanceReportDirectory
- Parameters:
performanceReportDirectory
- performance report directory
-
getSecureMode
get secure mode- Returns:
- secure mode
-
setSecureMode
- Parameters:
secureMode
-
-
getIngestMaxThread
public int getIngestMaxThread() -
setIngestMaxThread
public void setIngestMaxThread(int ingestMaxThread) -
getFunctionalAdminAdmin
-
setFunctionalAdminAdmin
-
getElasticsearchExternalMetadataMappings
-
setElasticsearchExternalMetadataMappings
public void setElasticsearchExternalMetadataMappings(List<ElasticsearchExternalMetadataMapping> elasticsearchExternalMetadataMappings) -
getWorkspaceUrl
-
setWorkspaceUrl
-
getClusterName
-
setClusterName
-
getElasticsearchNodes
-
setElasticsearchNodes
-
getFunctionalAdminIndexationConfiguration
-
setFunctionalAdminIndexationConfiguration
public WebApplicationConfig setFunctionalAdminIndexationConfiguration(FunctionalAdminIndexationConfiguration functionalAdminIndexationConfiguration) -
getMetadataIndexationConfiguration
-
setMetadataIndexationConfiguration
public WebApplicationConfig setMetadataIndexationConfiguration(MetadataIndexationConfiguration metadataIndexationConfiguration) -
getLogbookIndexationConfiguration
-
setLogbookIndexationConfiguration
public WebApplicationConfig setLogbookIndexationConfiguration(LogbookIndexationConfiguration logbookIndexationConfiguration) -
getElasticsearchConfigurationFile
-
setElasticsearchConfigurationFile
public WebApplicationConfig setElasticsearchConfigurationFile(String elasticsearchConfigurationFile)
-