org.olat.core.util.mail
Class MailerResult

java.lang.Object
  extended by org.olat.core.util.mail.MailerResult

public class MailerResult
extends java.lang.Object

Description:
Result object when sending mail using the MailerWithTemplate

Initial Date: 22.11.2006

Author:
Florian Gnaegi, frentix GmbH
http://www.frentix.com

Field Summary
static int ATTACHMENT_INVALID
           
static int MAILHOST_UNDEFINED
           
static int OK
           
static int RECIPIENT_ADDRESS_ERROR
           
static int SEND_GENERAL_ERROR
           
static int SENDER_ADDRESS_ERROR
           
static int TEMPLATE_GENERAL_ERROR
           
static int TEMPLATE_PARSE_ERROR
           
 
Constructor Summary
MailerResult()
           
 
Method Summary
 java.util.List<Identity> getFailedIdentites()
           
 int getReturnCode()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OK

public static final int OK
See Also:
Constant Field Values

MAILHOST_UNDEFINED

public static final int MAILHOST_UNDEFINED
See Also:
Constant Field Values

SEND_GENERAL_ERROR

public static final int SEND_GENERAL_ERROR
See Also:
Constant Field Values

SENDER_ADDRESS_ERROR

public static final int SENDER_ADDRESS_ERROR
See Also:
Constant Field Values

RECIPIENT_ADDRESS_ERROR

public static final int RECIPIENT_ADDRESS_ERROR
See Also:
Constant Field Values

TEMPLATE_PARSE_ERROR

public static final int TEMPLATE_PARSE_ERROR
See Also:
Constant Field Values

TEMPLATE_GENERAL_ERROR

public static final int TEMPLATE_GENERAL_ERROR
See Also:
Constant Field Values

ATTACHMENT_INVALID

public static final int ATTACHMENT_INVALID
See Also:
Constant Field Values
Constructor Detail

MailerResult

public MailerResult()
Method Detail

getFailedIdentites

public java.util.List<Identity> getFailedIdentites()
Returns:
list of identities to which the mail could not be send, e.g. because of an invalid mail address

getReturnCode

public int getReturnCode()
Returns:
return code. If nothing else set return will be OK