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

neil_a_wilson
12.55.2006 6de04cee6bf226bb7df278099d5a8c8f4a4220f7
Create a new error log category for messages related to the Directory Server
password policy.
3 files modified
28 ■■■■■ changed files
opends/src/server/org/opends/server/messages/CoreMessages.java 11 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/types/ErrorLogCategory.java 9 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/util/ServerConstants.java 8 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -5716,6 +5716,15 @@
  /**
   * The message ID for the string that will be used for the error log category
   * for messages related to password policy processing.
   */
  public static final int MSGID_ERROR_CATEGORY_PASSWORD_POLICY =
       CATEGORY_MASK_CORE | SEVERITY_MASK_INFORMATIONAL | 546;
  /**
   * Associates a set of generic messages with the message IDs defined
   * in this class.
   */
@@ -5812,6 +5821,8 @@
    registerMessage(MSGID_ERROR_CATEGORY_EXTENDED_OPERATION,
                    ERROR_CATEGORY_EXTENDED_OPERATION);
    registerMessage(MSGID_ERROR_CATEGORY_EXTENSIONS, ERROR_CATEGORY_EXTENSIONS);
    registerMessage(MSGID_ERROR_CATEGORY_PASSWORD_POLICY,
                    ERROR_CATEGORY_PASSWORD_POLICY);
    registerMessage(MSGID_ERROR_CATEGORY_PLUGIN, ERROR_CATEGORY_PLUGIN);
    registerMessage(MSGID_ERROR_CATEGORY_REQUEST_HANDLING,
                    ERROR_CATEGORY_REQUEST);
opends/src/server/org/opends/server/types/ErrorLogCategory.java
@@ -108,6 +108,14 @@
  /**
   * The error log category that will be used for messages related to
   * password policy processing.
   */
  PASSWORD_POLICY(MSGID_ERROR_CATEGORY_PASSWORD_POLICY),
  /**
   * The error log category that will be used for messages related to
   * plugin processing.
   */
  PLUGIN(MSGID_ERROR_CATEGORY_PLUGIN),
@@ -195,6 +203,7 @@
    nameMap.put(ERROR_CATEGORY_EXTENDED_OPERATION,
                EXTENDED_OPERATION);
    nameMap.put(ERROR_CATEGORY_EXTENSIONS, EXTENSIONS);
    nameMap.put(ERROR_CATEGORY_PASSWORD_POLICY, PASSWORD_POLICY);
    nameMap.put(ERROR_CATEGORY_PLUGIN, PLUGIN);
    nameMap.put(ERROR_CATEGORY_REQUEST, REQUEST_HANDLING);
    nameMap.put(ERROR_CATEGORY_SASL_MECHANISM, SASL_MECHANISM);
opends/src/server/org/opends/server/util/ServerConstants.java
@@ -817,6 +817,14 @@
  /**
   * The English name for the error log category used for password policy
   * processing.
   */
  public static final String ERROR_CATEGORY_PASSWORD_POLICY = "PW_POLICY";
  /**
   * The English name for the error log category used for plugin processing.
   */
  public static final String ERROR_CATEGORY_PLUGIN = "PLUGIN";