org.opends.server.util
Class AddChangeRecordEntry

java.lang.Object
  extended by org.opends.server.util.ChangeRecordEntry
      extended by org.opends.server.util.AddChangeRecordEntry

@PublicAPI(stability=VOLATILE,
           mayInstantiate=true,
           mayExtend=false,
           mayInvoke=true)
public final class AddChangeRecordEntry
extends ChangeRecordEntry

This class defines a data structure for a change record entry for an add operation. It includes a DN and a set of attributes, as well as methods to decode the entry.


Constructor Summary
AddChangeRecordEntry(DN dn, java.util.Map<AttributeType,java.util.List<Attribute>> attributes)
          Creates a new entry with the provided information.
 
Method Summary
 java.util.List<Attribute> getAttributes()
          Retrieves the entire set of attributes for this entry.
 ChangeOperationType getChangeOperationType()
          Retrieves the name of the change operation type.
 java.lang.String toString()
          Retrieves a string representation of this change record entry.
 
Methods inherited from class org.opends.server.util.ChangeRecordEntry
getDN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddChangeRecordEntry

public AddChangeRecordEntry(DN dn,
                            java.util.Map<AttributeType,java.util.List<Attribute>> attributes)
Creates a new entry with the provided information.

Parameters:
dn - The distinguished name for this entry. It must not be null.
attributes - The entry attributes for this operation. It must not be null.
Method Detail

getChangeOperationType

public ChangeOperationType getChangeOperationType()
Retrieves the name of the change operation type.

Specified by:
getChangeOperationType in class ChangeRecordEntry
Returns:
The name of the change operation type.

getAttributes

public java.util.List<Attribute> getAttributes()
Retrieves the entire set of attributes for this entry.

The returned list is read-only.

Returns:
The entire unmodifiable list of attributes for this entry.

toString

public java.lang.String toString()
Retrieves a string representation of this change record entry.

Specified by:
toString in class ChangeRecordEntry
Returns:
A string representation of this change record entry.