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

Jean-Noël Rouvignac
04.38.2016 c6772b9cf6b2cb14b1b8127dcf4ec22f9ec9513c
refs
author Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Thursday, August 4, 2016 20:38 +0200
committer Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Monday, August 8, 2016 14:07 +0200
commitc6772b9cf6b2cb14b1b8127dcf4ec22f9ec9513c
tree 6aa88b6517c8e78ac7eb60ee78deebbaa253d6f7 tree | zip | gz
parent bd8fcc5a7de0344027c44027bbb70f58c0a472c5 view | diff
OPENDJ-3203 Control-panel: creating a new base dn does not complete

This problem exists since we added support for the pluggable backend in the control-panel.
The problem is that when the server is running, the control-panel should issue commands to the running server.
Instead it executed the logic to create the backend when the server is offline.

NewBaseDNPanel.java:
In createBackendOnline(), call the newly added BackendCreationHelper.createBackendOnline().
Removed addBackendDefaultIndexes() (duplicate of BackendCreationHelper.addBackendDefaultIndexes())
(it was trying to create the indexes twice)
Remove displayCreateAdditionalIndexesDone() (duplicate of printTaskDone())
Moved the code printing the equivalent commands from updateConfiguration(On|Off)line()
directly inside performTask() to avoid duplication.

BackendCreationHelper.java:
Added createBackendOnline().
Renamed DefaultIndex to CreateIndex.
Added toString()
2 files modified
163 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/NewBaseDNPanel.java 76 ●●●● diff | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/tools/BackendCreationHelper.java 87 ●●●●● diff | view | raw | blame | history