Class ReadOnlyEntry

java.lang.Object
com.unboundid.ldap.sdk.Entry
com.unboundid.ldap.sdk.ReadOnlyEntry
All Implemented Interfaces:
LDIFRecord, Serializable
Direct Known Subclasses:
AlarmEntry, AlertEntry, ChangeLogEntry, DraftChuLDAPLogSchema00Entry, EffectiveRightsEntry, JoinedEntry, RootDSE, SearchResultEntry, SoftDeletedEntry

This class defines an Entry subclass in which the contents of the entry cannot be modified. Any attempt to call a method which could be used to alter the contents of the entry will result in an UnsupportedOperationException.
See Also:
  • Constructor Details

    • ReadOnlyEntry

      public ReadOnlyEntry(@NotNull String dn, @NotNull Attribute... attributes)
      Creates a new read-only entry with the provided DN and set of attributes.
      Parameters:
      dn - The DN for this entry. It must not be null.
      attributes - The set of attributes for this entry. It must not be null.
    • ReadOnlyEntry

      public ReadOnlyEntry(@NotNull String dn, @Nullable Schema schema, @NotNull Attribute... attributes)
      Creates a new read-only entry with the provided DN and set of attributes.
      Parameters:
      dn - The DN for this entry. It must not be null.
      schema - The schema to use for operations involving this entry. It may be null if no schema is available.
      attributes - The set of attributes for this entry. It must not be null.
    • ReadOnlyEntry

      public ReadOnlyEntry(@NotNull DN dn, @NotNull Attribute... attributes)
      Creates a new read-only entry with the provided DN and set of attributes.
      Parameters:
      dn - The DN for this entry. It must not be null.
      attributes - The set of attributes for this entry. It must not be null.
    • ReadOnlyEntry

      public ReadOnlyEntry(@NotNull DN dn, @Nullable Schema schema, @NotNull Attribute... attributes)
      Creates a new read-only entry with the provided DN and set of attributes.
      Parameters:
      dn - The DN for this entry. It must not be null.
      schema - The schema to use for operations involving this entry. It may be null if no schema is available.
      attributes - The set of attributes for this entry. It must not be null.
    • ReadOnlyEntry

      Creates a new read-only entry with the provided DN and set of attributes.
      Parameters:
      dn - The DN for this entry. It must not be null.
      attributes - The set of attributes for this entry. It must not be null.
    • ReadOnlyEntry

      Creates a new read-only entry with the provided DN and set of attributes.
      Parameters:
      dn - The DN for this entry. It must not be null.
      schema - The schema to use for operations involving this entry. It may be null if no schema is available.
      attributes - The set of attributes for this entry. It must not be null.
    • ReadOnlyEntry

      Creates a new read-only entry with the provided DN and set of attributes.
      Parameters:
      dn - The DN for this entry. It must not be null.
      attributes - The set of attributes for this entry. It must not be null.
    • ReadOnlyEntry

      Creates a new read-only entry with the provided DN and set of attributes.
      Parameters:
      dn - The DN for this entry. It must not be null.
      schema - The schema to use for operations involving this entry. It may be null if no schema is available.
      attributes - The set of attributes for this entry. It must not be null.
    • ReadOnlyEntry

      public ReadOnlyEntry(@NotNull Entry entry)
      Creates a new read-only entry from the provided Entry.
      Parameters:
      entry - The entry to use to create this read-only entry.
    • ReadOnlyEntry

      public ReadOnlyEntry(@NotNull String... ldifLines) throws LDIFException
      Creates a new read-only entry from the provided LDIF representation.
      Parameters:
      ldifLines - The set of lines that comprise an LDIF representation of the entry. It must not be null or empty.
      Throws:
      LDIFException - If the provided lines cannot be decoded as an entry in LDIF format.
    • ReadOnlyEntry

      public ReadOnlyEntry(@Nullable Schema schema, @NotNull String... ldifLines) throws LDIFException
      Creates a new read-only entry from the provided LDIF representation.
      Parameters:
      schema - The schema to use for operations involving this entry. It may be null if no schema is available.
      ldifLines - The set of lines that comprise an LDIF representation of the entry. It must not be null or empty.
      Throws:
      LDIFException - If the provided lines cannot be decoded as an entry in LDIF format.
  • Method Details