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

matthew_swift
12.37.2007 2ba8e81b3d42cdacb4bf15d77ca681660595ee46
refs
author matthew_swift <matthew_swift@localhost>
Wednesday, September 12, 2007 01:37 +0200
committer matthew_swift <matthew_swift@localhost>
Wednesday, September 12, 2007 01:37 +0200
commit2ba8e81b3d42cdacb4bf15d77ca681660595ee46
tree 1653129f2f9ea061af708f420058c67b383ea4dd tree | zip | gz
parent 0d9ea078ac3baf87caf703afe82085ab0fbebac0 view | diff
Partial fix for issue 1449: improve server-side referential integrity support.

Previous to this change referential integrity was only enforced when a referencing (aggregating) component was added or modified. The support did not prevent a referenced component from being disabled or deleted. This change adds this remaining support:

* a component cannot be deleted if it is referenced by one or more components

* a component cannot be disabled if it is referenced by one or more components (it is possible to restrict this constraint so that it only applies when the referencing component(s) are enabled)

This implementation only enforces referential integrity for referencing components which have listeners associated with them. For example, if component A references component B, then referential integrity will only be enforced automatically if component A has a change listener registered against it, or if it is "added" using an add listener that was registered against its parent. In effect, referential integrity is only enforced for components which are in use or are about to be used.
5 files modified
1100 ■■■■ changed files
opendj-sdk/opends/src/messages/messages/admin.properties 16 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/server/org/opends/server/admin/AggregationPropertyDefinition.java 307 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/MockLDAPProfile.java 2 ●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/TestCfg.java 14 ●●●●● diff | view | raw | blame | history
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/admin/server/AggregationTest.java 761 ●●●● diff | view | raw | blame | history