@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface ReadOnlyAddRequest extends ReadOnlyLDAPRequest
AddRequest
.
Modifier and Type | Method and Description |
---|---|
AddRequest |
duplicate()
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
AddRequest |
duplicate(Control[] controls)
Creates a new instance of this LDAP request that may be modified without
impacting this request.
|
Attribute |
getAttribute(java.lang.String attributeName)
Retrieves the specified attribute from this add request.
|
java.util.List<Attribute> |
getAttributes()
Retrieves the set of attributes for this add request.
|
java.lang.String |
getDN()
Retrieves the DN for this add request.
|
boolean |
hasAttribute(Attribute attribute)
Indicates whether this add request contains the specified attribute.
|
boolean |
hasAttribute(java.lang.String attributeName)
Indicates whether this add request contains the specified attribute.
|
boolean |
hasAttributeValue(java.lang.String attributeName,
byte[] attributeValue)
Indicates whether this add request contains an attribute with the given
name and value.
|
boolean |
hasAttributeValue(java.lang.String attributeName,
byte[] attributeValue,
MatchingRule matchingRule)
Indicates whether this add request contains an attribute with the given
name and value.
|
boolean |
hasAttributeValue(java.lang.String attributeName,
java.lang.String attributeValue)
Indicates whether this add request contains an attribute with the given
name and value.
|
boolean |
hasAttributeValue(java.lang.String attributeName,
java.lang.String attributeValue,
MatchingRule matchingRule)
Indicates whether this add request contains an attribute with the given
name and value.
|
boolean |
hasObjectClass(java.lang.String objectClassName)
Indicates whether this add request contains the specified object class.
|
Entry |
toEntry()
Retrieves an
Entry object containing the DN and attributes of this
add request. |
java.lang.String[] |
toLDIF()
Retrieves a string array whose lines contain an LDIF representation of the
corresponding add change record.
|
LDIFAddChangeRecord |
toLDIFChangeRecord()
Retrieves an LDIF add change record with the contents of this add request.
|
java.lang.String |
toLDIFString()
Retrieves an LDIF string representation of this add request.
|
followReferrals, getControl, getControlList, getControls, getReferralConnector, getResponseTimeoutMillis, hasControl, hasControl, toCode, toString, toString
@NotNull java.lang.String getDN()
@NotNull java.util.List<Attribute> getAttributes()
@Nullable Attribute getAttribute(@NotNull java.lang.String attributeName)
attributeName
- The name of the attribute to retrieve. It must not
be null
.null
if it does not exist in
the add request.boolean hasAttribute(@NotNull java.lang.String attributeName)
attributeName
- The name of the attribute for which to make the
determination. It must not be null
.true
if this add request contains the specified attribute,
or false
if not.boolean hasAttribute(@NotNull Attribute attribute)
true
if this add request contains an attribute
with the same name and exact set of values.attribute
- The attribute for which to make the determination. It
must not be null
.true
if this add request contains the specified attribute,
or false
if not.boolean hasAttributeValue(@NotNull java.lang.String attributeName, @NotNull java.lang.String attributeValue)
attributeName
- The name of the attribute for which to make the
determination. It must not be null
.attributeValue
- The value for which to make the determination. It
must not be null
.true
if this add request contains an attribute with the
specified name and value, or false
if not.boolean hasAttributeValue(@NotNull java.lang.String attributeName, @NotNull java.lang.String attributeValue, @NotNull MatchingRule matchingRule)
attributeName
- The name of the attribute for which to make the
determination. It must not be null
.attributeValue
- The value for which to make the determination. It
must not be null
.matchingRule
- The matching rule to use to make the determination.
It must not be null
.true
if this add request contains an attribute with the
specified name and value, or false
if not.boolean hasAttributeValue(@NotNull java.lang.String attributeName, @NotNull byte[] attributeValue)
attributeName
- The name of the attribute for which to make the
determination. It must not be null
.attributeValue
- The value for which to make the determination. It
must not be null
.true
if this add request contains an attribute with the
specified name and value, or false
if not.boolean hasAttributeValue(@NotNull java.lang.String attributeName, @NotNull byte[] attributeValue, @NotNull MatchingRule matchingRule)
attributeName
- The name of the attribute for which to make the
determination. It must not be null
.attributeValue
- The value for which to make the determination. It
must not be null
.matchingRule
- The matching rule to use to make the determination.
It must not be null
.true
if this add request contains an attribute with the
specified name and value, or false
if not.boolean hasObjectClass(@NotNull java.lang.String objectClassName)
objectClassName
- The name of the object class for which to make the
determination. It must not be null
.true
if this add request contains the specified object
class, or false
if not.@NotNull Entry toEntry()
Entry
object containing the DN and attributes of this
add request.Entry
object containing the DN and attributes of this
add request.@NotNull AddRequest duplicate()
duplicate
in interface ReadOnlyLDAPRequest
@NotNull AddRequest duplicate(@Nullable Control[] controls)
duplicate
in interface ReadOnlyLDAPRequest
controls
- The set of controls to include in the duplicate request.@NotNull LDIFAddChangeRecord toLDIFChangeRecord()
@NotNull java.lang.String[] toLDIF()
@NotNull java.lang.String toLDIFString()