@Override public Account getAccountById(final UUID accountId, final InternalTenantContext context) throws AccountApiException { return super.getAccountById(accountId, context); }
@Override public Account getAccountByKey(final String key, final InternalTenantContext context) throws AccountApiException { return super.getAccountByKey(key, context); }
@Override public Account getAccountByRecordId(final Long recordId, final InternalTenantContext context) throws AccountApiException { return super.getAccountByRecordId(recordId, context); }
protected Account getAccountByRecordId(final Long recordId, final InternalTenantContext context) throws AccountApiException { final Account account = getAccountByRecordIdInternal(recordId, context); if (account == null) { throw new AccountApiException(ErrorCode.ACCOUNT_DOES_NOT_EXIST_FOR_RECORD_ID, recordId); } return account; }
protected Account getAccountById(final UUID accountId, final InternalTenantContext context) throws AccountApiException { final Long recordId = nonEntityDao.retrieveRecordIdFromObject(accountId, ObjectType.ACCOUNT, recordIdCacheController); final Account account = getAccountByRecordIdInternal(recordId, context); if (account == null) { throw new AccountApiException(ErrorCode.ACCOUNT_DOES_NOT_EXIST_FOR_ID, accountId); } accountCacheController.putIfAbsent(recordId, new DefaultImmutableAccountData(account)); return account; }
protected Account getAccountByRecordId(final Long recordId, final InternalTenantContext context) throws AccountApiException { final Account account = getAccountByRecordIdInternal(recordId, context); if (account == null) { throw new AccountApiException(ErrorCode.ACCOUNT_DOES_NOT_EXIST_FOR_RECORD_ID, recordId); } return account; }
@Override public Account getAccountByRecordId(final Long recordId, final InternalTenantContext context) throws AccountApiException { return super.getAccountByRecordId(recordId, context); }
@Override public Account getAccountByKey(final String key, final InternalTenantContext context) throws AccountApiException { return super.getAccountByKey(key, context); }
@Override public Account getAccountById(final UUID accountId, final InternalTenantContext context) throws AccountApiException { return super.getAccountById(accountId, context); }
protected Account getAccountById(final UUID accountId, final InternalTenantContext context) throws AccountApiException { final Long recordId = nonEntityDao.retrieveRecordIdFromObject(accountId, ObjectType.ACCOUNT, recordIdCacheController); final Account account = getAccountByRecordIdInternal(recordId, context); if (account == null) { throw new AccountApiException(ErrorCode.ACCOUNT_DOES_NOT_EXIST_FOR_ID, accountId); } accountCacheController.putIfAbsent(recordId, new DefaultImmutableAccountData(account)); return account; }