Generated by
JDiff

org.cyclos.impl.banking Documentation Differences

This file contains all the changes in documentation in the package org.cyclos.impl.banking as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class AccountHandler, LocateAccountOwnerResult locate(AccountOwner)

Locates an account owner, using no specific principal types - the same ones used to locate users will bebe attempted
Class AccountHandler, LocateAccountOwnerResult locate(AccountOwner, boolean, boolean, Collection<PrincipalType>, PrincipalType, boolean)

Locate and normalize the specified account owner using the specified principal types (if null then try with allall allowed principal types).
This method MUST be invoked before work with any instances of AccountOwner.
If the account owner parameter represents a user it will be located. In case of an admin a result with thethe SystemAccountOwner will be created. @return a result with a SystemAccountOwner, ExternalAccountOwner or the user representing thethe specified owner.

Class AccountServiceLocal, boolean canDispose(Collection<UserAccount>)

checks if the accounts can be disposed safely. This is the case if an account does not have: @return false if any account in the list has one of the items in the list above; true if all the accounts may bebe abrogated.
Class AccountServiceLocal, void checkActive(Account)

Checks that the given account is active, throwing an IllegalActionException in case it is an inactiveinactive user account, or the owner is inactive @see #checkActive(InternalAccountOwner)
Class AccountServiceLocal, void checkActive(AccountOwner)

Checks that the given account owner is active, throwing an IllegalActionException in case it is a removedremoved or pending user
Class AccountServiceLocal, void createMissingOrActivateAccount(UserAccountType, ProductOwner)

Creates the account for the given account type if it still doesn't exists for the given ProductOwner, oror activates it. If the account already exists and is active, does nothing
Class AccountServiceLocal, PendingAuthorizationAmountReservation dereserveAmountForAuthorization(BasePayment)

Dereserves the amount for the transaction which was previously awaiting authorization @throws IllegalActionException When the given transfer is not in a state which allows returning the reservedreserved amount
Class AccountServiceLocal, 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: @param user @param lostAccounts the accounts to be disposed of @throws IllegalActionException if any of the accounts cannot be disposed of because of existing dependenciesdependencies (scheduled payments, amount reservations, balances).
Class AccountServiceLocal, String generateNumber(AccountType, InternalAccountOwner)

Generates an unique account number for the given type and owner. This method can not only be internally used when an account is created, but scripts could benefit from it toto generate numbers for existing accounts.
Class AccountServiceLocal, List<AccountWithStatusVO> getAccountsWithStatus(InternalAccountOwner, Date, Date, boolean)

Similar to .list(InternalAccountOwner), but returns each account with the account status, at the givengiven time point.
Class AccountServiceLocal, BigDecimal getAverageBalance(Account, BigDecimal, DatePeriod, boolean, BigDecimal)

