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

Nicolas Capponi
03.07.2014 09b4b3b022e722b1c7a34cf376eb2d11d0d1c8b1
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, March 3, 2014 17:07 +0100
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Monday, March 3, 2014 17:07 +0100
commit09b4b3b022e722b1c7a34cf376eb2d11d0d1c8b1
tree a6ffaa7f61b9d36393959a13270d731dfdb4fad0 tree | zip | gz
parent a58b4e473f520e4e5d7d352091e7934aa9465714 view | diff
Fix OPENDJ-1361 : Matching Rules and Syntaxes have a reference to a schema 
that can be changed, leading to unexpected behavior

* Duplicate syntaxes and matching rules when they are taken from
another schema
* Add new methods buildSyntax() and buildMatchingRule() to allow addition
without lazy initialization
* Add new method isValidated() to check if a syntax or a matching rule
has been validated
* Remove workarounds from unit tests
6 files modified
86 ■■■■ changed files
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/MatchingRule.java 10 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/SchemaBuilder.java 50 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/main/java/org/forgerock/opendj/ldap/schema/Syntax.java 10 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/CertificateExactMatchingRuleImplTest.java 3 ●●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/DistinguishedNameEqualityMatchingRuleTest.java 10 ●●●● diff | view | raw | blame | history
opendj-sdk/opendj-core/src/test/java/org/forgerock/opendj/ldap/schema/MatchingRuleTest.java 3 ●●●●● diff | view | raw | blame | history