Class UniquenessRequestControlProperties
java.lang.Object
com.unboundid.ldap.sdk.unboundidds.controls.UniquenessRequestControlProperties
- All Implemented Interfaces:
Serializable
@Mutable
@ThreadSafety(level=NOT_THREADSAFE)
public final class UniquenessRequestControlProperties
extends Object
implements Serializable
This class provides a data structure that holds a set of properties for use
in conjunction with the
The control must be created with either a set of attribute types or a filter (or both). See the
The following default values will be used for properties that are not specified:
UniquenessRequestControl.
NOTE: This class, and other classes within the
com.unboundid.ldap.sdk.unboundidds package structure, are only
supported for use against Ping Identity, UnboundID, and
Nokia/Alcatel-Lucent 8661 server products. These classes provide support
for proprietary functionality or for external specifications that are not
considered stable or mature enough to be guaranteed to work in an
interoperable way with other types of LDAP servers.
The control must be created with either a set of attribute types or a filter (or both). See the
UniquenessRequestControl class-level
documentation for details about how the server will behave if either or both
of these values are provided.
The following default values will be used for properties that are not specified:
- An empty set of attribute types.
-
A multiple attribute behavior of
UniquenessMultipleAttributeBehavior.UNIQUE_WITHIN_EACH_ATTRIBUTE. - No base DN.
- No filter.
- The control will not prevent conflicts with soft-deleted entries.
-
A pre-commit validation level of
UniquenessValidationLevel.ALL_SUBTREE_VIEWS. -
A post-commit validation level of
UniquenessValidationLevel.ALL_SUBTREE_VIEWS. - Do alert on conflicts detected during post-commit validation.
- Do not create a conflict prevention details entry.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of this uniqueness request control properties object with the provided filter and default values for all other properties as specified in the class-level javadoc documentation.UniquenessRequestControlProperties(String... attributeTypes) Creates a new instance of this uniqueness request control properties object with the provided set of attribute types and default values for all other properties as specified in the class-level javadoc documentation.UniquenessRequestControlProperties(Collection<String> attributeTypes) Creates a new instance of this uniqueness request control properties object with the provided set of attribute types and default values for all other properties as specified in the class-level javadoc documentation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether the server should raise an administrative alert if a conflict is detected during post-commit validation processing.booleanIndicates whether the server should create a temporary conflict prevention details entry before beginning pre-commit validation to provide better support for preventing conflicts.Retrieves the set of attribute types that the server will check for uniqueness conflicts.Retrieves the base DN that will be used for searches used to identify uniqueness conflicts, if defined.Retrieves a filter that will be used to identify uniqueness conflicts, if defined.Retrieves the behavior that the server should exhibit if multiple attribute types are configured.Retrieves the post-commit validation level, which will be used to identify any conflicts that were introduced by the request with which the control is associated, or by some other concurrent changed processed in the server.Retrieves the pre-commit validation level, which will be used to identify any conflicts before the associated request is processed.booleanIndicates whether the server should attempt to identify conflicts with soft-deleted entries.voidsetAlertOnPostCommitConflictDetection(boolean alertOnPostCommitConflictDetection) Specifies whether the server should raise an administrative alert if a conflict is detected during post-commit validation processing.voidsetAttributeTypes(String... attributeTypes) Specifies the set of attribute types that the server will check for uniqueness conflicts.voidsetAttributeTypes(Collection<String> attributeTypes) Specifies the set of attribute types that the server will check for uniqueness conflicts.voidSpecifies the base DN that will be used for searches used to identify uniqueness conflicts.voidsetCreateConflictPreventionDetailsEntry(boolean createConflictPreventionDetailsEntry) Specifies whether the server should create a temporary conflict prevention details entry before beginning pre-commit validation to provide better support for preventing conflicts.voidSpecifies a filter that will be used to identify uniqueness conflicts.voidsetMultipleAttributeBehavior(UniquenessMultipleAttributeBehavior multipleAttributeBehavior) Specifies the behavior that the server should exhibit if multiple attribute types are configured.voidsetPostCommitValidationLevel(UniquenessValidationLevel postCommitValidationLevel) Specifies the post-commit validation level, which will be used to identify any conflicts that were introduced by the request with which the control is associated, or by some other concurrent changed processed in the server.voidsetPreCommitValidationLevel(UniquenessValidationLevel preCommitValidationLevel) Specifies the pre-commit validation level, which will be used to identify any conflicts before the associated request is processed.voidsetPreventConflictsWithSoftDeletedEntries(boolean preventConflictsWithSoftDeletedEntries) Specifies whether the server should attempt to identify conflicts with soft-deleted entries.toString()Retrieves a string representation of this uniqueness request control properties object.voidtoString(StringBuilder buffer) Appends a string representation of this uniqueness request control properties object to the provided buffer.
-
Constructor Details
-
UniquenessRequestControlProperties
Creates a new instance of this uniqueness request control properties object with the provided set of attribute types and default values for all other properties as specified in the class-level javadoc documentation.- Parameters:
attributeTypes- The set of attribute types that the server will check for uniqueness conflicts. It must not benullor empty. The server should be configured with equality indexes for each of these attribute types.
-
UniquenessRequestControlProperties
Creates a new instance of this uniqueness request control properties object with the provided set of attribute types and default values for all other properties as specified in the class-level javadoc documentation.- Parameters:
attributeTypes- The set of attribute types that the server will check for uniqueness conflicts. It must not benullor empty. The server should be configured with equality indexes for each of these attribute types.
-
UniquenessRequestControlProperties
Creates a new instance of this uniqueness request control properties object with the provided filter and default values for all other properties as specified in the class-level javadoc documentation.- Parameters:
filter- The filter that the server will use to check for uniqueness conflicts. It must not benull.
-
-
Method Details
-
getAttributeTypes
Retrieves the set of attribute types that the server will check for uniqueness conflicts.- Returns:
- The set of attribute types that the server will check for uniqueness conflicts, or an empty set if only a filter should be used to identify conflicts.
-
setAttributeTypes
Specifies the set of attribute types that the server will check for uniqueness conflicts.- Parameters:
attributeTypes- The set of attribute types that the server will check for uniqueness conflicts. It must not benullor empty if no filter is configured. It may optionally benullor empty if a filter is provided. The server should be configured with an equality index for each of the provided attribute types.
-
setAttributeTypes
Specifies the set of attribute types that the server will check for uniqueness conflicts.- Parameters:
attributeTypes- The set of attribute types that the server will check for uniqueness conflicts. It must not benullor empty if no filter is configured. It may optionally benullor empty if a filter is provided. The server should be configured with an equality index for each of the provided attribute types.
-
getMultipleAttributeBehavior
Retrieves the behavior that the server should exhibit if multiple attribute types are configured.- Returns:
- The behavior that the server should exhibit if multiple attribute types are configured.
-
setMultipleAttributeBehavior
public void setMultipleAttributeBehavior(@NotNull UniquenessMultipleAttributeBehavior multipleAttributeBehavior) Specifies the behavior that the server should exhibit if multiple attribute types are configured.- Parameters:
multipleAttributeBehavior- The behavior that the server should exhibit if multiple attribute types are configured. This must not benull.
-
getBaseDN
Retrieves the base DN that will be used for searches used to identify uniqueness conflicts, if defined.- Returns:
- The base DN that will be used for searches used to identify
uniqueness conflicts, or
nullif the server should search below all public naming contexts.
-
setBaseDN
Specifies the base DN that will be used for searches used to identify uniqueness conflicts.- Parameters:
baseDN- The base DN that will be used for searches used to identify uniqueness conflicts. It may benullto indicate that the server should search below all public naming contexts.
-
getFilter
Retrieves a filter that will be used to identify uniqueness conflicts, if defined.- Returns:
- A filter that will be used to identify uniqueness conflicts, or
nullif no filter has been defined.
-
setFilter
Specifies a filter that will be used to identify uniqueness conflicts.- Parameters:
filter- A filter that will be used to identify uniqueness conflicts. It must not benullif no set of attribute types has been configured. It may optionally benullif a set of attribute types has been configured. If no attribute types are provided, then this filter should be indexed within the server.
-
preventConflictsWithSoftDeletedEntries
Indicates whether the server should attempt to identify conflicts with soft-deleted entries.- Returns:
trueif the server should identify conflicts with both regular entries and soft-deleted entries, orfalseif the server should only identify conflicts with regular entries.
-
setPreventConflictsWithSoftDeletedEntries
public void setPreventConflictsWithSoftDeletedEntries(boolean preventConflictsWithSoftDeletedEntries) Specifies whether the server should attempt to identify conflicts with soft-deleted entries.- Parameters:
preventConflictsWithSoftDeletedEntries- Indicates whether the server should attempt to identify conflicts with soft-deleted entries.
-
getPreCommitValidationLevel
Retrieves the pre-commit validation level, which will be used to identify any conflicts before the associated request is processed.- Returns:
- The pre-commit validation level.
-
setPreCommitValidationLevel
public void setPreCommitValidationLevel(@NotNull UniquenessValidationLevel preCommitValidationLevel) Specifies the pre-commit validation level, which will be used to identify any conflicts before the associated request is processed.- Parameters:
preCommitValidationLevel- The pre-commit validation level. It must not benull.
-
getPostCommitValidationLevel
Retrieves the post-commit validation level, which will be used to identify any conflicts that were introduced by the request with which the control is associated, or by some other concurrent changed processed in the server.- Returns:
- The post-commit validation level.
-
setPostCommitValidationLevel
public void setPostCommitValidationLevel(@NotNull UniquenessValidationLevel postCommitValidationLevel) Specifies the post-commit validation level, which will be used to identify any conflicts that were introduced by the request with which the control is associated, or by some other concurrent changed processed in the server.- Parameters:
postCommitValidationLevel- The post-commit validation level. It must not benull.
-
alertOnPostCommitConflictDetection
Indicates whether the server should raise an administrative alert if a conflict is detected during post-commit validation processing.- Returns:
trueif the server should raise an administrative alert if a conflict is detected during post-commit validation processing, orfalseif not.
-
setAlertOnPostCommitConflictDetection
Specifies whether the server should raise an administrative alert if a conflict is detected during post-commit validation processing.- Parameters:
alertOnPostCommitConflictDetection- Indicates whether the server should raise an administrative alert if a conflict is detected during post-commit validation processing.
-
createConflictPreventionDetailsEntry
Indicates whether the server should create a temporary conflict prevention details entry before beginning pre-commit validation to provide better support for preventing conflicts. If created, the entry will be removed after post-commit validation processing has completed.- Returns:
trueif the server should create a temporary conflict prevention details entry before beginning pre-commit validation, orfalseif not.
-
setCreateConflictPreventionDetailsEntry
Specifies whether the server should create a temporary conflict prevention details entry before beginning pre-commit validation to provide better support for preventing conflicts. If created, the entry will be removed after post-commit validation processing has completed.- Parameters:
createConflictPreventionDetailsEntry- Indicates whether the server should create a temporary conflict prevention details entry before beginning pre-commit validation.
-
toString
Retrieves a string representation of this uniqueness request control properties object. -
toString
Appends a string representation of this uniqueness request control properties object to the provided buffer.- Parameters:
buffer- The buffer to which the information should be appended.
-