Class LogbookConfiguration
- java.lang.Object
-
- fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
-
- fr.gouv.vitam.common.server.application.configuration.DbConfigurationImpl
-
- fr.gouv.vitam.logbook.common.server.config.LogbookConfiguration
-
- All Implemented Interfaces:
DbConfiguration
,VitamApplicationConfiguration
,VitamApplicationConfigurationInterface
public final class LogbookConfiguration extends DbConfigurationImpl
Logbook configuration class mapping
-
-
Field Summary
-
Fields inherited from class fr.gouv.vitam.common.server.application.configuration.DefaultVitamApplicationConfiguration
IS_A_MANDATORY_PARAMETER, jettyConfig
-
-
Constructor Summary
Constructors Constructor Description LogbookConfiguration()
LogbookConfiguration empty constructor for YAMLFactoryLogbookConfiguration(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes)
LogbookConfiguration constructorLogbookConfiguration(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes, boolean dbAuthentication, java.lang.String dbUserName, java.lang.String dbPassword)
LogbookConfiguration constructor with db authentication
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<LogbookEvent>
getAlertEvents()
java.lang.String
getClusterName()
java.util.List<ElasticsearchNode>
getElasticsearchNodes()
java.lang.Integer
getLifecycleTraceabilityMaxEntries()
Gets max event count to select during a single logbook lifecycle traceability workflow.java.lang.Integer
getLifecycleTraceabilityMaxRenewalDelay()
java.time.temporal.ChronoUnit
getLifecycleTraceabilityMaxRenewalDelayUnit()
java.lang.Integer
getLifecycleTraceabilityTemporizationDelay()
Gets temporization delay (in seconds) for recent logbook lifecycle eventsLogbookIndexationConfiguration
getLogbookTenantIndexation()
java.lang.Integer
getOperationTraceabilityMaxRenewalDelay()
java.time.temporal.ChronoUnit
getOperationTraceabilityMaxRenewalDelayUnit()
java.lang.Integer
getOperationTraceabilityTemporizationDelay()
Gets the temporization delay (in seconds) for recent logbook operation events.java.lang.Integer
getOperationTraceabilityThreadPoolSize()
java.util.List<java.lang.String>
getOpEventsNotInWf()
java.util.List<java.lang.String>
getOpLfcEventsToSkip()
java.util.List<java.lang.String>
getOpWithLFC()
java.lang.String
getP12LogbookFile()
java.lang.String
getP12LogbookPassword()
java.lang.String
getProcessingUrl()
int
getReconstructionMetricsCacheDurationInMinutes()
java.lang.String
getWorkspaceUrl()
void
setAlertEvents(java.util.List<LogbookEvent> alertEvents)
LogbookConfiguration
setClusterName(java.lang.String clusterName)
LogbookConfiguration
setElasticsearchNodes(java.util.List<ElasticsearchNode> elasticsearchNodes)
void
setLifecycleTraceabilityMaxEntries(java.lang.Integer lifecycleTraceabilityMaxEntries)
Sets max event count to select during a single logbook lifecycle traceability workflow.void
setLifecycleTraceabilityMaxRenewalDelay(java.lang.Integer lifecycleTraceabilityMaxRenewalDelay)
void
setLifecycleTraceabilityMaxRenewalDelayUnit(java.time.temporal.ChronoUnit lifecycleTraceabilityMaxRenewalDelayUnit)
void
setLifecycleTraceabilityTemporizationDelay(java.lang.Integer lifecycleTraceabilityTemporizationDelay)
Sets temporization delay (in seconds) for recent logbook lifecycle eventsLogbookConfiguration
setLogbookTenantIndexation(LogbookIndexationConfiguration logbookTenantIndexation)
void
setOperationTraceabilityMaxRenewalDelay(java.lang.Integer operationTraceabilityMaxRenewalDelay)
LogbookConfiguration
setOperationTraceabilityMaxRenewalDelayUnit(java.time.temporal.ChronoUnit operationTraceabilityMaxRenewalDelayUnit)
void
setOperationTraceabilityTemporizationDelay(java.lang.Integer operationTraceabilityTemporizationDelay)
Sets the temporization delay (in seconds) for recent logbook operation events.void
setOperationTraceabilityThreadPoolSize(int operationTraceabilityThreadPoolSize)
void
setOpEventsNotInWf(java.util.List<java.lang.String> opEventsNotInWf)
void
setOpLfcEventsToSkip(java.util.List<java.lang.String> opLfcEventsToSkip)
void
setOpWithLFC(java.util.List<java.lang.String> opWithLFC)
void
setP12LogbookFile(java.lang.String p12LogbookFile)
void
setP12LogbookPassword(java.lang.String p12LogbookPassword)
void
setProcessingUrl(java.lang.String processingUrl)
void
setReconstructionMetricsCacheDurationInMinutes(int reconstructionMetricsCacheDurationInMinutes)
void
setWorkspaceUrl(java.lang.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
getBaseUri, getBaseUrl, getJettyConfig, isAuthentication, isTenantFilter, setAuthentication, setBaseUri, setBaseUrl, setJettyConfig, setTenantFilter
-
-
-
-
Constructor Detail
-
LogbookConfiguration
public LogbookConfiguration(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes)
LogbookConfiguration constructor- Parameters:
mongoDbNodes
- database server IP addresses and portsdbName
- database nameclusterName
- eslasticsearch cluster nameelasticsearchNodes
- elasticsearch nodes
-
LogbookConfiguration
public LogbookConfiguration(java.util.List<MongoDbNode> mongoDbNodes, java.lang.String dbName, java.lang.String clusterName, java.util.List<ElasticsearchNode> elasticsearchNodes, boolean dbAuthentication, java.lang.String dbUserName, java.lang.String dbPassword)
LogbookConfiguration constructor with db authentication- Parameters:
mongoDbNodes
- database server IP addresses and portsdbName
- database nameclusterName
- eslasticsearch cluster nameelasticsearchNodes
- elasticsearch nodesdbAuthentication
- db authencationdbUserName
- db authencation userdbPassword
- db authencation password
-
LogbookConfiguration
public LogbookConfiguration()
LogbookConfiguration empty constructor for YAMLFactory
-
-
Method Detail
-
getP12LogbookPassword
public java.lang.String getP12LogbookPassword()
- Returns:
- password of p12
-
setP12LogbookPassword
public void setP12LogbookPassword(java.lang.String p12LogbookPassword)
- Parameters:
p12LogbookPassword
- file to set
-
getP12LogbookFile
public java.lang.String getP12LogbookFile()
- Returns:
- p12 logbook file
-
setP12LogbookFile
public void setP12LogbookFile(java.lang.String p12LogbookFile)
- Parameters:
p12LogbookFile
- file to set
-
getWorkspaceUrl
public java.lang.String getWorkspaceUrl()
- Returns:
- url workspace
-
setWorkspaceUrl
public void setWorkspaceUrl(java.lang.String workspaceUrl)
- Parameters:
workspaceUrl
- to set
-
getProcessingUrl
public java.lang.String getProcessingUrl()
- Returns:
- url processing
-
setProcessingUrl
public void setProcessingUrl(java.lang.String processingUrl)
- Parameters:
processingUrl
- to set
-
getClusterName
public java.lang.String getClusterName()
- Returns:
- the clusterName
-
setClusterName
public LogbookConfiguration setClusterName(java.lang.String clusterName)
- Parameters:
clusterName
- the clusterName to set- Returns:
- this
-
getElasticsearchNodes
public java.util.List<ElasticsearchNode> getElasticsearchNodes()
- Returns:
- the elasticsearchNodes
-
setElasticsearchNodes
public LogbookConfiguration setElasticsearchNodes(java.util.List<ElasticsearchNode> elasticsearchNodes)
- Parameters:
elasticsearchNodes
- the elasticsearchNodes to set- Returns:
- LogbookConfiguration
-
getAlertEvents
public java.util.List<LogbookEvent> getAlertEvents()
- Returns:
- the alertEvents
-
setAlertEvents
public void setAlertEvents(java.util.List<LogbookEvent> alertEvents)
- Parameters:
alertEvents
- to set
-
getOpWithLFC
public java.util.List<java.lang.String> getOpWithLFC()
- Returns:
- opWithLFC
-
setOpWithLFC
public void setOpWithLFC(java.util.List<java.lang.String> opWithLFC)
- Parameters:
opWithLFC
- to set
-
getOpLfcEventsToSkip
public java.util.List<java.lang.String> getOpLfcEventsToSkip()
- Returns:
- opLfcEventsToSkip
-
setOpLfcEventsToSkip
public void setOpLfcEventsToSkip(java.util.List<java.lang.String> opLfcEventsToSkip)
- Parameters:
opLfcEventsToSkip
- to set
-
getOpEventsNotInWf
public java.util.List<java.lang.String> getOpEventsNotInWf()
- Returns:
- opEventsNotInWf
-
setOpEventsNotInWf
public void setOpEventsNotInWf(java.util.List<java.lang.String> opEventsNotInWf)
- Parameters:
opEventsNotInWf
- to set
-
getOperationTraceabilityTemporizationDelay
public java.lang.Integer getOperationTraceabilityTemporizationDelay()
Gets the temporization delay (in seconds) for recent logbook operation events.- Returns:
- The temporization delay (in seconds).
-
setOperationTraceabilityTemporizationDelay
public void setOperationTraceabilityTemporizationDelay(java.lang.Integer operationTraceabilityTemporizationDelay)
Sets the temporization delay (in seconds) for recent logbook operation events.
-
getLifecycleTraceabilityTemporizationDelay
public java.lang.Integer getLifecycleTraceabilityTemporizationDelay()
Gets temporization delay (in seconds) for recent logbook lifecycle events
-
setLifecycleTraceabilityTemporizationDelay
public void setLifecycleTraceabilityTemporizationDelay(java.lang.Integer lifecycleTraceabilityTemporizationDelay)
Sets temporization delay (in seconds) for recent logbook lifecycle events
-
getLifecycleTraceabilityMaxEntries
public java.lang.Integer getLifecycleTraceabilityMaxEntries()
Gets max event count to select during a single logbook lifecycle traceability workflow.
-
setLifecycleTraceabilityMaxEntries
public void setLifecycleTraceabilityMaxEntries(java.lang.Integer lifecycleTraceabilityMaxEntries)
Sets max event count to select during a single logbook lifecycle traceability workflow.
-
getOperationTraceabilityMaxRenewalDelay
public java.lang.Integer getOperationTraceabilityMaxRenewalDelay()
-
setOperationTraceabilityMaxRenewalDelay
public void setOperationTraceabilityMaxRenewalDelay(java.lang.Integer operationTraceabilityMaxRenewalDelay)
-
getOperationTraceabilityMaxRenewalDelayUnit
public java.time.temporal.ChronoUnit getOperationTraceabilityMaxRenewalDelayUnit()
-
setOperationTraceabilityMaxRenewalDelayUnit
public LogbookConfiguration setOperationTraceabilityMaxRenewalDelayUnit(java.time.temporal.ChronoUnit operationTraceabilityMaxRenewalDelayUnit)
-
getLifecycleTraceabilityMaxRenewalDelay
public java.lang.Integer getLifecycleTraceabilityMaxRenewalDelay()
-
setLifecycleTraceabilityMaxRenewalDelay
public void setLifecycleTraceabilityMaxRenewalDelay(java.lang.Integer lifecycleTraceabilityMaxRenewalDelay)
-
getLifecycleTraceabilityMaxRenewalDelayUnit
public java.time.temporal.ChronoUnit getLifecycleTraceabilityMaxRenewalDelayUnit()
-
setLifecycleTraceabilityMaxRenewalDelayUnit
public void setLifecycleTraceabilityMaxRenewalDelayUnit(java.time.temporal.ChronoUnit lifecycleTraceabilityMaxRenewalDelayUnit)
-
getOperationTraceabilityThreadPoolSize
public java.lang.Integer getOperationTraceabilityThreadPoolSize()
-
setOperationTraceabilityThreadPoolSize
public void setOperationTraceabilityThreadPoolSize(int operationTraceabilityThreadPoolSize)
-
getLogbookTenantIndexation
public LogbookIndexationConfiguration getLogbookTenantIndexation()
-
setLogbookTenantIndexation
public LogbookConfiguration setLogbookTenantIndexation(LogbookIndexationConfiguration logbookTenantIndexation)
-
getReconstructionMetricsCacheDurationInMinutes
public int getReconstructionMetricsCacheDurationInMinutes()
-
setReconstructionMetricsCacheDurationInMinutes
public void setReconstructionMetricsCacheDurationInMinutes(int reconstructionMetricsCacheDurationInMinutes)
-
-