Class UniquenessRequestControlProperties

java.lang.Object
com.unboundid.ldap.sdk.unboundidds.controls.UniquenessRequestControlProperties
All Implemented Interfaces:
Serializable

This class provides a data structure that holds a set of properties for use in conjunction with the 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:
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
    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.
    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 Type
    Method
    Description
    boolean
    Indicates whether the server should raise an administrative alert if a conflict is detected during post-commit validation processing.
    boolean
    Indicates 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.
    boolean
    Indicates whether the server should attempt to identify conflicts with soft-deleted entries.
    void
    setAlertOnPostCommitConflictDetection(boolean alertOnPostCommitConflictDetection)
    Specifies whether the server should raise an administrative alert if a conflict is detected during post-commit validation processing.
    void
    setAttributeTypes(String... attributeTypes)
    Specifies the set of attribute types that the server will check for uniqueness conflicts.
    void
    Specifies the set of attribute types that the server will check for uniqueness conflicts.
    void
    setBaseDN(String baseDN)
    Specifies the base DN that will be used for searches used to identify uniqueness conflicts.
    void
    setCreateConflictPreventionDetailsEntry(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.
    void
    setFilter(Filter filter)
    Specifies a filter that will be used to identify uniqueness conflicts.
    void
    Specifies the behavior that the server should exhibit if multiple attribute types are configured.
    void
    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.
    void
    Specifies the pre-commit validation level, which will be used to identify any conflicts before the associated request is processed.
    void
    setPreventConflictsWithSoftDeletedEntries(boolean preventConflictsWithSoftDeletedEntries)
    Specifies whether the server should attempt to identify conflicts with soft-deleted entries.
    Retrieves a string representation of this uniqueness request control properties object.
    void
    Appends a string representation of this uniqueness request control properties object to the provided buffer.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 be null or 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 be null or 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 be null.
  • 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

      public void setAttributeTypes(@Nullable String... attributeTypes)
      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 be null or empty if no filter is configured. It may optionally be null or empty if a filter is provided. The server should be configured with an equality index for each of the provided attribute types.
    • setAttributeTypes

      public void setAttributeTypes(@Nullable Collection<String> attributeTypes)
      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 be null or empty if no filter is configured. It may optionally be null or 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

      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 be null.
    • 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 null if the server should search below all public naming contexts.
    • setBaseDN

      public void setBaseDN(@Nullable String baseDN)
      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 be null to 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 null if no filter has been defined.
    • setFilter

      public void setFilter(@Nullable Filter filter)
      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 be null if no set of attribute types has been configured. It may optionally be null if 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:
      true if the server should identify conflicts with both regular entries and soft-deleted entries, or false if 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 be null.
    • 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 be null.
    • alertOnPostCommitConflictDetection

      Indicates whether the server should raise an administrative alert if a conflict is detected during post-commit validation processing.
      Returns:
      true if the server should raise an administrative alert if a conflict is detected during post-commit validation processing, or false if not.
    • setAlertOnPostCommitConflictDetection

      public void setAlertOnPostCommitConflictDetection(boolean alertOnPostCommitConflictDetection)
      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:
      true if the server should create a temporary conflict prevention details entry before beginning pre-commit validation, or false if not.
    • setCreateConflictPreventionDetailsEntry

      public void setCreateConflictPreventionDetailsEntry(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. 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.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this uniqueness request control properties object.
    • toString

      public void toString(@NotNull StringBuilder buffer)
      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.