Generated by
JDiff

Interface org.cyclos.impl.banking.AccountServiceLocal

Changed Methods
boolean canDispose(Collection<UserAccount>) Change in exceptions thrown from FrameworkException to no exceptions.
checks if the accounts can be disposed safely.
ClosedAccountBalance closeBalance(Account) Change in exceptions thrown from FrameworkException to no exceptions.
Closes the balance for the given account
void createMissingOrActivateAccount(UserAccountType, ProductOwner) Change in exceptions thrown from FrameworkException to no exceptions.
Creates the account for the given account type if it still doesn't exists for the given ProductOwner, or activates it.
SystemAccount createSystemAccount(SystemAccountType) Change in exceptions thrown from FrameworkException to no exceptions.
Creates a new system account
PendingAuthorizationAmountReservation dereserveAmountForAuthorization(BasePayment) Change in exceptions thrown from FrameworkException to no exceptions.
Dereserves the amount for the transaction which was previously awaiting authorization
VoucherAmountReservation dereserveAmountIfNeeded(Voucher) Change in exceptions thrown from (FrameworkException, InsufficientBalanceException) to no exceptions.
If the voucher pack had an amount reservation, dereserve the amount for the given voucher
void disposeAccounts(User, Collection<UserAccount>) Change in exceptions thrown from IllegalActionException to no exceptions.
Disables the given accounts of the given user.
Note that the calling method is responsible for checking if this account really needs to be disposed (for example because it is associated via another product).

The method does the following:
  • cancel all user's webshop orders with any pending status.
void disposeAllAccounts(User) Change in exceptions thrown from FrameworkException to no exceptions.
Disposes all users' accounts
void fillTransSearchData(TransSearchData, Account, InternalAccountOwner) Change in exceptions thrown from FrameworkException to no exceptions.
Fills the given data with data common to transfer and transaction search.
Account findByNumber(String) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the account with the given number
String generateNumber(AccountType, InternalAccountOwner) Change in exceptions thrown from FrameworkException to no exceptions.
Generates an unique account number for the given type and owner.
AccountStatusVO getAccountStatus(Account, Date, RateVisibility) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the account status for the given account at the given time
List<AccountWithStatusVO> getAccountsWithStatus(InternalAccountOwner, Date, Date, boolean) Change in exceptions thrown from FrameworkException to no exceptions.
Similar to .list(InternalAccountOwner), but returns each account with the account status, at the given time point.
BigDecimal getAvailableBalance(Account, Date) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the available balance for the given account at the given date
BigDecimal getAverageBalance(Account, BigDecimal, DatePeriod, boolean, BigDecimal) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the balance average for the given account over the given period.
BigDecimal getBalance(Account, Date) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the raw balance for the given account at the given time
Validator getCanDisposeValidator() Change in exceptions thrown from FrameworkException to no exceptions.
gets a Validator for checking if an account can be disposed.
BigDecimal getCreditLimit(Account, Date) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the credit limit of the given account at the given date
AccountLimitLog getLimitLog(Account, Date) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the limit log which is valid on the given time.
List<TransferStatusFlow> getManagedFlows(Account) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the managed transfer status flows for the logged user over the given account
String getOwnerName(Account) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the owner name: if is a system account, get the system account type.
BigDecimal getUpperCreditLimit(Account, Date) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the upper credit limit of the given account at the given date
List<UserAccountData> getUserAccountsData(User) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the user's accounts data visible in profile
List<TransferStatusFlow> getVisibleFlows(Account) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the visible transfer status flows for the logged user over the given account
boolean hasAccess(Account) Change in exceptions thrown from FrameworkException to no exceptions.
Returns whether the given account is accessible by the logged user
void incrementBalanceCounter(Account) Change in exceptions thrown from FrameworkException to no exceptions.
Increments the counter for closing the given account's balance
boolean isOnlyOwnPayments(AccountType) Change in exceptions thrown from FrameworkException to no exceptions.
Returns whether the logged user can only view payments performed / received by himself on the given account
List<A> list(InternalAccountOwner) Change in exceptions thrown from FrameworkException to no exceptions.
Returns the available accounts for the given owner
PendingAuthorizationAmountReservation reserveAmountForAuthorization(BasePayment) Change in exceptions thrown from (FrameworkException, InsufficientBalanceException, IllegalActionException) to no exceptions.
Reserves the amount for a given payment pending authorization
VoucherPackAmountReservation reserveAmountIfNeeded(VoucherPack) Change in exceptions thrown from (FrameworkException, InsufficientBalanceException) to no exceptions.
Reserves the total amount for the given voucher pack (count * amount) on the source account of the redeem type, if that account is limited.
AccountWithStatusVO toAccountWithStatus(Account, Date, Date, boolean) Change in exceptions thrown from FrameworkException to no exceptions.
Converts the given account with AccountWithStatusVO, getting the status at the given time point.
void checkActive(AccountOwner) Change in exceptions thrown from FrameworkException to no exceptions.
Checks that the given account owner is active, throwing an IllegalActionException in case it is a removed or pending user
void checkActive(Account) Change in exceptions thrown from FrameworkException to no exceptions.
Checks that the given account is active, throwing an IllegalActionException in case it is an inactive user account, or the owner is inactive
OrderAmountReservation dereserveAmount(Order) Change in exceptions thrown from FrameworkException to no exceptions.
Cancels the amount reservation related to the given order
ScheduledPaymentInstallmentAmountReservation dereserveAmount(ScheduledPaymentInstallment) Change in exceptions thrown from FrameworkException to no exceptions.
Dereserves the amount for the given installment
Account load(InternalAccountOwner, AccountType) Change in exceptions thrown from FrameworkException to no exceptions.
Loads an account for the given owner / type, without checking permissions for the logged user
Account load(AccountLocator) Change in exceptions thrown from FrameworkException to no exceptions.
Loads an account for the given locator, without checking permissions for the logged user
ExternalPaymentAmountReservation reserveAmount(ExternalPayment) Change in exceptions thrown from InsufficientBalanceException to no exceptions.
Reserves the amount for the given external payment
OrderAmountReservation reserveAmount(Order) Change in exceptions thrown from (FrameworkException, InsufficientBalanceException, IllegalActionException) to no exceptions.
Reserves the amount for the given webshop order
ScheduledPaymentAmountReservation reserveAmount(ScheduledPayment) Change in exceptions thrown from (FrameworkException, InsufficientBalanceException, IllegalActionException) to no exceptions.
Reserves the total amount for the given scheduled payment