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

neil_a_wilson
02.27.2007 f2a87ab4022947f0cd48715d7c37393f0ebfd60a
opends/src/server/org/opends/server/messages/TaskMessages.java
@@ -236,6 +236,44 @@
  /**
   * The message ID for the message that will be used if a nonroot user attempts
   * to place the server in lockdown mode.  It does not take any arguments.
   */
  public static final int  MSGID_TASK_ENTERLOCKDOWN_NOT_ROOT =
       CATEGORY_MASK_TASK | SEVERITY_MASK_SEVERE_ERROR | 21;
  /**
   * The message ID for the message that will be used if a client not connected
   * via a loopback address attempts to place the server in lockdown mode.  It
   * does not take any arguments.
   */
  public static final int  MSGID_TASK_ENTERLOCKDOWN_NOT_LOOPBACK =
       CATEGORY_MASK_TASK | SEVERITY_MASK_SEVERE_ERROR | 22;
  /**
   * The message ID for the message that will be used if a nonroot user attempts
   * to remove the server from lockdown mode.  It does not take any arguments.
   */
  public static final int  MSGID_TASK_LEAVELOCKDOWN_NOT_ROOT =
       CATEGORY_MASK_TASK | SEVERITY_MASK_SEVERE_ERROR | 23;
  /**
   * The message ID for the message that will be used if a client not connected
   * via a loopback address attempts to remove the server from lockdown mode.
   * It does not take any arguments.
   */
  public static final int  MSGID_TASK_LEAVELOCKDOWN_NOT_LOOPBACK =
       CATEGORY_MASK_TASK | SEVERITY_MASK_SEVERE_ERROR | 24;
  /**
   * Associates a set of generic messages with the message IDs defined in this
   * class.
   */
@@ -310,6 +348,20 @@
    registerMessage(MSGID_TASK_INITIALIZE_INVALID_DN,
                    "Invalid DN provided with the Initialize task");
    registerMessage(MSGID_TASK_ENTERLOCKDOWN_NOT_ROOT,
                    "Only root users may place the server in lockdown mode");
    registerMessage(MSGID_TASK_ENTERLOCKDOWN_NOT_LOOPBACK,
                    "Only root users connected from a loopback address may " +
                    "place the server in lockdown mode");
    registerMessage(MSGID_TASK_LEAVELOCKDOWN_NOT_ROOT,
                    "Only root users may cause the server to leave lockdown " +
                    "mode");
    registerMessage(MSGID_TASK_LEAVELOCKDOWN_NOT_LOOPBACK,
                    "Only root users connected from a loopback address may " +
                    "cause the server to leave lockdown mode");
  }
}