Package at.letto.dto

Enum Class RestStatus

java.lang.Object
java.lang.Enum<RestStatus>
at.letto.dto.RestStatus
All Implemented Interfaces:
Serializable, Comparable<RestStatus>, Constable

public enum RestStatus extends Enum<RestStatus>
Zustand der Übertragung einer Rest-Verbindung. Dieser Status wird normalerweiser vom REST-Server geliefert, kann aber bei einem Übertragungsfehler auch vom Rest-Service gesetzt werden.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Datensatz wurde erstellt
    Datensatz wurde erfolgreich gelöscht
    keine Rechte für diese Anfrage
    Datensatz kann nicht gespeichert werden, da inkonsistente Daten vorhanden sind!
    keine Verbindung zum Rest-Server möglich!
    Datensatz kann nicht gefunden werden
    erfolgreich ausgeführt, wird beim lesen von Daten verwendet
    Restkey Fehlerhaft oder nicht vorhanden
    (STANDARD) Wenn das DTO bei einem Request verwendet wird, sollte der RestStatus auf UNDEFINED liegen
    Datensatz kann nicht gespeichert werden, da eine Schlüsselverletzung eines unique-Keys vorliegt!
    Datensatz wurde gespeichert, wird beim Schreiben von Daten verwendet
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static RestStatus
    Returns the enum constant of this class with the specified name.
    static RestStatus[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • UNDEFINED

      public static final RestStatus UNDEFINED
      (STANDARD) Wenn das DTO bei einem Request verwendet wird, sollte der RestStatus auf UNDEFINED liegen
    • NOCONNECTION

      public static final RestStatus NOCONNECTION
      keine Verbindung zum Rest-Server möglich!
    • OK

      public static final RestStatus OK
      erfolgreich ausgeführt, wird beim lesen von Daten verwendet
    • UPDATED

      public static final RestStatus UPDATED
      Datensatz wurde gespeichert, wird beim Schreiben von Daten verwendet
    • DELETED

      public static final RestStatus DELETED
      Datensatz wurde erfolgreich gelöscht
    • CREATED

      public static final RestStatus CREATED
      Datensatz wurde erstellt
    • UNIQUEFAIL

      public static final RestStatus UNIQUEFAIL
      Datensatz kann nicht gespeichert werden, da eine Schlüsselverletzung eines unique-Keys vorliegt!
    • INKONSISTENT

      public static final RestStatus INKONSISTENT
      Datensatz kann nicht gespeichert werden, da inkonsistente Daten vorhanden sind!
    • RESTKEYFAIL

      public static final RestStatus RESTKEYFAIL
      Restkey Fehlerhaft oder nicht vorhanden
    • FORBIDDEN

      public static final RestStatus FORBIDDEN
      keine Rechte für diese Anfrage
    • NOTFOUND

      public static final RestStatus NOTFOUND
      Datensatz kann nicht gefunden werden
  • Constructor Details

    • RestStatus

      private RestStatus()
  • Method Details

    • values

      public static RestStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RestStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null