public class NoopMailboxRecordService extends java.lang.Object implements IDbMailboxRecords
Constructor and Description |
---|
NoopMailboxRecordService() |
Modifier and Type | Method and Description |
---|---|
java.util.List<ItemValue<MailboxRecord>> |
all() |
ContainerChangeset<java.lang.String> |
changeset(java.lang.Long since) |
ContainerChangeset<java.lang.Long> |
changesetById(java.lang.Long since) |
ContainerChangelog |
containerChangelog(java.lang.Long since) |
Count |
count(ItemFlagFilter filter)
Count items matching an
ItemFlagFilter |
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) |
Stream |
fetchComplete(long imapUid) |
ContainerChangeset<ItemVersion> |
filteredChangesetById(java.lang.Long since,
ItemFlagFilter filter) |
ItemValue<MailboxRecord> |
getComplete(java.lang.String uid) |
ItemValue<MailboxRecord> |
getCompleteById(long id) |
ItemValue<MailboxRecord> |
getCompleteByImapUid(long id) |
long |
getVersion() |
java.util.List<ImapBinding> |
havingBodyVersionLowerThan(int version) |
java.util.List<ImapBinding> |
imapBindings(java.util.List<java.lang.Long> ids) |
ItemChangelog |
itemChangelog(java.lang.String itemUid,
java.lang.Long since) |
void |
prepareContainerDelete() |
java.util.List<java.lang.Long> |
sortedIds(SortDescriptor sorted)
Returns all items in a container matching a sort criteria
|
void |
update(java.lang.String uid,
MailboxRecord mail) |
void |
updates(java.util.List<MailboxRecord> records) |
void |
xfer(java.lang.String serverUid) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allIds
public ItemChangelog itemChangelog(java.lang.String itemUid, java.lang.Long since) throws ServerFault
itemChangelog
in interface IChangelogSupport
ContainerChangelog
ServerFault
public ContainerChangelog containerChangelog(java.lang.Long since) throws ServerFault
containerChangelog
in interface IChangelogSupport
ContainerChangelog
ServerFault
public ContainerChangeset<java.lang.String> changeset(java.lang.Long since) throws ServerFault
changeset
in interface IChangelogSupport
ContainerChangeset
ServerFault
public ContainerChangeset<java.lang.Long> changesetById(java.lang.Long since) throws ServerFault
changesetById
in interface IChangelogSupport
ContainerChangeset
with internal
numeric idsServerFault
public ContainerChangeset<ItemVersion> filteredChangesetById(java.lang.Long since, ItemFlagFilter filter) throws ServerFault
filteredChangesetById
in interface IChangelogSupport
filter
- to exclude some items (eg. deleted items)ContainerChangeset
with internal
numeric ids matching the given filterServerFault
public long getVersion() throws ServerFault
getVersion
in interface IChangelogSupport
ServerFault
public void xfer(java.lang.String serverUid) throws ServerFault
xfer
in interface IDataShardSupport
ServerFault
public ItemValue<MailboxRecord> getComplete(java.lang.String uid)
getComplete
in interface IDbMailboxRecords
public ItemValue<MailboxRecord> getCompleteById(long id)
getCompleteById
in interface IDbMailboxRecords
public ItemValue<MailboxRecord> getCompleteByImapUid(long id)
getCompleteByImapUid
in interface IDbMailboxRecords
public java.util.List<ImapBinding> imapBindings(java.util.List<java.lang.Long> ids)
imapBindings
in interface IDbMailboxRecords
public java.util.List<ItemValue<MailboxRecord>> all()
all
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 void updates(java.util.List<MailboxRecord> records)
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 Stream fetchComplete(long imapUid)
fetchComplete
in interface IDbMailboxRecords
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
public Count count(ItemFlagFilter filter) throws ServerFault
ICountingSupport
ItemFlagFilter
count
in interface ICountingSupport
ServerFault
public java.util.List<java.lang.Long> sortedIds(SortDescriptor sorted) throws ServerFault
ISortingSupport
sortedIds
in interface ISortingSupport
sorted
- sorting criteriaItemValue.internalId
sortedServerFault
Copyright © 2021. All Rights Reserved.