Class WebappMessage
java.lang.Object
ro.sync.ecss.extensions.api.webapp.WebappMessage
- Direct Known Subclasses:
UserActionRequiredMessage
Webapp server message that is presented on client side.
- Since:
- 16.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
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.static final int
Message type error.static final int
Message type info.static final int
This message represents a return value from an WebappAuthorOperation.static final int
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.static final int
Message type warning. -
Constructor Summary
ConstructorsConstructorDescriptionWebappMessage
(int type, String title, String message, boolean isUserGenerated) Constructor. -
Method Summary
-
Field Details
-
MESSAGE_TYPE_RESULT_VALUE
public static final int MESSAGE_TYPE_RESULT_VALUEThis message represents a return value from an WebappAuthorOperation.- See Also:
-
MESSAGE_TYPE_SYSTEM_APPLICATION
public static final int MESSAGE_TYPE_SYSTEM_APPLICATIONA 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_INFOMessage type info.- See Also:
-
MESSAGE_TYPE_WARN
public static final int MESSAGE_TYPE_WARNMessage type warning.- See Also:
-
MESSAGE_TYPE_ERROR
public static final int MESSAGE_TYPE_ERRORMessage type error.- See Also:
-
MESSAGE_TYPE_CUSTOM
public static final int MESSAGE_TYPE_CUSTOMA 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
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
-
getMessage
- Returns:
- Returns the message.
-
getTitle
- Returns:
- Returns the title.
-
getType
public int getType()- Returns:
- Returns the type.
-
isUserGenerated
public boolean isUserGenerated()- Returns:
- Returns the isUserGenerated.
-
equals
-
hashCode
public int hashCode() -
toString
-