* @param mailboxSession
* @throws MailboxException
*/
public void deleteEverything(MailboxSession mailboxSession) throws MailboxException {
final HBaseMailboxMapper mapper = (HBaseMailboxMapper) getMapperFactory().getMailboxMapper(mailboxSession);
mapper.execute(new TransactionalMapper.VoidTransaction() {
@Override
public void runVoid() throws MailboxException {
mapper.deleteAllMemberships();
}
});
mapper.execute(new TransactionalMapper.VoidTransaction() {
@Override
public void runVoid() throws MailboxException {
mapper.deleteAllMailboxes();
}
});
}