Class ApplicationMode

java.lang.Object
com.aquima.interactions.portal.ApplicationMode
All Implemented Interfaces:
Serializable

public final class ApplicationMode extends Object implements Serializable
The application mode class defines the several modes of operation an application can run in. Depending on the mode of operation, certain errors or warnings may be acceptable, while they would be fatal in another mode of operation.
The following three types are defined:
  • DEV The development mode is intended to use during the development of an application. This mode of operation ignores all but the fatal errors, and will treat all other errors as warning.
  • ACC Deprecated. The acceptance mode is intended to use during the testing of an application, and as such is the most strict mode. This mode of operation will not accept any error or warning.
  • PROD The production mode is intended to use during the final deployment of an application. This mode of operation is less strict, as it will accepts warning.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ApplicationMode
    Predefined application mode for development.
    static final ApplicationMode
    Predefined application mode for production.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This method will compare the object passed to this method with the application mode, and return a boolean indicating whether the object passed exactly identifies the same application mode.
    This method returns the level of errors that are still acceptable for this mode of operation.
    This method returns the name of the application mode.
    int
     
     
    This method will lookup a predefined application mode definition based on the name passed to the method.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • DEV

      public static final ApplicationMode DEV
      Predefined application mode for development.
    • PROD

      public static final ApplicationMode PROD
      Predefined application mode for production.
  • Method Details

    • valueOf

      public static ApplicationMode valueOf(String name)
      This method will lookup a predefined application mode definition based on the name passed to the method.
      Parameters:
      name - The name of the application mode for which the definition is requested.
      Returns:
      The application mode definition corresponding to the specified name.
    • getName

      public String getName()
      This method returns the name of the application mode.
      Returns:
      The name of the application mode.
    • getAcceptableErrorLevel

      public Severity getAcceptableErrorLevel()
      This method returns the level of errors that are still acceptable for this mode of operation.
      Returns:
      The error level that is still acceptable for this mode of operation.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      This method will compare the object passed to this method with the application mode, and return a boolean indicating whether the object passed exactly identifies the same application mode.
      Overrides:
      equals in class Object
      Parameters:
      obj - Object which should be compared to this application mode.
      Returns:
      boolean indicating whether the object passed is identical to this application mode.
    • toString

      public String toString()
      Overrides:
      toString in class Object