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

Nicolas Capponi
09.58.2016 b095fbd6512fc2f80deaa75fc2325ad3034a1500
refs
author Nicolas Capponi <nicolas.capponi@forgerock.com>
Tuesday, August 9, 2016 11:58 +0200
committer Nicolas Capponi <nicolas.capponi@forgerock.com>
Friday, September 9, 2016 11:45 +0200
commitb095fbd6512fc2f80deaa75fc2325ad3034a1500
tree 00b165627f0e604541b8015605eab930bff77c06 tree | zip | gz
parent 3300da551d63df55ca61520966a459901d8e1a9b view | diff
OPENDJ-3089 Update SchemaBackend to use SchemaBuilder when replacing an entry

In SchemaBackend class
- Update replaceEntry() and all dependent methods, including methods addX()
/ removeX() for schema elements
- In addX() methods, rely on initial schema instead of an up-to-date schema
in order to avoid generating a full schema each time
- In removeX() methods, rely on up-to-date schema because it could wrgonly
throw an exception if based on initial schema

Replace calls to server's Schema static methods by calls to SchemaHandler
static methods
2 files modified
845 ■■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/backends/SchemaBackend.java 535 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/core/SchemaHandler.java 310 ●●●●● diff | view | raw | blame | history