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

matthew_swift
31.48.2007 bedc84d04ab003c2dfec1119e95478c59599c043
refs
author matthew_swift <matthew_swift@localhost>
Tuesday, July 31, 2007 14:48 +0200
committer matthew_swift <matthew_swift@localhost>
Tuesday, July 31, 2007 14:48 +0200
commitbedc84d04ab003c2dfec1119e95478c59599c043
tree 76c1447cf66d43fc6eb42742f3649421e7ef7200 tree | zip | gz
parent cd687a23d8eb8ad3e818b62a07e135d61a51f35d view | diff
Fix issue 1991: dsconfig: split "component" field in list-properties

Make the list-properties sub-command more consistent with the rest of dsconfig. Rather than display the full component name in the left hand column, dsconfig now splits the name into two columns: the first being the generic component name and the second containing the sub-type name. For example, previously an LDAP connection handler would have the component name "ldap-connection-handler". Now the name is split in two using the generic name "connection-handler" and the sub-type "ldap". This is consistent with the create-xxx sub-commands, where the generic name is typically the sub-command suffix (e.g. create-connection-handler) and the sub-type is the value of the -t flag (e.g. ldap).

To make the sub-command more usable, it now has the following three additional options:

-c, --category {CATEGORY}
The category of components whose properties should be described
-t, --type {TYPE}
The type of components whose properties should be described. The value for
TYPE must be one of the component types associated with the CATEGORY
specified using the "--category" option
--inherited
Modifies the display output to show the inherited properties of components

The CATEGORY can be either a generic component name (e.g. backend or connection-handler), or it can be one of the --help-xxx categories (e.g. logging). The TYPE, if specified, must be a sub-type associated with the specified CATEGORY (e.g. ldap or jmx for connection handlers). The option "inherited" forces the sub-command to display all the properties associated with each component type, including inherited properties.

All the options are optional (e.g. the -t option does not require the -c option).
4 files modified
559 ■■■■ changed files
opends/src/server/org/opends/server/messages/ToolMessages.java 81 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/ArgumentExceptionFactory.java 53 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/HelpSubCommandHandler.java 423 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/dsconfig/ListSubCommandHandler.java 2 ●●● diff | view | raw | blame | history