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
public class WebApplicationConfig extends DbConfigurationImpl
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
Constructors Constructor Description WebApplicationConfig(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes, MappingLoader mappingLoader)
Default constructor (keep it ?)
-
Method Summary
-
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 Detail
-
WebApplicationConfig
public WebApplicationConfig(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes, MappingLoader mappingLoader)
Default constructor (keep it ?)- Parameters:
mongoDbNodes
- nodes mongoDbdbName
- mongoDb nameclusterName
- elastic search cluster nameelasticsearchNodes
- nodes elastic search
-
-
Method Detail
-
getBaseUrl
public java.lang.String getBaseUrl()
- Returns:
- baseUrl
-
setBaseUrl
public WebApplicationConfig setBaseUrl(java.lang.String baseUrl)
- Parameters:
baseUrl
- the base url
-
getBaseUri
public java.lang.String getBaseUri()
-
setBaseUri
public WebApplicationConfig setBaseUri(java.lang.String baseUri)
-
getStaticContent
public java.lang.String getStaticContent()
- Returns:
- static content
-
setStaticContent
public WebApplicationConfig setStaticContent(java.lang.String staticContent)
- Parameters:
staticContent
- static content from server
-
isSecure
public boolean isSecure()
- Returns:
- true if athentication needed, false otherwise
-
setSecure
public void setSecure(boolean secure)
- Parameters:
secure
- the secure access value
-
getSipDirectory
public java.lang.String getSipDirectory()
- Returns:
- the directory path that contains SIPs ready for upload
-
setSipDirectory
public void setSipDirectory(java.lang.String sipDirectory)
- Parameters:
sipDirectory
- the directory path that contains SIPs ready for upload
-
getServerHost
public java.lang.String getServerHost()
- Returns:
- the server host
-
setServerHost
public void setServerHost(java.lang.String serverHost)
- 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
public java.lang.String getMasterdataDbName()
- Returns:
- masterdata database name
-
setMasterdataDbName
public void setMasterdataDbName(java.lang.String masterdataDbName)
- Parameters:
masterdataDbName
- masterdata database name
-
getLogbookDbName
public java.lang.String getLogbookDbName()
- Returns:
- logbook database name
-
setLogbookDbName
public void setLogbookDbName(java.lang.String logbookDbName)
- Parameters:
logbookDbName
- logbook database name
-
getMetadataDbName
public java.lang.String getMetadataDbName()
- Returns:
- metadata database name
-
setMetadataDbName
public void setMetadataDbName(java.lang.String metadataDbName)
- Parameters:
metadataDbName
- metadata database name
-
getTestSystemSipDirectory
public java.lang.String getTestSystemSipDirectory()
- Returns:
- folder to store integration test
-
setTestSystemSipDirectory
public void setTestSystemSipDirectory(java.lang.String testSystemSipDirectory)
- Parameters:
testSystemSipDirectory
- folder to store integration test
-
getTestSystemReportDirectory
public java.lang.String getTestSystemReportDirectory()
- Returns:
- folder to store report of system test
-
setTestSystemReportDirectory
public void setTestSystemReportDirectory(java.lang.String testSystemReportDirectory)
- Parameters:
testSystemReportDirectory
- folder to store report of system test
-
getPerformanceReportDirectory
public java.lang.String getPerformanceReportDirectory()
- Returns:
- performance report directory
-
setPerformanceReportDirectory
public void setPerformanceReportDirectory(java.lang.String performanceReportDirectory)
- Parameters:
performanceReportDirectory
- performance report directory
-
getSecureMode
public java.util.List<java.lang.String> getSecureMode()
get secure mode- Returns:
- secure mode
-
setSecureMode
public void setSecureMode(java.util.List<java.lang.String> secureMode)
- Parameters:
secureMode
-
-
getIngestMaxThread
public int getIngestMaxThread()
-
setIngestMaxThread
public void setIngestMaxThread(int ingestMaxThread)
-
getFunctionalAdminAdmin
public FunctionalAdminAdmin getFunctionalAdminAdmin()
-
setFunctionalAdminAdmin
public void setFunctionalAdminAdmin(FunctionalAdminAdmin functionalAdminAdmin)
-
getElasticsearchExternalMetadataMappings
public java.util.List<ElasticsearchExternalMetadataMapping> getElasticsearchExternalMetadataMappings()
-
setElasticsearchExternalMetadataMappings
public void setElasticsearchExternalMetadataMappings(java.util.List<ElasticsearchExternalMetadataMapping> elasticsearchExternalMetadataMappings)
-
getWorkspaceUrl
public java.lang.String getWorkspaceUrl()
-
setWorkspaceUrl
public WebApplicationConfig setWorkspaceUrl(java.lang.String workspaceUrl)
-
getClusterName
public java.lang.String getClusterName()
-
setClusterName
public WebApplicationConfig setClusterName(java.lang.String clusterName)
-
getElasticsearchNodes
public java.util.List<ElasticsearchNode> getElasticsearchNodes()
-
setElasticsearchNodes
public WebApplicationConfig setElasticsearchNodes(java.util.List<ElasticsearchNode> elasticsearchNodes)
-
getFunctionalAdminIndexationConfiguration
public FunctionalAdminIndexationConfiguration getFunctionalAdminIndexationConfiguration()
-
setFunctionalAdminIndexationConfiguration
public WebApplicationConfig setFunctionalAdminIndexationConfiguration(FunctionalAdminIndexationConfiguration functionalAdminIndexationConfiguration)
-
getMetadataIndexationConfiguration
public MetadataIndexationConfiguration getMetadataIndexationConfiguration()
-
setMetadataIndexationConfiguration
public WebApplicationConfig setMetadataIndexationConfiguration(MetadataIndexationConfiguration metadataIndexationConfiguration)
-
getLogbookIndexationConfiguration
public LogbookIndexationConfiguration getLogbookIndexationConfiguration()
-
setLogbookIndexationConfiguration
public WebApplicationConfig setLogbookIndexationConfiguration(LogbookIndexationConfiguration logbookIndexationConfiguration)
-
-