Package org.opends.server.extensions
Class EntryUUIDVirtualAttributeProvider
java.lang.Object
org.opends.server.api.VirtualAttributeProvider<EntryUuidVirtualAttributeCfg>
org.opends.server.extensions.EntryUUIDVirtualAttributeProvider
public final class EntryUUIDVirtualAttributeProvider
extends VirtualAttributeProvider<EntryUuidVirtualAttributeCfg>
This class implements a virtual attribute provider that is meant to serve the entryUUID operational attribute as
described in RFC 4530. Note that this should only be used for entries used in conjunction with data in private
backends (e.g., those holding the configuration, schema, monitor, and root DSE entries). Real user data should have
entry UUID values generated at the time the entries are added or imported.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(Entry entry, AttributeDescription attributeDescription) Generates an unmodifiable attribute with the values for the provided entry.boolean
Indicates whether this virtual attribute provider may generate multiple values.Methods inherited from class org.opends.server.api.VirtualAttributeProvider
finalizeVirtualAttributeProvider, getServerContext, initializeVirtualAttributeProvider, initializeVirtualAttributeProvider, isConfigurationAcceptable, tryProcessSearch
-
Constructor Details
-
EntryUUIDVirtualAttributeProvider
public EntryUUIDVirtualAttributeProvider()
-
-
Method Details
-
isMultiValued
public boolean isMultiValued()Description copied from class:VirtualAttributeProvider
Indicates whether this virtual attribute provider may generate multiple values.- Specified by:
isMultiValued
in classVirtualAttributeProvider<EntryUuidVirtualAttributeCfg>
- Returns:
true
if this virtual attribute provider may generate multiple values, orfalse
if not.
-
getAttribute
Description copied from class:VirtualAttributeProvider
Generates an unmodifiable attribute with the values for the provided entry.- Specified by:
getAttribute
in classVirtualAttributeProvider<EntryUuidVirtualAttributeCfg>
- Parameters:
entry
- The entry for which the values are to be generated.attributeDescription
- the attribute description corresponding to this virtual attribute- Returns:
- The unmodifiable attribute with the values generated for the provided entry. It may be empty, but it must
not be
null
.
-