Class ProcessListSettingsBuilder
java.lang.Object
com.aquima.interactions.process.impl.builder.ProcessListSettingsBuilder
A builder that creates an
IProcessListSettings
implementation that falls back to another
IIgnoreModeSettings
if both application specific and global setting is IgnoreMode.DEFAULT
.- Since:
- 9.8.5
- Author:
- Petru Galanton
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a builder that usesIgnoreModeSettingsBuilder
for building ignore mode settings.ProcessListSettingsBuilder
(IgnoreModeSettingsBuilder ignoreModeBuilder) Allows creating anIProcessListSettings
that uses a differentIIgnoreModeSettings
built by a differentIgnoreModeSettingsBuilder
that use different rules than the default. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theIProcessListSettings
implementation based on the settings configured so far.setFallback
(IIgnoreModeSettings fallback) Sets the fallback ignore mode settings in case the primary ignore mode settings return DEFAULT.setIgnoreMode
(IgnoreMode mode) Sets the global ignore mode.setIgnoreMode
(String appName, IgnoreMode mode) Sets application specific ignore mode.
-
Constructor Details
-
ProcessListSettingsBuilder
public ProcessListSettingsBuilder()Creates a builder that usesIgnoreModeSettingsBuilder
for building ignore mode settings. SeeIgnoreModeSettingsBuilder
for ignore-mode related rules that apply. -
ProcessListSettingsBuilder
Allows creating anIProcessListSettings
that uses a differentIIgnoreModeSettings
built by a differentIgnoreModeSettingsBuilder
that use different rules than the default. If this buildIIgnoreModeSettings
returnIgnoreMode.DEFAULT
, theIProcessListSettings
created by this builder will still use the fallback settings.- Parameters:
ignoreModeBuilder
- the builder used to create the ignore mode settings
-
-
Method Details
-
setFallback
Sets the fallback ignore mode settings in case the primary ignore mode settings return DEFAULT.- Parameters:
fallback
- the fallback ignore mode settings- Returns:
- this builder for method chaining
-
setIgnoreMode
Sets the global ignore mode.- Parameters:
mode
- the global ignore mode- Returns:
- this builder for method chaining
-
setIgnoreMode
Sets application specific ignore mode.- Parameters:
appName
- the application namemode
- the ignore mode- Returns:
- the builder for method chaining
-
build
Builds theIProcessListSettings
implementation based on the settings configured so far. The builder can be reused after this method is called, but it retains all configured settings.- Returns:
- an
IProcessListSettings
with the settings configured so far.
-