public class ActionMessage
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADMIN_RESPONSE |
static java.lang.String |
EXPLANATION |
static java.lang.String |
NUMBER |
static java.lang.String |
TEXT |
static java.lang.String |
USER_RESPONSE |
| Constructor and Description |
|---|
ActionMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse) |
ActionMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse,
java.lang.Throwable exception)
Creates an ActionMessage that holds the current state of
com.ibm.ecm.mediator.BaseMediator.Messages, and
changes made to it. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
adminResponse()
returns message admin response
|
java.util.Map |
data()
returns modified message
|
java.lang.Throwable |
exception()
returns passed exception
|
java.lang.String |
explanation()
returns message explanation
|
boolean |
hasChanged()
Check whether user or plugin has made changes to the original message passed message
|
int |
number()
returns message number
|
java.lang.String |
text()
returns message text
|
void |
updateMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse)
This is used to make and track changes to the message object in focus.
|
java.lang.String |
userResponse()
returns message user response
|
public static final java.lang.String NUMBER
public static final java.lang.String TEXT
public static final java.lang.String EXPLANATION
public static final java.lang.String USER_RESPONSE
public static final java.lang.String ADMIN_RESPONSE
public ActionMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse,
java.lang.Throwable exception)
com.ibm.ecm.mediator.BaseMediator.Messages, and
changes made to it.number - The message numbertext - The message textexplanation - The message explanationuserResponse - The message user response textadminResponse - The message admin response textexception - The exception that occurs, if any
data A Map with similar member variable as com.ibm.ecm.mediator.BaseMediator.Messages that holds
the changes made by a user via plugin.
orig A Map with is an exact copy of the original message passed.public ActionMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse)
public int number()
public java.lang.String text()
public java.lang.String explanation()
public java.lang.String userResponse()
public java.lang.String adminResponse()
public java.lang.Throwable exception()
public java.util.Map data()
public boolean hasChanged()
public void updateMessage(int number,
java.lang.String text,
java.lang.String explanation,
java.lang.String userResponse,
java.lang.String adminResponse)