public abstract class AttrHistorical extends Object
Constructor and Description |
---|
AttrHistorical() |
Modifier and Type | Method and Description |
---|---|
abstract void |
assign(HistAttrModificationKey histKey,
org.forgerock.opendj.ldap.ByteString value,
CSN csn)
Assign the provided information to this object.
|
static AttrHistorical |
createAttributeHistorical(AttributeType type)
Create a new object from a provided attribute type.
|
abstract CSN |
getDeleteTime()
Returns the last time when this attribute was deleted.
|
abstract Set<AttrValueHistorical> |
getValuesHistorical()
Get the historical informations for this attribute Info.
|
abstract void |
processLocalOrNonConflictModification(CSN csn,
Modification mod)
This method calculates the historical information and update the hist
attribute to store the historical information for modify operation that
does not conflict with previous operation.
|
abstract boolean |
replayOperation(Iterator<Modification> modsIterator,
CSN csn,
Entry modifiedEntry,
Modification mod)
This method will be called when replaying an operation.
|
public AttrHistorical()
public abstract boolean replayOperation(Iterator<Modification> modsIterator, CSN csn, Entry modifiedEntry, Modification mod)
modsIterator
- The iterator on the mods from which the mod is extracted.csn
- The CSN associated to the operation.modifiedEntry
- The entry modified by this operation.mod
- The modification.true
if a conflict was detected, false
otherwise.public abstract void processLocalOrNonConflictModification(CSN csn, Modification mod)
It does not check if the operation to process is conflicting or not with previous operations. The caller is responsible for this.
csn
- The CSN of the operation to processmod
- The modify operation to process.public static AttrHistorical createAttributeHistorical(AttributeType type)
type
- the provided attribute type.public abstract Set<AttrValueHistorical> getValuesHistorical()
public abstract CSN getDeleteTime()
public abstract void assign(HistAttrModificationKey histKey, org.forgerock.opendj.ldap.ByteString value, CSN csn)
histKey
- the key to assign.value
- the associated value or null if there is no value;csn
- the associated CSN.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.