public interface MailDao extends ContentEntityObjectDao
NON_CACHEABLE
Modifier and Type | Method and Description |
---|---|
int |
findMailTotal(Space space) |
Mail |
getFirstMailAfter(java.lang.String spaceKey,
long mailId) |
Mail |
getFirstMailBefore(java.lang.String spaceKey,
long mailId) |
java.util.List |
getMail(Space space,
boolean currentOnly) |
Mail |
getMailById(long id)
Retrieve a single mail by its persistent object id.
|
Mail |
getMailByMessageId(java.lang.String messageId)
Retrieve a single mail by its message-id.
|
java.util.List |
getMailsByMessageId(java.lang.String messageId)
Retrieve all mails with a particular message id.
|
Mail |
getMostRecentMail(java.lang.String spaceKey) |
java.util.List |
getSpaceMail(int firstResult,
int maxResults,
java.lang.String spaceKey) |
java.util.Iterator |
getSpaceMailIterator(java.lang.String spaceKey) |
java.util.Iterator |
getSpaceMailWithAttachmentsIterator(java.lang.String spaceKey) |
void |
removeAllMail(Space space) |
countContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findHistoricalVersionsAfterVersion, findPreviousVersions, getAllCurrentEntities, getById, getContentAuthoredByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getLockedContentBySpace, getObjectType, getOldestPageCreationDate, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionHistorySummary
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, getPersistentClass, refresh, remove, replicate, save, saveRaw
Mail getMailById(long id)
id
- the id of the mail to retrieveMail getMailByMessageId(java.lang.String messageId)
getMailsByMessageId(java.lang.String)
.
Message ids are case sensitive.
messageId
- the Message-Id of the mail to retrievejava.util.List getMailsByMessageId(java.lang.String messageId)
getMailByMessageId(java.lang.String)
instead, but this
method is useful if you want to cater for the possibility of (unlikely) accidental
clashes or (more likely) deliberate forgeries.
Message ids are case sensitive
messageId
- The Message-Id of the mail to retrieveMail getMostRecentMail(java.lang.String spaceKey)
Mail getFirstMailAfter(java.lang.String spaceKey, long mailId)
Mail getFirstMailBefore(java.lang.String spaceKey, long mailId)
java.util.Iterator getSpaceMailIterator(java.lang.String spaceKey)
java.util.Iterator getSpaceMailWithAttachmentsIterator(java.lang.String spaceKey)
int findMailTotal(Space space)
java.util.List getSpaceMail(int firstResult, int maxResults, java.lang.String spaceKey)
void removeAllMail(Space space)
java.util.List getMail(Space space, boolean currentOnly)
Copyright © 2003-2014 Atlassian. All Rights Reserved.