public final class AccountSummary extends Object
| Constructor and Description |
|---|
AccountSummary(String inboxUrl,
List<? extends EmailMessage> messages,
int numUnreadMessages,
int numTotalMessages,
int messagesStart,
int messagesMax,
boolean deleteSupported,
EmailQuota quota) |
AccountSummary(Throwable errorCause)
Indicates the account fetch did not succeed and provides the cause.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getErrorCause() |
String |
getInboxUrl()
Provides the URL to the full-featured web-based mail client, if available.
|
List<? extends 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.
|
EmailQuota |
getQuota()
Returns the value of disk space , max & used
|
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.
|
public AccountSummary(String inboxUrl, List<? extends EmailMessage> messages, int numUnreadMessages, int numTotalMessages, int messagesStart, int messagesMax, boolean deleteSupported, EmailQuota quota)
public AccountSummary(Throwable errorCause)
MailAuthenticationException
are very common, and the logs were being flooded with them.errorCause - public boolean isValid()
public Throwable getErrorCause()
public String getInboxUrl()
nullpublic int getUnreadMessageCount()
public int getTotalMessageCount()
public List<? extends EmailMessage> getMessages()
messagesStart
and messagesCode.List containing information about
emails in the user's inboxpublic int getMessagesStart()
public int getMessagesMax()
public boolean isDeleteSupported()
public EmailQuota getQuota()
Copyright © 2014 Jasig. All Rights Reserved.