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

boli
26.31.2007 f8ef0eed366445c5a341dbcc7882a7104c1cac1b
refs
author boli <boli@localhost>
Thursday, July 26, 2007 18:31 +0200
committer boli <boli@localhost>
Thursday, July 26, 2007 18:31 +0200
commitf8ef0eed366445c5a341dbcc7882a7104c1cac1b
tree 097019fdd037129b4e4322aec6b1ccf704b928ef tree | zip | gz
parent a6790d1086feb104152b0e4bb4a499d31da0dc12 view | diff
This fixes issue 1971 and allows partial non-append imports of a backend:

- When using import with backend IDs, the entire backend is only cleaned if the new clearBackend option is true or if the backend only contains
one base DN.
- If a backend's base DN is one of the include branch DNs, only that base DN will be cleared.
- If the include branch DN is below one of the backend's base DNs, a temporary entry container will be created for the same backend base DN. All
entries not in the include branch will be migrated to the temporary entry container. The entries from LDIF will then be imported. Lastly, All
entries in the exclude branches will be migrated. The original entry container is then deleted and the temporary entry container renamed.
- When using include branches, they all must be under one backend ID. If an exclude branch become orphaned by the LDIF import, the migrated
entries will be rejected due to non parent.
- The LDIFImport tool is updated to reflect the new behaviors and options.
- The import task is updated to reflect the new behaviors. The options are checked when the task is initialized instead at run time to catch
errors are soon as possible.

18 files modified
2502 ■■■■■ changed files
opends/resource/schema/02-config.ldif 9 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/AttributeIndex.java 18 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/BackendImpl.java 10 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/DatabaseContainer.java 28 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/EntryContainer.java 658 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/ImportContext.java 128 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/ImportJob.java 896 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/IndexMergeThread.java 8 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/IndexRebuildThread.java 84 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/RootContainer.java 104 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/backends/jeb/State.java 10 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/config/ConfigConstants.java 7 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/JebMessages.java 43 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/messages/ToolMessages.java 46 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tasks/ImportTask.java 268 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/ImportLDIF.java 151 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/types/LDIFImportConfig.java 32 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/StaticUtils.java 2 ●●● diff | view | raw | blame | history