T
- The type of settings.public class ArchiveEntrySettingsRule<T extends ArchiveEntrySettings<T>> extends Object
ArchiveEntrySettings
object with a
EntityToArchiveFilter
do decide which entries that it will apply to.
A rule can have different scopes. If it is added as a global rule to the
ArchiveBuilder
its scope is all entries added to the builder from
that point in time on. If it is used in in any of the builder's addRecursively
methods, its scope is all entries added by that method call.
The settings from this rule is combined with default settings and settings
from other rules as is described in the ArchiveBuilder
documentation.
ArchiveBuilder
Constructor and Description |
---|
ArchiveEntrySettingsRule(T settings,
org.entityfs.support.filter.Filter<EntryToArchive> filter)
Create a new rule.
|
Modifier and Type | Method and Description |
---|---|
org.entityfs.support.filter.Filter<EntryToArchive> |
getFilter()
Get the filter that determines which entries that this rule will apply
to.
|
T |
getSettings()
Get the entry settings for this rule.
|
public ArchiveEntrySettingsRule(T settings, org.entityfs.support.filter.Filter<EntryToArchive> filter)
settings
- The entry settings for the rule.filter
- The filter that is used to determine which entries this
rule will apply to. If this is null
, the rule will apply to all
entries that is within its scope. This kind of filters often implements
the marker interface EntityToArchiveFilter
.public T getSettings()
public org.entityfs.support.filter.Filter<EntryToArchive> getFilter()
EntityToArchiveFilter
.null
if this rule should apply to all
entries within its scope.