Package com.day.cq.mailer
Interface MailingStatus
-
public interface MailingStatus
Accesses the status of a given Mailing.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Date
getLastModified()
java.lang.String
getMailingID()
MailingStatusCode
getStatusCode()
boolean
hasError()
Indicates if there has been an error processing the send of the Mailing.boolean
isNew()
boolean
isSent()
long
numSent()
-
-
-
Method Detail
-
getMailingID
java.lang.String getMailingID()
- Returns:
- the ID of the Mailing this is the status for
-
isNew
boolean isNew()
- Returns:
true
in case there has been no attempt to send
-
isSent
boolean isSent()
- Returns:
true
in case the sending has been successful
-
hasError
boolean hasError()
Indicates if there has been an error processing the send of the Mailing. Mailing may besent
and have errors, that did not prevent the sending of all messages.- Returns:
true
in case the sending has ben done.
-
numSent
long numSent()
- Returns:
- the amount of recipients that have been successfully delivered.
-
getLastModified
java.util.Date getLastModified()
- Returns:
- TimeStamp last change on state took place
-
getStatusCode
MailingStatusCode getStatusCode() throws RepositoryException
- Returns:
- the Code of the Mailings status
- Throws:
RepositoryException
- in case of error accessing the Persistance- See Also:
MailingStatusCode
-
-