Uses of Interface
org.forgerock.opendj.ldap.Attribute
Package
Description
This package contains utility methods to ease/unify development when using the OpenDJ LDAP SDK.
Classes and interfaces providing I/O functionality.
Classes and interfaces for core types including connections, entries, and
attributes.
Classes and interfaces for common LDAP controls.
Classes and interfaces for core LDAP requests/responses.
-
Uses of Attribute in org.forgerock.openam.ldap
Modifier and TypeMethodDescriptionstatic void
LDAPUtils.addAttributeToMapAsByteArray
(Attribute attribute, Map<String, byte[][]> map) Converts the Attribute to an attribute name, 2-dimensional byte array map and adds it to the map passed in.static void
Converts the Attribute to an attribute name, set of String values map and adds it to the map passed in.LDAPUtils.getAttributeValuesAsStringSet
(Attribute attribute) Converts all the attribute values to a String Set. -
Uses of Attribute in org.forgerock.opendj.io
Modifier and TypeMethodDescriptionstatic Attribute
Ldap.readAttribute
(Asn1Reader reader, DecodeOptions options, Schema schema) Reads the next ASN.1 element from the providedASN1Reader
as anAttribute
.Modifier and TypeMethodDescriptionstatic void
Ldap.writeAttribute
(Asn1Writer writer, Attribute attribute) Writes anAttribute
to the providedAsn1Writer
. -
Uses of Attribute in org.forgerock.opendj.ldap
Modifier and TypeClassDescriptionclass
AbstractMapEntry<M extends Map<AttributeDescription,
Attribute>> Abstract implementation forMap
based entries.Modifier and TypeClassDescriptionclass
This class provides a skeletal implementation of theAttribute
interface, to minimize the effort required to implement this interface.final class
An implementation of theAttribute
interface with predictable iteration order.Modifier and TypeMethodDescriptionAbstractMapEntry.addAttributeIfAbsent
(Attribute attribute) default Attribute
Entry.addAttributeIfAbsent
(Attribute attribute) Adds the provided attribute if it is not already present in this Entry and returnsnull
.static Attribute
Attributes.emptyAttribute
(String attributeDescription) Returns a read-only empty attribute having the specified attribute description.static Attribute
Attributes.emptyAttribute
(AttributeDescription attributeDescription) Returns a read-only empty attribute having the specified attribute description.final Attribute
AbstractMapEntry.getAttribute
(AttributeDescription attributeDescription) default Attribute
Entry.getAttribute
(String attributeDescription) Returns the named attribute contained in this entry, ornull
if it is not included with this entry.default Attribute
Entry.getAttribute
(AttributeDescription attributeDescription) Returns the named attribute contained in this entry, ornull
if it is not included with this entry.Modification.getAttribute()
Returns the attribute containing the values to be modified.AbstractMapEntry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) default Attribute
Entry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) Adds the provided attribute if it is not already present in this Entry.default Attribute
Adds all of the provided attribute values to this attribute if they are not already present (optional operation).default Attribute
Attribute.put
(ByteString value) Addsvalue
to this attribute if it is not already present (optional operation).static Attribute
Attributes.renameAttribute
(Attribute attribute, String attributeDescription) Returns a view ofattribute
having a different attribute description.static Attribute
Attributes.renameAttribute
(Attribute attribute, AttributeDescription attributeDescription) Returns a view ofattribute
having a different attribute description.static Attribute
Attributes.singletonAttribute
(String attributeDescription, Object value) Returns a read-only single-valued attribute having the specified attribute description.static Attribute
Attributes.singletonAttribute
(AttributeDescription attributeDescription, Object value) Returns a read-only single-valued attribute having the specified attribute description and value.Ava.toAttribute()
Returns a single valued attribute having the same attribute type and value as this AVA.static Attribute
Attributes.unmodifiableAttribute
(Attribute attribute) Returns a read-only view ofattribute
.static Attribute
Attributes.virtualAttribute
(Attribute attribute) Returns a view ofattribute
that is virtual, i.e.static Attribute
Attributes.virtualAttribute
(AttributeDescription attributeDescription) Returns an empty virtual attribute.static Attribute
Attributes.virtualAttribute
(AttributeDescription attributeDescription, Supplier<Collection<?>> attributeValuesSupplier) Returns a virtual attribute whose values will be supplied by providedSupplier
.Modifier and TypeMethodDescriptionAbstractMapEntry.getAllAttributes()
Entries.NullEntry.getAllAttributes()
Entry.getAllAttributes()
Returns anIterable
containing all of the attributes in this entry.Entry.getAllAttributes
(String attributeDescription) Returns anIterable
containing all the attributes in this entry having an attribute description which is a sub-type of the provided attribute description.Entry.getAllAttributes
(AttributeDescription attributeDescription) Returns anIterable
containing all the attributes in this entry having an attribute description which is a sub-type of the provided attribute description.TreeMapEntry.getAllAttributes
(AttributeDescription attributeDescription) DecodeOptions.getAttributeFactory()
Returns the function which will be used for creating newAttribute
instances when decoding attributes.Modifier and TypeMethodDescriptionfinal boolean
AbstractMapEntry.addAttribute
(Attribute attribute, Collection<? super ByteString> duplicateValues) boolean
Entries.NullEntry.addAttribute
(Attribute attribute, Collection<? super ByteString> duplicateValues) default boolean
Entry.addAttribute
(Attribute attribute) Ensures that this entry contains the provided attribute and values (optional operation).default boolean
Entry.addAttribute
(Attribute attribute, Collection<? super ByteString> duplicateValues) Ensures that this entry contains the provided attribute and values (optional operation).AbstractMapEntry.addAttributeIfAbsent
(Attribute attribute) default Attribute
Entry.addAttributeIfAbsent
(Attribute attribute) Adds the provided attribute if it is not already present in this Entry and returnsnull
.default boolean
Entry.containsAttribute
(Attribute attribute, Collection<? super ByteString> missingValues) Returnstrue
if this entry contains all of the attribute values contained inattribute
.abstract boolean
Entries.DiffStrategy.isDifferent
(Attribute fromAttribute, Attribute toAttribute) Returnstrue
if the two attributes are different according to this strategy.default ConditionResult
Indicates whether the provided attribute should be considered a match for this assertion value according to the matching rule.AbstractMapEntry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) default Attribute
Entry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) Adds the provided attribute if it is not already present in this Entry.static ByteString
AbstractAttribute.normalizeValue
(Attribute attribute, ByteString value) Returns the normalized form ofvalue
normalized usingattribute
's equality matching rule.static AttributeParser
AttributeParser.parseAttribute
(Attribute attribute) Returns an attribute parser for the provided attribute.final boolean
AbstractMapEntry.removeAttribute
(Attribute attribute, Collection<? super ByteString> missingValues) default boolean
Entry.removeAttribute
(Attribute attribute, Collection<? super ByteString> missingValues) Removes all of the attribute values contained inattribute
from this entry if it is present (optional operation).static Attribute
Attributes.renameAttribute
(Attribute attribute, String attributeDescription) Returns a view ofattribute
having a different attribute description.static Attribute
Attributes.renameAttribute
(Attribute attribute, AttributeDescription attributeDescription) Returns a view ofattribute
having a different attribute description.boolean
AbstractMapEntry.replaceAttribute
(Attribute attribute) default boolean
Entry.replaceAttribute
(Attribute attribute) Adds all of the attribute values contained inattribute
to this entry, replacing any existing attribute values (optional operation).static Attribute
Attributes.unmodifiableAttribute
(Attribute attribute) Returns a read-only view ofattribute
.static Attribute
Attributes.virtualAttribute
(Attribute attribute) Returns a view ofattribute
that is virtual, i.e.Modifier and TypeMethodDescriptionMemoryBackend.addVirtualAttributes
(AttributeDescription attributeDescription, BiFunction<Dn, MemoryBackend, Attribute> virtualAttributeFactory) Adds a virtual attribute to the backend.AttributeFilter.filterAttributes
(Predicate<Attribute> filter) Registers a predicate which should be applied to attributes selected by this attribute filter.AttributeFilter.mapAttributes
(Function<Attribute, Attribute> mapper) Registers a mapping function which should be applied to attributes selected by this attribute filter.AttributeFilter.mapAttributes
(Function<Attribute, Attribute> mapper) Registers a mapping function which should be applied to attributes selected by this attribute filter.AbstractMapEntry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) AbstractMapEntry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) AbstractMapEntry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) default Attribute
Entry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) Adds the provided attribute if it is not already present in this Entry.default Attribute
Entry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) Adds the provided attribute if it is not already present in this Entry.default Attribute
Entry.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) Adds the provided attribute if it is not already present in this Entry.DecodeOptions.setAttributeFactory
(Function<AttributeDescription, Attribute> factory) Sets the function which will be used for creating newAttribute
instances when decoding attributes.ModifierConstructorDescriptionLinkedAttribute
(Attribute attribute) Creates a new attribute having the same attribute description and attribute values asattribute
.Modification
(ModificationType modificationType, Attribute attribute) Creates a new modification having the provided modification type and attribute values to be updated. -
Uses of Attribute in org.forgerock.opendj.ldap.controls
Modifier and TypeMethodDescriptionMatchedValuesRequestControl.keepMatchedValues
(Schema schema) Returns a mapping function which, given an attribute, returns a new attribute containing only the values matching the filters defined in this control, or an empty attribute if none of the values match.MatchedValuesRequestControl.keepMatchedValues
(Schema schema) Returns a mapping function which, given an attribute, returns a new attribute containing only the values matching the filters defined in this control, or an empty attribute if none of the values match. -
Uses of Attribute in org.forgerock.opendj.ldap.messages
Modifier and TypeMethodDescriptionAddRequest.addAttributeIfAbsent
(Attribute attribute) AddRequest.getAttribute
(String attributeDescription) AddRequest.getAttribute
(AttributeDescription attributeDescription) AddRequest.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) Modifier and TypeMethodDescriptionAddRequest.getAllAttributes()
AddRequest.getAllAttributes
(String attributeDescription) AddRequest.getAllAttributes
(AttributeDescription attributeDescription) Modifier and TypeMethodDescriptionboolean
AddRequest.addAttribute
(Attribute attribute) boolean
AddRequest.addAttribute
(Attribute attribute, Collection<? super ByteString> duplicateValues) AddRequest.addAttributeIfAbsent
(Attribute attribute) boolean
AddRequest.containsAttribute
(Attribute attribute, Collection<? super ByteString> missingValues) AddRequest.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) boolean
AddRequest.removeAttribute
(Attribute attribute, Collection<? super ByteString> missingValues) boolean
AddRequest.replaceAttribute
(Attribute attribute) Modifier and TypeMethodDescriptionAddRequest.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) AddRequest.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction) AddRequest.mergeAttribute
(Attribute attribute, BiFunction<? super Attribute, ? super Attribute, ? extends Attribute> mergeFunction)