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

Mark Craig
24.21.2011 3734ea108c4e68691b9b969370d740404764b5a7
Fix OPENDJ-215: Config reference duration syntax and aci syntax pages not found
1 files added
1 files modified
32 ■■■■ changed files
opends/resource/admin/config-guide/duration-syntax.html 24 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/admin/doc/ConfigGuideGeneration.java 8 ●●●● patch | view | raw | blame | history
opends/resource/admin/config-guide/duration-syntax.html
New file
@@ -0,0 +1,24 @@
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>OpenDJ - Duration Syntax</title>
<link rel="stylesheet" type="text/css" href="opends-config.css">
</head>
<body>
<div style="font-size:11px;margin-top:-10px;margin-bottom:-10px; text-align:right"><a href="index.html" target="_top">Configuration Reference Home</a></div>
<h2>Duration Syntax</h2>
<p>Durations are specified with positive integers and unit specifiers. Unit specifiers include the following.</p>
<ul>
<li><tt>ms</tt> - milliseconds</li>
<li><tt>s</tt> - seconds</li>
<li><tt>m</tt> - minutes</li>
<li><tt>h</tt> - hours</li>
<li><tt>d</tt> - days</li>
<li><tt>w</tt> - weeks</li>
</ul>
<p>An duration of 1 week is specified as <tt>1w</tt>. A duration of 1 week, 1 day, 1 hour, 1 minute, and 1 second is specified as <tt>1w1d1h1m1s</tt>.</p>
<p>The value -1 is reserved for unlimited durations. An unlimited duration is generally specified with the string <tt>unlimited</tt>.</p>
<p>Not all properties taking a duration allow all unit specifiers. For example, milliseconds are not allowed if durations smaller than one second are not permitted.</p>
<p>Some properties taking a duration also require minimum or maximum durations.</p>
</body>
</html>
opends/src/server/org/opends/server/admin/doc/ConfigGuideGeneration.java
@@ -83,7 +83,7 @@
  private final static String ACI_SYNTAX_REL_URL =
    "/doc/admin-guide/OpenDJ-Admin-Guide.html#chap-privileges-acis";
  private final static String DURATION_SYNTAX_REL_URL =
    "/404.html";
    "duration-syntax.html";
  private final String CSS_FILE = "opends-config.css";
  private final String MAIN_FILE = "index.html";
@@ -142,15 +142,15 @@
      OpenDJWiki = "http://wikis.forgerock.org/confluence/display/OPENDJ";
    }
    aciSyntaxPage = OpenDJHome + ACI_SYNTAX_REL_URL;
    durationSyntaxPage = OpenDJHome + DURATION_SYNTAX_REL_URL; // TODO: missing
    OpenDJHome = properties.getProperty("OpenDJHome");
    if (OpenDJHome == null) {
      // Default is current OpenDJ project home
      OpenDJHome = "http://opendj.forgerock.org";
    }
    aciSyntaxPage = OpenDJHome + ACI_SYNTAX_REL_URL;
    durationSyntaxPage = DURATION_SYNTAX_REL_URL;
    ConfigGuideGeneration myGen = new ConfigGuideGeneration();
    myGen.generate();
  }