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

matthew_swift
11.49.2007 a0005e703a1c267b53f089c0709e32c8a898c646
refs
author matthew_swift <matthew_swift@localhost>
Monday, June 11, 2007 16:49 +0200
committer matthew_swift <matthew_swift@localhost>
Monday, June 11, 2007 16:49 +0200
commita0005e703a1c267b53f089c0709e32c8a898c646
tree 54f1ae48826710d04ab598034127293fc139c136 tree | zip | gz
parent b0e6be77d61a4c2cf27dfa8e84ab6a069fd709d6 view | diff
Add support for specifying a "usage" string for string based property definitions which define a pattern constraint. The usage string is used when the syntax of a property needs to be displayed, for example in a CLI help screen or in server-side log messages when a bad property value is encountered. For example, a property whose values must be a valid UNIX mode could have the following string syntax definition:

<adm:string>
<adm:pattern>
<adm:regex>^[0-7][0-7][0-7]$</adm:regex>
<adm:usage>MODE</adm:usage>
<adm:synopsis>
An valid UNIX mode string. The mode string must contain three
digits between zero and seven.
</adm:synopsis>
</adm:pattern>
</adm:string>

Existing string based properties have been updated with appropriate usage.
12 files modified
170 ■■■■■ changed files
opends/resource/admin/admin.xsd 10 ●●●●● diff | view | raw | blame | history
opends/resource/admin/property-types/string.xsl 3 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/DebugTargetConfiguration.xml 1 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/FileBasedAccessLogPublisherConfiguration.xml 1 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/FileBasedDebugLogPublisherConfiguration.xml 1 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/FileBasedErrorLogPublisherConfiguration.xml 1 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/FixedTimeLogRotationPolicyConfiguration.xml 1 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/JEBackendConfiguration.xml 1 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/MultimasterDomainConfiguration.xml 1 ●●●● diff | view | raw | blame | history
opends/src/admin/defn/org/opends/server/admin/std/ReplicationServerConfiguration.xml 1 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/admin/StringPropertyDefinition.java 147 ●●●●● diff | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/admin/StringPropertyDefinitionTest.java 2 ●●● diff | view | raw | blame | history