Generated by
JDiff

Interface org.cyclos.impl.banking.AccountServiceLocal

Added Methods
boolean accountNumberExistsOrIsReserved(AccountNumberConfiguration, String) Returns true if the given account number is used in an existing account or is reserved to be used for a pending user
ExternalPaymentNegativeAmountReservation dereserveAmount(ExternalPayment) Cancels the amount reservation related to the given external payment
void disposeAllAccounts(User) Disposes all users' accounts
void fillTransSearchData(TransSearchData, Account, InternalAccountOwner) Fills the given data with data common to transfer and transaction search.
Account findByNumber(String) Returns the account with the given number
String generateNumber(AccountType, InternalAccountOwner) Generates an unique account number for the given type and owner.
boolean isOnlyOwnPayments(AccountType) Returns whether the logged user can only view payments performed / received by himself on the given account
ExternalPaymentAmountReservation reserveAmount(ExternalPayment) Reserves the amount for the given external payment
 

Changed Methods
void createMissingOrActivateAccount(UserAccountType, ProductOwner) Change in signature from (UserAccountType, ProductOwner, BigDecimal, BigDecimal) to (UserAccountType, ProductOwner).
Documentation changed from old to new.
Creates the account for the given account type if it still doesn't exists for the given ProductOwner, or activates it.
PendingAuthorizationAmountReservation dereserveAmountForAuthorization(BasePayment) Change in signature from DirectTransaction to BasePayment.
Dereserves the amount for the transaction which was previously awaiting authorization
void disposeAccounts(User, Collection<UserAccount>) Documentation changed from old to new.
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.
List<AccountWithStatusVO> getAccountsWithStatus(InternalAccountOwner, Date, Date, boolean) Change in signature from (AccountOwner, Date, Date, boolean) to (InternalAccountOwner, Date, Date, boolean).
Documentation changed from old to new.
Similar to .list(InternalAccountOwner), but returns each account with the account status, at the given time point.
BigDecimal getAvailableBalanceByAccountType(InternalAccountOwner, AccountType) Change in signature from (AccountOwner, AccountType) to (InternalAccountOwner, AccountType).
Returns the available balance for the account that has the given account owner and type
List<A> list(InternalAccountOwner) Change in signature from AccountOwner to InternalAccountOwner.
Returns the available accounts for the given owner
PendingAuthorizationAmountReservation reserveAmountForAuthorization(BasePayment) Change in signature from DirectTransaction to BasePayment.
Reserves the amount for a given payment pending authorization
void checkActive(AccountOwner) Change in exceptions thrown from IllegalActionException to FrameworkException.
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 IllegalActionException to FrameworkException.
Documentation changed from old to new.
Checks that the given account is active, throwing an IllegalActionException in case it is an inactive user account, or the owner is inactive
Account load(InternalAccountOwner, AccountType) Change in signature from (AccountOwner, AccountType) to (InternalAccountOwner, AccountType).
Loads an account for the given owner / type, without checking permissions for the logged user
 

Added Fields
String ATTR_ACCOUNT_TYPE Script bind variable: the account type
String ATTR_OWNER Script bind variable: the account owner (either an User or SystemAccountOwner)