コード例 #1
0
 public void save(EmailAccount account) {
   if (account.getId() > -1) {
     emailDAO.edit(account);
   } else {
     emailDAO.save(account);
   }
 }
コード例 #2
0
 public List<EmailAccount> getEmailAccountsByProvider(String provider) {
   return emailDAO.getEmailAccountsByProvider(provider);
 }
コード例 #3
0
  public void delete(int id) {
    EmailAccount account = new EmailAccount();
    account.setId(id);

    emailDAO.delete(account);
  }
コード例 #4
0
 public List<EmailAccount> getEmailAccounts() {
   return emailDAO.getEmailAccounts();
 }