| 
||||||||||
| 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 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(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.  | 
 String | 
getMessage(String userLang)
Returns the status message.  | 
 ArrayList | 
getNestedStatusList()
 | 
 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(String msg)
Sets the status message.  | 
 void | 
setProp(String prop)
Sets the property used for status message  | 
 void | 
setProp(String prop,
        Object p1)
Sets the property  | 
 void | 
setProp(String prop,
        Object[] propParam)
Sets the property  | 
 void | 
setProp(String prop,
        Object p1,
        Object p2)
Sets the property  | 
 void | 
setProp(String prop,
        Object p1,
        Object p2,
        Object p3)
Sets the property  | 
 void | 
setTopic(int v)
Sets the topic of the status  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final String REVISION
public static final ControllerStatus OK
public static final ControllerStatus FORBIDDEN
| Constructor Detail | 
|---|
public ControllerStatus()
public ControllerStatus(int topic)
topic - the topicpublic ControllerStatus(String msg)
msg - the message| Method Detail | 
|---|
public boolean isForbidden()
public boolean hasFailed()
public boolean isOK()
public void setProp(String prop)
prop - the propertygetMessage(String)
public void setProp(String prop,
                    Object p1)
prop - the propertyp1 - the first property parametergetMessage(String)
public void setProp(String prop,
                    Object p1,
                    Object p2)
prop - the propertyp1 - the first property parameterp2 - the second property parametergetMessage(String)
public void setProp(String prop,
                    Object p1,
                    Object p2,
                    Object p3)
prop - the propertyp1 - the first property parameterp2 - the second property parameterp3 - the third property parametergetMessage(String)
public void setProp(String prop,
                    Object[] propParam)
prop - the propertypropParam - the property parametersgetMessage(String)public String getProp()
public String getMessage(String userLang)
userLang - the user language to be used to resolved the property
setProp(String), 
setProp(String,Object[])public void setMessage(String msg)
setProp(String), 
setProp(String,Object[])public int getTopic()
public void setTopic(int v)
public String toString()
toString in class Objectpublic ArrayList getNestedStatusList()
public void addNestedStatus(ControllerStatus status)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||