|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.ControllerStatus
public class ControllerStatus
This class represents the status returned by a DataController.
| Field Summary | |
|---|---|
static ControllerStatus |
FORBIDDEN
This status represents a forbidden operation |
static ControllerStatus |
OK
This status represents a sucessfull operation |
static java.lang.String |
REVISION
|
| Fields inherited from interface com.jalios.util.JaliosConstants |
|---|
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR |
| Constructor Summary | |
|---|---|
ControllerStatus()
Constructs a new ControllerStatus |
|
ControllerStatus(int topic)
Constructs a new ControllerStatus with the given topic |
|
ControllerStatus(java.lang.String msg)
Constructs a new ControllerStatus with the given message |
|
| Method Summary | |
|---|---|
void |
addNestedStatus(ControllerStatus status)
Add a ControllerStatus to the list of nested status. |
java.lang.String |
getMessage(java.lang.String userLang)
Returns the status message. |
java.util.ArrayList<ControllerStatus> |
getNestedStatusList()
|
java.lang.String |
getProp()
|
int |
getTopic()
|
boolean |
hasFailed()
Returns whether or not the operation has failed |
boolean |
isForbidden()
Returns whether or not the operation is forbidden |
boolean |
isOK()
Returns whether or not the operation was OK (equal to not hasFailed()) |
void |
setMessage(java.lang.String msg)
Sets the status message. |
void |
setProp(java.lang.String prop)
Sets the property used for status message |
void |
setProp(java.lang.String prop,
java.lang.Object p1)
Sets the property |
void |
setProp(java.lang.String prop,
java.lang.Object[] propParam)
Sets the property |
void |
setProp(java.lang.String prop,
java.lang.Object p1,
java.lang.Object p2)
Sets the property |
void |
setProp(java.lang.String prop,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
Sets the property |
void |
setTopic(int v)
Sets the topic of the status |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String REVISION
public static final ControllerStatus OK
public static final ControllerStatus FORBIDDEN
| Constructor Detail |
|---|
public ControllerStatus()
public ControllerStatus(int topic)
topic - the topicpublic ControllerStatus(java.lang.String msg)
msg - the message| Method Detail |
|---|
public boolean isForbidden()
public boolean hasFailed()
public boolean isOK()
public void setProp(java.lang.String prop)
prop - the propertygetMessage(String)
public void setProp(java.lang.String prop,
java.lang.Object p1)
prop - the propertyp1 - the first property parametergetMessage(String)
public void setProp(java.lang.String prop,
java.lang.Object p1,
java.lang.Object p2)
prop - the propertyp1 - the first property parameterp2 - the second property parametergetMessage(String)
public void setProp(java.lang.String prop,
java.lang.Object p1,
java.lang.Object p2,
java.lang.Object p3)
prop - the propertyp1 - the first property parameterp2 - the second property parameterp3 - the third property parametergetMessage(String)
public void setProp(java.lang.String prop,
java.lang.Object[] propParam)
prop - the propertypropParam - the property parametersgetMessage(String)public java.lang.String getProp()
public java.lang.String getMessage(java.lang.String userLang)
userLang - the user language to be used to resolved the property
setProp(String),
setProp(String,Object[])public void setMessage(java.lang.String msg)
setProp(String),
setProp(String,Object[])public int getTopic()
public void setTopic(int v)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.ArrayList<ControllerStatus> getNestedStatusList()
public void addNestedStatus(ControllerStatus status)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||