mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

gbellato
04.36.2007 86b33497f6d01df4b1185341d9c468d05a5970ca
refs
author gbellato <gbellato@localhost>
Monday, June 4, 2007 09:36 +0200
committer gbellato <gbellato@localhost>
Monday, June 4, 2007 09:36 +0200
commit86b33497f6d01df4b1185341d9c468d05a5970ca
tree b00ce3b41d918c387ff85f79656dbeb148c351bd tree | zip | gz
parent b66654ad0e12d83f17b2e84422fefbaf31509e86 view | diff
single valued attribute conflict resolution : issue 609

The resolution procedure for single valued attribute needs to be slightly different
from the mult-valued attribute procedure :
- less historical information can be kept
- the procedure must take into account the fact that only one value is allowed
at a given time.

This Change splits the AttrInfo class into 2 classes :
AttrInfoSingle and AttrInfoMultiple that both extends AttributeInfo.
The Historical class if also refactorized to become more generic, some code
was staying there but was indeed specific to multi-valued attribute.

This change also add a number of unit tests for single valued attribute, and enable
an old test from HistoricalTest.java that was previously disabled because
conflict resolution for single valued attribute was not yet implemented.
1 files deleted
3 files added
7 files modified
2805 ■■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/messages/ReplicationMessages.java 8 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/AttrInfo.java 240 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/AttrInfoMultiple.java 653 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/AttrInfoSingle.java 231 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/AttrInfoWithOptions.java 10 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/AttributeInfo.java 119 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/HistVal.java 12 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/replication/plugin/Historical.java 693 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/AttrInfoTest.java 32 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/HistoricalTest.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/replication/plugin/ModifyConflictTest.java 805 ●●●●● diff | view | raw | blame | history