org.mmbase.module.tools
Class ApplicationResult

java.lang.Object
  extended by 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 $

Field Summary
protected  StringBuilder resultMessage
           
protected  boolean success
           
 
Constructor Summary
ApplicationResult()
           
 
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
 

Field Detail

resultMessage

protected final StringBuilder resultMessage

success

protected boolean success
Constructor Detail

ApplicationResult

public ApplicationResult()
Method Detail

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