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

matthew_swift
19.31.2007 8228fb82f3ad657adf7832eb05c624bf48c4a30e
refs
author matthew_swift <matthew_swift@localhost>
Wednesday, September 19, 2007 02:31 +0200
committer matthew_swift <matthew_swift@localhost>
Wednesday, September 19, 2007 02:31 +0200
commit8228fb82f3ad657adf7832eb05c624bf48c4a30e
tree 53351b88ecb7954c231da77a613075c043a4cd78 tree | zip | gz
parent 20e31f579ebc4518ace5f1d5448c46f752b4f96a view | diff
More changes relating to issue 1449: aggregation support.

This change adds some niceness to dsconfig so that it will ask users if they want to enable a referenced component which is currently disabled. If the user says yes, dsconfig will enable the referenced component and commit the change. If this fails (e.g. the current state of the component means that it cannot be enabled), the user is given the opportunity to edit the properties of the component in order to fix the problems. Users a free to cancel out at any moment.

As part of this change I also refactored some of the error handling. One advantage of this is that if a problem occurs while using dsconfig non-interactively, more helpful messages will be displayed in certain situations. For example, if there are missing mandatory properties, a table is displayed showing the mandatory properties and their syntax.
11 files modified
1193 ■■■■ changed files
opends/src/messages/messages/dsconfig.properties 17 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/client/MissingMandatoryPropertiesException.java 46 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/client/OperationRejectedException.java 81 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/client/ldap/LDAPDriver.java 9 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/client/ldap/LDAPManagedObject.java 30 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/client/spi/AbstractManagedObject.java 12 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/client/spi/Driver.java 4 ●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java 178 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/CreateSubCommandHandler.java 380 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/DSConfig.java 51 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/SetPropSubCommandHandler.java 385 ●●●● diff | view | raw | blame | history