Generated by
JDiff

Interface org.cyclos.impl.banking.AccountServiceLocal

Removed Methods
boolean canDispose(Collection<UserAccount>) checks if the accounts can be disposed safely.
void createMissingOrActivateAccount(UserAccountType, ProductOwner) Creates the account for the given account type if it still doesn't exists for the given ProductOwner, or activates it.
void disposeAccounts(User, Collection<UserAccount>) 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) Disposes all users' accounts
Validator getCanDisposeValidator() gets a Validator for checking if an account can be disposed.
boolean hasTransfers(Set<UserAccountType>, Set<Group>) Returns true if there is at least one transfer performed from or to a user of any of the specified groups, to or from any of the given accounts.
boolean isOnlyOwnPayments(AccountType) Returns whether the logged user can only view payments performed / received by himself on the given account
 

Added Methods
AdjustAccountsResult adjustAccounts(User) Creates / disposes accounts for the given user
OrderAmountReservation getAmountDereservation(Order) Returns the OrderAmountReservation that canceled the order reserved amount, or null if none
PendingAuthorizationAmountReservation getAmountDereservationForAuthorization(BasePayment) Returns the PendingAuthorizationAmountReservation created when a payment was no longer pending authorization, or null if none
OrderAmountReservation getAmountReservation(Order) Returns the OrderAmountReservation that reserved amount when the order was submitted, or null if none
PendingAuthorizationAmountReservation getAmountReservationForAuthorization(BasePayment) Returns the PendingAuthorizationAmountReservation created when a payment was submitted for authorization, or null if none
Set<UserStatus> getPossibleStatusesToOwnAccounts() Returns possible statuses the user can have in order to have active accounts
boolean isActive(Account) Returns whether the given account is active.
Account load(InternalAccountOwner, AccountType, boolean) Loads an account for the given owner / type, without checking permissions for the logged user.
 

Changed Methods
void fillTransSearchData(ITransSearchData, Account, InternalAccountOwner) Change in signature from (TransSearchData, Account, InternalAccountOwner) to (ITransSearchData, Account, InternalAccountOwner).
Fills the given data with data common to transfer and transaction search.
String generateNumber(AccountType, InternalAccountOwner) Documentation changed from old to new.
Generates an unique account number for the given type and owner.
void checkActive(AccountOwner) Change in exceptions thrown from no exceptions to IllegalActionException.
Documentation changed from old to new.
If the given owner is a user which is either pending or removed, throes an IllegalActionException
void checkActive(Account) Change in exceptions thrown from no exceptions to IllegalActionException.
Documentation changed from old to new.
If the given account is not active, throws an IllegalActionException