Enum Class DocumentServerOperation

java.lang.Object
java.lang.Enum<DocumentServerOperation>
org.exoplatform.onlyoffice.constant.DocumentServerOperation
All Implemented Interfaces:
Serializable, Comparable<DocumentServerOperation>, Constable

public enum DocumentServerOperation extends Enum<DocumentServerOperation>
The purpose of a token exchanged with ONLYOFFICE Docs, carried in its root operation claim. The Document Server refuses a token whose purpose does not match the service it is sent to, and marks the tokens it sends itself with CALLBACK or DOWNLOAD.
  • Enum Constant Details

    • COMMAND

      public static final DocumentServerOperation COMMAND
      A request to the command service (/coauthoring/CommandService.ashx).
    • CONVERTER

      public static final DocumentServerOperation CONVERTER
      A request to the conversion service (/converter).
    • DOCBUILDER

      public static final DocumentServerOperation DOCBUILDER
      A request to the Document Builder service (/docbuilder).
    • CALLBACK

      public static final DocumentServerOperation CALLBACK
      A save or status callback the Document Server posts to the addon.
    • DOWNLOAD

      public static final DocumentServerOperation DOWNLOAD
      A file the Document Server downloads from the addon.
  • Field Details

  • Method Details

    • values

      public static DocumentServerOperation[] 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 DocumentServerOperation 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
    • getClaimValue

      public String getClaimValue()
      Returns:
      the value of the operation claim for this purpose