public static final class Entries.DiffOptions extends Object
diffEntries
method. DiffOptions
specify which attributes are compared, how
they are compared, and the type of modifications generated.Modifier and Type | Method and Description |
---|---|
Entries.DiffOptions |
alwaysReplaceAttributes()
|
Entries.DiffOptions |
attributes(AttributeFilter attributeFilter)
Specifies an attribute filter which will be used to determine which
attributes will be compared.
|
Entries.DiffOptions |
attributes(String... attributeDescriptions)
Specifies the list of attributes to be compared.
|
Entries.DiffOptions |
replaceSingleValuedAttributes()
Requests that the generated changes should use the
REPLACE modification type when the
new attribute contains at most one attribute value. |
Entries.DiffOptions |
useExactMatching()
Requests that attribute values should be compared byte for byte,
rather than using their matching rules.
|
public Entries.DiffOptions attributes(AttributeFilter attributeFilter)
attributeFilter
- The filter which will be used to determine which
attributes will be compared.public Entries.DiffOptions attributes(String... attributeDescriptions)
attributeDescriptions
- The names of the attributes to be compared.public Entries.DiffOptions useExactMatching()
public Entries.DiffOptions alwaysReplaceAttributes()
REPLACE
modification type, rather
than a combination of DELETE
and
ADD
.
Note that the generated changes will not be reversible, nor will they be efficient for attributes containing many values (such as groups). Enabling this option may result in more efficient updates for single valued attributes and reduce the amount of replication meta-data that needs to be maintained..
public Entries.DiffOptions replaceSingleValuedAttributes()
REPLACE
modification type when the
new attribute contains at most one attribute value. All other changes
will use a combination of DELETE
then
ADD
.
Specifying this option will usually provide the best overall performance for single and multi-valued attribute updates, but the generated changes will probably not be reversible.
Copyright 2010-2017 ForgeRock AS.