public interface MailDao extends ContentEntityObjectDao
NON_CACHEABLE
Modifier and Type | Method and Description |
---|---|
int |
findMailTotal(Space space) |
Mail |
getFirstMailAfter(String spaceKey,
long mailId) |
Mail |
getFirstMailBefore(String spaceKey,
long mailId) |
List |
getMail(Space space,
boolean currentOnly) |
Mail |
getMailById(long id)
Retrieve a single mail by its persistent object id.
|
Mail |
getMailByMessageId(String messageId)
Retrieve a single mail by its message-id.
|
List |
getMailsByMessageId(String messageId)
Retrieve all mails with a particular message id.
|
Mail |
getMostRecentMail(String spaceKey) |
List |
getSpaceMail(int firstResult,
int maxResults,
String spaceKey) |
Iterator |
getSpaceMailIterator(String spaceKey) |
Iterator |
getSpaceMailWithAttachmentsIterator(String spaceKey) |
void |
removeAllMail(Space space) |
countContentBySpaceIdAndStatus, findAllDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getById, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNew
findLatestVersionsCount, findLatestVersionsIterator, save
findAll, findAllSorted, findAllSorted, findByClassIds, getPersistentClass, refresh, remove, replicate, save, saveRaw
Mail getMailById(long id)
id
- the id of the mail to retrieveMail getMailByMessageId(String messageId)
getMailsByMessageId(java.lang.String)
.
Message ids are case sensitive.
messageId
- the Message-Id of the mail to retrieveList getMailsByMessageId(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 retrieveint findMailTotal(Space space)
void removeAllMail(Space space)
Copyright © 2003–2017 Atlassian. All rights reserved.