|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ragic.s3.service.workflow.ScriptResponse
public class ScriptResponse
ScriptResponse is a class employed in Ragic Workflow that allows the application to send message to browser.
Before registering the content of the message to be sent, what should be done is setStatus.
User: liberation
Date: 2010/12/1
Time: 10:51:15 pm
Field Summary | |
---|---|
static java.lang.String |
CONFIRM
Used when asking confirmation in pre-workflow. |
static java.lang.String |
DEBUG
Used for debugging during development. |
static java.lang.String |
ERROR
Means that the program will fail to run. |
static java.lang.String |
INVALID
|
static java.lang.String |
SUCCESS
The default status meaning message will be sent successfully. |
static java.lang.String |
WARN
Means that the program will run with certain warnings. |
Constructor Summary | |
---|---|
ScriptResponse()
|
Method Summary | |
---|---|
ScriptAccount |
getAccountHandle()
For internal use only. |
ScriptLogger |
getLogger()
For internal use only. |
java.lang.String |
getMessage()
Returns message as a String appended by all messages having registered. |
java.util.List<java.lang.String> |
getMessages()
Returns message as a list of all messages having been registered. |
int |
getRootNodeId()
Returns current root node ID |
java.lang.String |
getRootValue()
Returns value of current root node . |
java.lang.String |
getStatus()
Returns current status. |
boolean |
ifConfirm()
Returns whether status equals CONFIRM or not. |
boolean |
ifExec()
Checks current status and returns true when it is SUCCESS, DEBUG, WARN, or CONFIRM, while one additional condition is that confirmed should be true when status is CONFIRMED. |
boolean |
ifReinit()
Returns true if status is either DEBUG or ERROR. |
boolean |
isConfirmed()
Returns value of confirmed. |
void |
setAccountHandle(ScriptAccount accountHandle)
For internal use only. |
void |
setConfirmed(boolean confirmed)
Registers new value to class variable confirmed. |
void |
setLogger(ScriptLogger logger)
For internal use only. |
void |
setMessage(java.lang.String message)
Registers the content of message. |
void |
setRootNodeId(int rootNodeId)
Registers a new rootNodeId of the form |
void |
setRootValue(java.lang.String rootValue)
Registers a new Value of root node. |
void |
setStatus(java.lang.String status)
Registers new status. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String SUCCESS
public static final java.lang.String DEBUG
public static final java.lang.String WARN
public static final java.lang.String CONFIRM
public static final java.lang.String INVALID
public static final java.lang.String ERROR
Constructor Detail |
---|
public ScriptResponse()
Method Detail |
---|
public java.lang.String getStatus()
ScriptResponse
public void setStatus(java.lang.String status)
status
- new status to be set.public boolean ifExec()
confirmed
should be true
when status is CONFIRMED.
true
when current status is SUCCESS, DEBUG, WARN, or CONFIRM, while one additional condition is that confirmed
should be true
when status is CONFIRMED.
false
otherwise.public void setConfirmed(boolean confirmed)
confirmed
- a boolean value to be setpublic boolean ifConfirm()
true
if current status is CONFIRM false
otherwise.public boolean isConfirmed()
public boolean ifReinit()
true
when status is either DEBUG or ERROR.false
otherwise.public java.util.List<java.lang.String> getMessages()
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the content of message to be showedpublic java.lang.String getRootValue()
public void setRootValue(java.lang.String rootValue)
rootValue
- a new value to be set as value of root node.public int getRootNodeId()
public void setRootNodeId(int rootNodeId)
rootNodeId
- a new value to be registered as root node IDpublic ScriptLogger getLogger()
public void setLogger(ScriptLogger logger)
public void setAccountHandle(ScriptAccount accountHandle)
public ScriptAccount getAccountHandle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |