Package | Description |
---|---|
org.forgerock.openam.ldap |
This package contains utility methods to ease/unify development when using the OpenDJ LDAP SDK.
|
org.forgerock.opendj.io |
Classes and interfaces providing I/O functionality.
|
org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
org.forgerock.opendj.ldap.messages |
Classes and interfaces for core LDAP requests/responses.
|
Modifier and Type | Method and Description |
---|---|
static 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 |
LDAPUtils.addAttributeToMapAsString(Attribute attribute,
Map<String,Set<String>> map)
Converts the Attribute to an attribute name, set of String values map and adds it to the map passed in.
|
static Set<String> |
LDAPUtils.getAttributeValuesAsStringSet(Attribute attribute)
Converts all the attribute values to a String Set.
|
Modifier and Type | Method and Description |
---|---|
static Attribute |
Ldap.readAttribute(Asn1Reader reader,
DecodeOptions options,
Schema schema)
Reads the next ASN.1 element from the provided
ASN1Reader as an Attribute . |
Modifier and Type | Method and Description |
---|---|
static void |
Ldap.writeAttribute(Asn1Writer writer,
Attribute attribute)
Writes an
Attribute to the provided Asn1Writer . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMapEntry<M extends Map<AttributeDescription,Attribute>>
Abstract implementation for
Map based entries. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractAttribute
This class provides a skeletal implementation of the
Attribute interface, to minimize the effort required to
implement this interface. |
class |
LinkedAttribute
An implementation of the
Attribute interface with predictable iteration order. |
Modifier and Type | Method and Description |
---|---|
default Attribute |
Entry.addAttributeIfAbsent(Attribute attribute)
Adds the provided attribute if it is not already present in this Entry and returns
null . |
Attribute |
AbstractMapEntry.addAttributeIfAbsent(Attribute attribute) |
static Attribute |
Attributes.emptyAttribute(AttributeDescription attributeDescription)
Returns a read-only empty attribute having the specified attribute
description.
|
static Attribute |
Attributes.emptyAttribute(String attributeDescription)
Returns a read-only empty attribute having the specified attribute
description.
|
Attribute |
Modification.getAttribute()
Returns the attribute containing the values to be modified.
|
default Attribute |
Entry.getAttribute(AttributeDescription attributeDescription)
Returns the named attribute contained in this entry, or
null if it is not included with this entry. |
Attribute |
AbstractMapEntry.getAttribute(AttributeDescription attributeDescription) |
default Attribute |
Entry.getAttribute(String attributeDescription)
Returns the named attribute contained in this entry, or
null if it is not included with 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.
|
Attribute |
AbstractMapEntry.mergeAttribute(Attribute attribute,
BiFunction<? super Attribute,? super Attribute,? extends Attribute> mergeFunction) |
static Attribute |
Attributes.renameAttribute(Attribute attribute,
AttributeDescription attributeDescription)
Returns a view of
attribute having a different attribute
description. |
static Attribute |
Attributes.renameAttribute(Attribute attribute,
String attributeDescription)
Returns a view of
attribute having a different attribute
description. |
static Attribute |
Attributes.singletonAttribute(AttributeDescription attributeDescription,
Object value)
Returns a read-only single-valued attribute having the specified
attribute description and value.
|
static Attribute |
Attributes.singletonAttribute(String attributeDescription,
Object value)
Returns a read-only single-valued attribute having the specified
attribute description.
|
Attribute |
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 of
attribute . |
static Attribute |
Attributes.virtualAttribute(Attribute attribute)
Returns a view of
attribute that is virtual, i.e. |
static Attribute |
Attributes.virtualAttribute(AttributeDescription attributeDescription)
Returns an empty virtual attribute.
|
static Attribute |
Attributes.virtualAttribute(AttributeDescription attributeDescription,
Supplier<?> attributeValueSupplier)
Returns a virtual attribute whose values will be supplied by provided
Supplier . |
Modifier and Type | Method and Description |
---|---|
Iterable<Attribute> |
Entry.getAllAttributes()
Returns an
Iterable containing all of the attributes in this entry. |
Iterable<Attribute> |
Entries.NullEntry.getAllAttributes() |
Iterable<Attribute> |
AbstractMapEntry.getAllAttributes() |
Iterable<Attribute> |
TreeMapEntry.getAllAttributes(AttributeDescription attributeDescription) |
default Iterable<Attribute> |
Entry.getAllAttributes(AttributeDescription attributeDescription)
Returns an
Iterable containing all the attributes in this entry having an attribute description which is
a sub-type of the provided attribute description. |
default Iterable<Attribute> |
Entry.getAllAttributes(String attributeDescription)
Returns an
Iterable containing all the attributes in this entry having an attribute description which is
a sub-type of the provided attribute description. |
Function<AttributeDescription,Attribute> |
DecodeOptions.getAttributeFactory()
Returns the function which will be used for creating new
Attribute instances when decoding attributes. |
Modifier and Type | Method and Description |
---|---|
default boolean |
Entry.addAttribute(Attribute attribute)
Ensures that this entry contains the provided attribute and values (optional operation).
|
boolean |
Entry.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues)
Ensures that this entry contains the provided attribute and values (optional operation).
|
boolean |
Entries.NullEntry.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues) |
boolean |
AbstractMapEntry.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues) |
default Attribute |
Entry.addAttributeIfAbsent(Attribute attribute)
Adds the provided attribute if it is not already present in this Entry and returns
null . |
Attribute |
AbstractMapEntry.addAttributeIfAbsent(Attribute attribute) |
default boolean |
Entry.containsAttribute(Attribute attribute,
Collection<? super ByteString> missingValues)
Returns
true if this entry contains all of the attribute values contained in attribute . |
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.
|
Attribute |
AbstractMapEntry.mergeAttribute(Attribute attribute,
BiFunction<? super Attribute,? super Attribute,? extends Attribute> mergeFunction) |
static AttributeParser |
AttributeParser.parseAttribute(Attribute attribute)
Returns an attribute parser for the provided attribute.
|
default boolean |
Entry.removeAttribute(Attribute attribute,
Collection<? super ByteString> missingValues)
Removes all of the attribute values contained in
attribute from this entry if it is present (optional
operation). |
boolean |
AbstractMapEntry.removeAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
static Attribute |
Attributes.renameAttribute(Attribute attribute,
AttributeDescription attributeDescription)
Returns a view of
attribute having a different attribute
description. |
static Attribute |
Attributes.renameAttribute(Attribute attribute,
String attributeDescription)
Returns a view of
attribute having a different attribute
description. |
default boolean |
Entry.replaceAttribute(Attribute attribute)
Adds all of the attribute values contained in
attribute to this entry, replacing any existing attribute
values (optional operation). |
boolean |
AbstractMapEntry.replaceAttribute(Attribute attribute) |
static Attribute |
Attributes.unmodifiableAttribute(Attribute attribute)
Returns a read-only view of
attribute . |
static Attribute |
Attributes.virtualAttribute(Attribute attribute)
Returns a view of
attribute that is virtual, i.e. |
Modifier and Type | Method and Description |
---|---|
AttributeFilter |
AttributeFilter.filterAttributes(Predicate<Attribute> filter)
Registers a predicate which should be applied to attributes selected by this attribute filter.
|
AttributeFilter |
AttributeFilter.mapAttributes(Function<Attribute,Attribute> mapper)
Registers a mapping function which should be applied to attributes selected by this attribute filter.
|
AttributeFilter |
AttributeFilter.mapAttributes(Function<Attribute,Attribute> mapper)
Registers a mapping function which should be applied to attributes selected by this attribute filter.
|
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.
|
Attribute |
AbstractMapEntry.mergeAttribute(Attribute attribute,
BiFunction<? super Attribute,? super Attribute,? extends Attribute> mergeFunction) |
Attribute |
AbstractMapEntry.mergeAttribute(Attribute attribute,
BiFunction<? super Attribute,? super Attribute,? extends Attribute> mergeFunction) |
Attribute |
AbstractMapEntry.mergeAttribute(Attribute attribute,
BiFunction<? super Attribute,? super Attribute,? extends Attribute> mergeFunction) |
DecodeOptions |
DecodeOptions.setAttributeFactory(Function<AttributeDescription,Attribute> factory)
Sets the function which will be used for creating new
Attribute instances when decoding attributes. |
Constructor and Description |
---|
LinkedAttribute(Attribute attribute)
Creates a new attribute having the same attribute description and attribute values as
attribute . |
Modification(ModificationType modificationType,
Attribute attribute)
Creates a new modification having the provided modification type and
attribute values to be updated.
|
Modifier and Type | Method and Description |
---|---|
Attribute |
SearchResultEntry.getAttribute(AttributeDescription attributeDescription) |
Attribute |
AddRequest.getAttribute(AttributeDescription attributeDescription) |
Attribute |
SearchResultEntry.getAttribute(String attributeDescription) |
Attribute |
AddRequest.getAttribute(String attributeDescription) |
Modifier and Type | Method and Description |
---|---|
Iterable<Attribute> |
SearchResultEntry.getAllAttributes() |
Iterable<Attribute> |
AddRequest.getAllAttributes() |
Iterable<Attribute> |
SearchResultEntry.getAllAttributes(AttributeDescription attributeDescription) |
Iterable<Attribute> |
AddRequest.getAllAttributes(AttributeDescription attributeDescription) |
Iterable<Attribute> |
SearchResultEntry.getAllAttributes(String attributeDescription) |
Iterable<Attribute> |
AddRequest.getAllAttributes(String attributeDescription) |
Modifier and Type | Method and Description |
---|---|
boolean |
SearchResultEntry.addAttribute(Attribute attribute) |
boolean |
AddRequest.addAttribute(Attribute attribute) |
boolean |
SearchResultEntry.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues) |
boolean |
AddRequest.addAttribute(Attribute attribute,
Collection<? super ByteString> duplicateValues) |
boolean |
SearchResultEntry.containsAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
boolean |
AddRequest.containsAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
boolean |
SearchResultEntry.removeAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
boolean |
AddRequest.removeAttribute(Attribute attribute,
Collection<? super ByteString> missingValues) |
boolean |
SearchResultEntry.replaceAttribute(Attribute attribute) |
boolean |
AddRequest.replaceAttribute(Attribute attribute) |
Copyright © 2010-2018, ForgeRock All Rights Reserved.