|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portlet.emailpreview.AccountSummary
public final class AccountSummary
Encapsulates basic information about the email INBOX. Typicaly sent to the browser via AJAX.
| Constructor Summary | |
|---|---|
AccountSummary(String inboxUrl,
List<EmailMessage> messages,
int numUnreadMessages,
int numTotalMessages,
int messagesStart,
int messagesMax,
boolean deleteSupported)
|
|
AccountSummary(Throwable errorCause)
Indicates the account fetch did not succeed and provides the cause. |
|
| Method Summary | |
|---|---|
Throwable |
getErrorCause()
|
String |
getInboxUrl()
Provides the URL to the full-featured web-based mail client, if available. |
List<EmailMessage> |
getMessages()
Returns a list that contains the emails bound by messagesStart
and messagesCode. |
int |
getMessagesMax()
Returns the number of messages requested for the Messages list. |
int |
getMessagesStart()
Returns the index of the first message in the Messages list. |
int |
getTotalMessageCount()
Returns the total number messages in the user's inbox. |
int |
getUnreadMessageCount()
Returns the number of unread messages in the user's inbox. |
boolean |
isDeleteSupported()
|
boolean |
isValid()
Indicates if this object contains valid account details. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccountSummary(String inboxUrl,
List<EmailMessage> messages,
int numUnreadMessages,
int numTotalMessages,
int messagesStart,
int messagesMax,
boolean deleteSupported)
public AccountSummary(Throwable errorCause)
MailAuthenticationException
are very common, and the logs were being flooded with them.
errorCause - | Method Detail |
|---|
public boolean isValid()
public Throwable getErrorCause()
public String getInboxUrl()
nullpublic int getUnreadMessageCount()
public int getTotalMessageCount()
public List<EmailMessage> getMessages()
messagesStart
and messagesCode.
List containing information about
emails in the user's inboxpublic int getMessagesStart()
public int getMessagesMax()
public boolean isDeleteSupported()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||