public class AttrHistoricalMultiple extends AttrHistorical
Constructor and Description |
---|
AttrHistoricalMultiple()
Creates a new object.
|
AttrHistoricalMultiple(CSN deleteTime,
CSN updateTime,
Map<AttrValueHistorical,AttrValueHistorical> valuesHist)
Create a new object from the provided information.
|
Modifier and Type | Method and Description |
---|---|
void |
assign(HistAttrModificationKey histKey,
org.forgerock.opendj.ldap.ByteString value,
CSN csn)
Assign the provided information to this object.
|
CSN |
getDeleteTime()
Returns the last time when this attribute was deleted.
|
Set<AttrValueHistorical> |
getValuesHistorical()
Get the historical informations for this attribute Info.
|
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.
|
boolean |
replayOperation(Iterator<Modification> modsIterator,
CSN csn,
Entry modifiedEntry,
Modification m)
This method will be called when replaying an operation.
|
String |
toString() |
createAttributeHistorical
public AttrHistoricalMultiple(CSN deleteTime, CSN updateTime, Map<AttrValueHistorical,AttrValueHistorical> valuesHist)
deleteTime
- the last time this attribute was deletedupdateTime
- the last time this attribute was updatedvaluesHist
- the new attribute values when updated.public AttrHistoricalMultiple()
public CSN getDeleteTime()
AttrHistorical
getDeleteTime
in class AttrHistorical
public Set<AttrValueHistorical> getValuesHistorical()
AttrHistorical
getValuesHistorical
in class AttrHistorical
public boolean replayOperation(Iterator<Modification> modsIterator, CSN csn, Entry modifiedEntry, Modification m)
AttrHistorical
replayOperation
in class AttrHistorical
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.m
- The modification.true
if a conflict was detected, false
otherwise.public void processLocalOrNonConflictModification(CSN csn, Modification mod)
AttrHistorical
It does not check if the operation to process is conflicting or not with previous operations. The caller is responsible for this.
processLocalOrNonConflictModification
in class AttrHistorical
csn
- The CSN of the operation to processmod
- The modify operation to process.public void assign(HistAttrModificationKey histKey, org.forgerock.opendj.ldap.ByteString value, CSN csn)
AttrHistorical
assign
in class AttrHistorical
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.