org.mmbase.module.tools
Class ApplicationResult
java.lang.Object
org.mmbase.module.tools.ApplicationResult
class ApplicationResult
- extends Object
Contains the status after installing an MMBase 'application'. I.e. whether is was successful, and
a newline separated message String containing the reason(s).
- Version:
- $Id: ApplicationResult.java 34900 2009-05-01 16:29:42Z michiel $
|
Method Summary |
boolean |
error(String message)
Adds a message and logs it as an error, and sets the success status to false. |
String |
getMessage()
|
boolean |
isSuccess()
|
boolean |
success(String message)
Adds a message and sets the success status to true. |
boolean |
warn(String message)
Adds a message and logs it as an warning, and sets the success status to false. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resultMessage
protected final StringBuilder resultMessage
success
protected boolean success
ApplicationResult
public ApplicationResult()
getMessage
public String getMessage()
isSuccess
public boolean isSuccess()
error
public boolean error(String message)
- Adds a message and logs it as an error, and sets the success status to false.
warn
public boolean warn(String message)
- Adds a message and logs it as an warning, and sets the success status to false.
success
public boolean success(String message)
- Adds a message and sets the success status to true.
MMBase 2.0-SNAPSHOT - null