public class DbMailboxRecordsService extends BaseMailboxRecordsService implements IDbMailboxRecords
container, context, mailboxUniqueId, optRecordsLocation, rbac, recordStore, replicaStore, storeService
Constructor and Description |
---|
DbMailboxRecordsService(javax.sql.DataSource ds,
Container cont,
BmContext context,
java.lang.String mailboxUniqueId,
MailboxRecordStore recordStore,
ContainerStoreService<MailboxRecord> storeService,
IMailIndexService index) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemValue<MailboxRecord>> |
all() |
void |
create(java.lang.String uid,
MailboxRecord mail) |
void |
delete(java.lang.String uid) |
void |
deleteAll() |
void |
deleteImapUids(java.util.List<java.lang.Long> uids) |
ItemValue<MailboxRecord> |
getComplete(java.lang.String uid) |
ItemValue<MailboxRecord> |
getCompleteById(long id) |
ItemValue<MailboxRecord> |
getCompleteByImapUid(long imapUid) |
java.util.List<ImapBinding> |
havingBodyVersionLowerThan(int version) |
java.util.List<ImapBinding> |
imapBindings(java.util.List<java.lang.Long> itemIds) |
void |
prepareContainerDelete() |
void |
update(java.lang.String uid,
MailboxRecord mail) |
void |
updates(java.util.List<MailboxRecord> recs) |
void |
xfer(java.lang.String serverUid) |
adapt, allIds, changeset, changesetById, checkExistOnBackend, containerChangelog, count, fetchComplete, fetchCompleteOIO, filteredChangesetById, getVersion, itemChangelog, sortedIds
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fetchComplete
allIds, changeset, changesetById, containerChangelog, filteredChangesetById, getVersion, itemChangelog
count
sortedIds
public DbMailboxRecordsService(javax.sql.DataSource ds, Container cont, BmContext context, java.lang.String mailboxUniqueId, MailboxRecordStore recordStore, ContainerStoreService<MailboxRecord> storeService, IMailIndexService index)
public ItemValue<MailboxRecord> getComplete(java.lang.String uid)
getComplete
in interface IDbMailboxRecords
public ItemValue<MailboxRecord> getCompleteById(long id)
getCompleteById
in interface IDbMailboxRecords
public java.util.List<ImapBinding> imapBindings(java.util.List<java.lang.Long> itemIds)
imapBindings
in interface IDbMailboxRecords
public void create(java.lang.String uid, MailboxRecord mail)
create
in interface IDbMailboxRecords
public void update(java.lang.String uid, MailboxRecord mail)
update
in interface IDbMailboxRecords
public void delete(java.lang.String uid)
delete
in interface IDbMailboxRecords
public java.util.List<ItemValue<MailboxRecord>> all()
all
in interface IDbMailboxRecords
public ItemValue<MailboxRecord> getCompleteByImapUid(long imapUid)
getCompleteByImapUid
in interface IDbMailboxRecords
public void updates(java.util.List<MailboxRecord> recs)
updates
in interface IDbMailboxRecords
public void deleteImapUids(java.util.List<java.lang.Long> uids)
deleteImapUids
in interface IDbMailboxRecords
public void deleteAll()
deleteAll
in interface IDbMailboxRecords
public void prepareContainerDelete()
prepareContainerDelete
in interface IDbMailboxRecords
public void xfer(java.lang.String serverUid)
xfer
in interface IDataShardSupport
public java.util.List<ImapBinding> havingBodyVersionLowerThan(int version)
havingBodyVersionLowerThan
in interface IDbMailboxRecords
MailboxRecord
for which the corresponding
MessageBody
has a MessageBody.bodyVersion
lower than
version
Copyright © 2021. All Rights Reserved.