public class HibernateMailDao extends ContentEntityObjectHibernateDao implements MailDao
HibernateObjectDao.CacheabilityONE_DAYcacheFactory, confluenceUserDaoNON_CACHEABLE| Constructor and Description |
|---|
HibernateMailDao() |
| 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) |
Class |
getPersistentClass() |
List |
getSpaceMail(int firstResult,
int maxResults,
String spaceKey) |
Iterator |
getSpaceMailIterator(String spaceKey) |
Iterator |
getSpaceMailWithAttachmentsIterator(String spaceKey) |
void |
removeAllMail(Space space)
bulk mail removal using direct jdbc (too slow using hibernate, as it loads all mails into session prior to deletion which is bad)
|
countContentBySpaceIdAndStatus, findAllDraftsFor, findContentBySpaceIdAndStatus, findContentBySpaceIdAndStatus, findDraftFor, findHistoricalVersionsAfterVersion, findPreviousVersions, findUnpublishedContentWithUserContributions, getAllCurrentEntities, getByClassId, getById, getContentAuthoredByUser, getContributionStatusByUser, getFirstVersionAfter, getFirstVersionBefore, getLastEditedVersionsOf, getObjectType, getOldestPageCreationDate, getPageAndBlogPostsVersionsLastEditedByUser, getPageAndBlogPostsVersionsLastEditedByUserIncludingDrafts, getRecentlyAddedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntities, getRecentlyModifiedEntitiesForUser, getRecentlyModifiedForChangeDigest, getTrashedContent, getVersion, getVersionEditContributors, getVersionHistorySummary, getVersionHistorySummary, getVersionsLastEditedByUser, getVersionsLastEditedByUserNewfindAllSorted, findLatestVersionsCount, findLatestVersionsCount, findLatestVersionsIterator, findLatestVersionsIterator, findNamedQueryStringParams, findNamedQueryStringParams, save, setCacheFactory, setConfluenceUserDao, updateModificationDataapplyTransactionTimeout, applyTransactionTimeout, checkDaoConfig, createHibernateTemplate, findAll, findAllSorted, findByClassIds, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQuery, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParam, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findNamedQueryStringParams, findSingleObject, getCountResult, getHibernateTemplate, getSession, getSessionFactory, index, refresh, reIndex, remove, replicate, save, saveRaw, setHibernateTemplate, setIndexer, setSessionFactory, unIndex, uniqueResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcountContentBySpaceIdAndStatus, 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, getVersionsLastEditedByUserNewfindLatestVersionsCount, findLatestVersionsIterator, savefindAll, findAllSorted, findAllSorted, findByClassIds, refresh, remove, replicate, save, saveRawpublic Class getPersistentClass()
getPersistentClass in interface ObjectDaogetPersistentClass in class ContentEntityObjectHibernateDaopublic Mail getMailById(long id)
MailDaogetMailById in interface MailDaoid - the id of the mail to retrievepublic Mail getMailByMessageId(String messageId)
MailDaoMailDao.getMailsByMessageId(java.lang.String).
Message ids are case sensitive.
getMailByMessageId in interface MailDaomessageId - the Message-Id of the mail to retrievepublic List getMailsByMessageId(String messageId)
MailDaoMailDao.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
getMailsByMessageId in interface MailDaomessageId - The Message-Id of the mail to retrievepublic Mail getMostRecentMail(String spaceKey)
getMostRecentMail in interface MailDaopublic Mail getFirstMailAfter(String spaceKey, long mailId)
getFirstMailAfter in interface MailDaopublic Mail getFirstMailBefore(String spaceKey, long mailId)
getFirstMailBefore in interface MailDaopublic Iterator getSpaceMailIterator(String spaceKey)
getSpaceMailIterator in interface MailDaopublic Iterator getSpaceMailWithAttachmentsIterator(String spaceKey)
getSpaceMailWithAttachmentsIterator in interface MailDaopublic int findMailTotal(Space space)
findMailTotal in interface MailDaopublic List getSpaceMail(int firstResult, int maxResults, String spaceKey)
getSpaceMail in interface MailDaopublic void removeAllMail(Space space)
removeAllMail in interface MailDaoCopyright © 2003–2017 Atlassian. All rights reserved.