use of org.killbill.billing.account.dao.AccountEmailModelDao in project killbill by killbill.
the class DefaultAccountInternalApi method getEmails.
@Override
public List<AccountEmail> getEmails(final UUID accountId, final InternalTenantContext context) {
final List<AccountEmailModelDao> childrenAccountsModelDao = accountDao.getEmailsByAccountId(accountId, context);
final List<AccountEmail> emails = new LinkedList<AccountEmail>();
for (final AccountEmailModelDao emailsModelDao : childrenAccountsModelDao) {
emails.add(new DefaultAccountEmail(emailsModelDao));
}
return emails;
}
use of org.killbill.billing.account.dao.AccountEmailModelDao in project killbill by killbill.
the class DefaultAccountUserApi method getEmails.
@Override
public List<AccountEmail> getEmails(final UUID accountId, final TenantContext context) {
final List<AccountEmailModelDao> childrenAccountsModelDao = accountDao.getEmailsByAccountId(accountId, internalCallContextFactory.createInternalTenantContextWithoutAccountRecordId(context));
final List<AccountEmail> emails = new LinkedList<AccountEmail>();
for (final AccountEmailModelDao emailsModelDao : childrenAccountsModelDao) {
emails.add(new DefaultAccountEmail(emailsModelDao));
}
return emails;
}
Aggregations