Class WebappMessage

java.lang.Object
ro.sync.ecss.extensions.api.webapp.WebappMessage
Direct Known Subclasses:
UserActionRequiredMessage

@API(type=NOT_EXTENDABLE, src=PUBLIC) public class WebappMessage extends Object
Webapp server message that is presented on client side.
Since:
16.0
  • Field Details

    • MESSAGE_TYPE_RESULT_VALUE

      public static final int MESSAGE_TYPE_RESULT_VALUE
      This message represents a return value from an WebappAuthorOperation.
      See Also:
    • MESSAGE_TYPE_SYSTEM_APPLICATION

      public static final int MESSAGE_TYPE_SYSTEM_APPLICATION
      A message type that should be handled by the webapp to open the url in the system application as it cannot be opened server-side.
      See Also:
    • MESSAGE_TYPE_INFO

      public static final int MESSAGE_TYPE_INFO
      Message type info.
      See Also:
    • MESSAGE_TYPE_WARN

      public static final int MESSAGE_TYPE_WARN
      Message type warning.
      See Also:
    • MESSAGE_TYPE_ERROR

      public static final int MESSAGE_TYPE_ERROR
      Message type error.
      See Also:
    • MESSAGE_TYPE_CUSTOM

      public static final int MESSAGE_TYPE_CUSTOM
      A message type that is the lowest designed to be intercepted by the plugin code on the client side and displayed in a custom way. All message types larger than this one are not handled by default by the webapp, but passed to the plugin code handlers.
      See Also:
  • Constructor Details

    • WebappMessage

      public WebappMessage(int type, String title, String message, boolean isUserGenerated)
      Constructor.
      Parameters:
      type - Message type.
      title - Message title.
      message - Message body.
      isUserGenerated - true if the message was generated by the user and should be presented in UI.
  • Method Details