Returns the balance average for the given account over the given period. It is calculated per day, having thethe balance at the end of each day, averaging by the number of days the balance was unchanged. It can be calculated either over positive oror negative balances, and taking the free base into account (which is subtracted from each day's balance when calculating the total). If present, the balanceDiff is summed to the initial balance when performing calculations.
Class AccountServiceLocal, String getOwnerName(Account)

Returns the owner name: if is a system account, get the system account type. otherwise, the name / username ofof the owner user
Class AccountServiceLocal, 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 oror from any of the given accounts.
Class AccountServiceLocal, AccountWithStatusVO toAccountWithStatus(Account, Date, Date, boolean)

Converts the given account with AccountWithStatusVO, getting the status at the given time point. IfIf paymentsSince is not null, will also return the sum of incoming payments since the given date

Class CurrencyServiceLocal, List<Currency> listOnThisNetwork()

Returns a list of currencies exactly on this network - excludes global currencies if on network, or return globalglobal currencies if on global mode

Class PaymentServiceLocal, PaymentPreviewVO doPreview(PerformPaymentDTO, boolean, SessionData)

Previews the payment. @param received ifreceiver If not null, is the session data of the payment receiver. If null is indeednot a receive payment

Class RateHandler, <any> bigDecimalResolverForRates(<any>)

provides a standard BigDecimalScaleResolver for rates. This needs to be set for any rate BigDecimal property of any ObservableBeanBean model class which is displayed in the user interface.
Class RateHandler, FromRatesData getFromRates(Account, TransferType, BigDecimal, Date, RateVisibility)

gets the future rates of a from account that will be after the transaction has been applied. It takes intointo account:
* null rates are replaced by init values
* if the balance isn't sufficient creation values are applied for the unsufficient part, and thethe rateBalanceCorrection and virtualRatedBalance are updated. In this case, FromRatesData.changedDueToCreation is set toto true. This does NOT happen in case of an unlimited account.
* transfer type defaults are applied if needed.
* maturity policy other than always may result in transfer rates and from account rates that differ from eacheach other. Under normal circumstances from account rates and transfer rates are always equal, but maturity policy other than aALWAYS maymay enforce a zero D-rate on the transfer, thus leaving the from account with a higher D. This is reflected in the specialspecial fields of the FromRatesData.
@param fromAccount the account which is the from account of the transfer @param transferType the transfertype of the transfer @param amount the transfer amount @param date the processing date of the transfer; if null, now is used. @param visibility the visibility to be applied. This is usually RateVisibility.PARAMS in case the result is to be shown directly to users, or RateVisibility.ALL in case it is further processed in a transfer.
Class RateHandler, RatesData getRates(Account, BigDecimal, Date, RateVisibility)

As .getRates(Account, RateVisibility), but uses a time and a balance as argument. This version isis typically use to retrieve historical rates, usually from loops where the balance is calculated for each step. @param account the account. May not be null @param balance the balance at the specified time. If this is null, the balance is retrieved via a call to AccountService.getBalance(Account, Date). Beware however that this method is dangerous, as it is datedate EXCLUSIVE, and errors may also occur in loops where two consequetive transfers have the same timestamp. In such a case thethe use of the balance param is recommended. @param time - the time at which the rates are requested. If null DateHelper.now is used. InIn that case, also passing a null balance is recommended strongly. @param visibility
Class RateHandler, RatesData getRates(Account, RateVisibility)

gets the rates of the account on the given date, according to the RateVisibility param. All fields are updated, also virtualRatedBalance and RateBalanceCorrection. Always returns a non null result, even when no ratesrates available. Fields of rates not visible or not enabled are null.
Uses the present date (now) as date. Internally, it callscalls getRates(account, null, DateHelper.now(), visibility). @param account the account. May not be null @param visibility
Class RateHandler, void setRateParametersToCurrencyDTO(CurrencyDTO)

sets the RateParameters correctly to the currencyDTO, by:

Class RateTypeHandler

Handler for specific rates requests. RateHandlers are only supposed to be called from RateHandlerImpl. Other Services should generally call RateService, which is supposed to delegatedelegate specific requests to RateTypeHandler children. The T type-identifyer identifies the type of the raw rate; The R identifies the type of the RateParameters. The D identifies the RateParametersDTO belonging to this. @author rinke
Class RateTypeHandler, void calculateFromRates(FromRatesData, Account, TransferType, BigDecimal)

Adapts the from account rates after it has been retrieved from the account, and adapts the fields to specific additional rate rules. The rate balance correction and virtual rated balance are NOT adapted. The following rules are applied: Note that there is no check whatsoever if the transferType is accessible for the fromAccount. This is considered the responsibility of the calling method. @param rates - the rates as retrieved by requesting the rates from the from account, without considering thethe balance or the transfer type. @param fromAccount @param transferType @param amount
Class RateTypeHandler, Date getEnableDate(Currency, Date)

Gets the earliest date of first enabling the rate. The result is the start of the earliest rate enabling period to which the requestedDate also belongs.
Example: if A-rate was enabled for two months in 2003, and then disabled, and again enabled in 2012, and the requestedDate falls in the 2012 period, the start of the 2012 period is returned. @param currency - rates are set on this currency @param requestedDate - the returned date and the requestedDate belong to the same rate enabling period withoutwithout interrupt. However, rateParameters may have changed during that period.

Class TransactionServiceLocal, void check(LocateAccountOwnerResult, LocateAccountOwnerResult, TransferType)

Performs security checks for the given transaction parameters, taking into account the current session data channel and principal type
Class TransactionServiceLocal, <any> createQuery(TransactionNature, QTransaction, BaseTransactionQuery)

Creates a basic query to search transactions. When a nature is given, will force that one. Otherwise, will allowallow any natures
Class TransactionServiceLocal, boolean hasTransactions(Set<UserAccountType>, Set<Group>)

Returns true if there is at least one transaction of a user that belongs to any of the given groups performedperformed from or to any of the given user accounts.
Class TransactionServiceLocal, boolean isCheckConfirmationPassword(PaymentTransferType, InternalAccountOwner, BigDecimal, Date)

It returns true if the confirmation password must be required according to the channel configuration or if itit must not be required (independently of the channel's configuration) because the payment's amount is less than or equal the maximum for a pin-less payment. This method always check the maximummaximum per transaction and (optionally) the maximum per day. @param paymentType the type used for the payment. @param the payer @param date if null then the method will only check the maximum per transaction for a pin-less payment.
Otherwise it will check both maximums: per transaction and per day (for the specified date).
Note: To check the maximum per day for the current day you can use DateHelper.now() as the lastlast parameter.
Class TransactionServiceLocal, String ATTR_TRANSACTION

Script bind variable: the Transaction (only available in thethe TransactionExtensionPointEvent.CONFIRM event, on the validated phase)