|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packageorg.cyclos.impl.bankingas colored differences. Deletions are shownlike 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.
Locates an account owner, using no specific principal types - the same ones used to locate users willClass AccountHandler, LocateAccountOwnerResult locate(AccountOwner, boolean, boolean, Collection<PrincipalType>, PrincipalType, boolean)bebe attempted
Locate and normalize the specified account owner using the specified principal types (if null then try withallall 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 withthethe SystemAccountOwner will be created. @return a result with a SystemAccountOwner, ExternalAccountOwner or the user representingthethe specified owner.
checks if the accounts can be disposed safely. This is the case if an account does not have:Class AccountServiceLocal, void checkActive(Account)@return false if any account in the list has one of the items in the list above; true if all the accounts may
- pending loans
- open invoices
- a non zero balance
- reserved amounts
- payments scheduled from it
bebe abrogated.
Checks that the given account is active, throwing an IllegalActionException in case it is anClass AccountServiceLocal, void checkActive(AccountOwner)inactiveinactive user account, or the owner is inactive @see #checkActive(InternalAccountOwner)
Checks that the given account owner is active, throwing an IllegalActionException in case it is aClass AccountServiceLocal, void createMissingOrActivateAccount(UserAccountType, ProductOwner)removedremoved or pending user
Creates the account for the given account type if it still doesn't exists for the given ProductOwner,Class AccountServiceLocal, PendingAuthorizationAmountReservation dereserveAmountForAuthorization(BasePayment)oror activates it. If the account already exists and is active, does nothing
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 theClass AccountServiceLocal, void disposeAccounts(User, Collection<UserAccount>)reservedreserved amount
Disables the given accounts of the given user.Class AccountServiceLocal, String generateNumber(AccountType, InternalAccountOwner)
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
- cancel all user's webshop orders with any pending status.
- delete all user's webshop orders which are still in a shopping cart
- cancel all scheduled payments to the account being lost, plus notification to users involved.
- remove or disable the account
- Check if the currency of the account is also lost, that is: not associated via another account of the
samesame user. If the currency is also lost:
- set all ads which refer via their price to this currency to status DISABLED
- disable all user's delivery methods referring to the currency
dependenciesdependencies (scheduled payments, amount reservations, balances).
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 itClass AccountServiceLocal, List<AccountWithStatusVO> getAccountsWithStatus(InternalAccountOwner, Date, Date, boolean)toto generate numbers for existing accounts.
Similar to .list(InternalAccountOwner), but returns each account with the account status, at theClass AccountServiceLocal, BigDecimal getAverageBalance(Account, BigDecimal, DatePeriod, boolean, BigDecimal)givengiven time point.
Returns the balance average for the given account over the given period. It is calculated per day, havingClass AccountServiceLocal, String getOwnerName(Account)thethe balance at the end of each day, averaging by the number of days the balance was unchanged. It can be calculated either over positiveoror 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.
Returns the owner name: if is a system account, get the system account type. otherwise, the name / usernameClass AccountServiceLocal, boolean hasTransfers(Set<UserAccountType>, Set<Group>)ofof the owner user
Returns true if there is at least one transfer performed from or to a user of any of the specified groups, toClass AccountServiceLocal, AccountWithStatusVO toAccountWithStatus(Account, Date, Date, boolean)oror from any of the given accounts.
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
Returns a list of currencies exactly on this network - excludes global currencies if on network, or returnglobalglobal currencies if on global mode
Previews the payment. @paramreceived ifreceiver If not null, is the session data of the payment receiver. If null isindeednot a receive payment
provides a standard BigDecimalScaleResolver for rates. This needs to be set for any rate BigDecimal property of anyClass RateHandler, FromRatesData getFromRates(Account, TransferType, BigDecimal, Date, RateVisibility)ObservableBeanBean model class which is displayed in the user interface.
gets the future rates of a from account that will be after the transaction has been applied. It takesClass RateHandler, RatesData getRates(Account, BigDecimal, Date, RateVisibility)intointo account:
* null rates are replaced by init values
* if the balance isn't sufficient creation values are applied for the unsufficient part, andthethe rateBalanceCorrection and virtualRatedBalance are updated. In this case,FromRatesData.changedDueToCreationis settoto 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 fromeacheach other. Under normal circumstances from account rates and transfer rates are always equal, but maturity policy other than aALWAYSmaymay enforce a zero D-rate on the transfer, thus leaving the from account with a higher D. This is reflected in thespecialspecial 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.
As .getRates(Account, RateVisibility), but uses a time and a balance as argument. This versionClass RateHandler, RatesData getRates(Account, RateVisibility)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 isdatedate EXCLUSIVE, and errors may also occur in loops where two consequetive transfers have the same timestamp. In such a casethethe use of the balance param is recommended. @param time - the time at which the rates are requested. IfnullDateHelper.now is used.InIn that case, also passing a null balance is recommended strongly. @param visibility
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 noClass RateHandler, void setRateParametersToCurrencyDTO(CurrencyDTO)ratesrates available. Fields of rates not visible or not enabled are null.
Uses the present date (now) as date. Internally, itcallscallsgetRates(account, null, DateHelper.now(), visibility). @param account the account. May not be null @param visibility
sets the RateParameters correctly to the currencyDTO, by:
- gets the specific RateParametersDTO from the CurrencyDTO
- if it exists, sets the
enabledOnFormproperty of the RateParametersDTO to true. This isneededneeded for a correct handling on the currency details form.
Handler for specific rates requests. RateHandlers are only supposed to be called from RateHandlerImpl. Other Services should generally call RateService, which is supposed toClass RateTypeHandler, void calculateFromRates(FromRatesData, Account, TransferType, BigDecimal)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
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:Class RateTypeHandler, Date getEnableDate(Currency, Date)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
- in case of D-rate: if the from account is unlimited and there is a creation value D-rate set on
thethe transferType, this is used as the D-rate.- in case of insufficient balance: the total amount is considered to consist of two sets: one set coming
fromfrom the from account, being the complete balance and having the rates of the from accounts, and another set which is newly created againstthethe rate creation values, and being the transaction amount minus the balance. These sets are merged in order to get the rates to be used forthethe transfer.
If there was insufficient balance, the FromRatesData.changedDueToCreation field is set to true.thethe balance or the transfer type. @param fromAccount @param transferType @param amount
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 periodwithoutwithout interrupt. However, rateParameters may have changed during that period.
Performs security checks for the given transaction parameters, taking into account the current session data channel and principal typeClass TransactionServiceLocal, <any> createQuery(TransactionNature, QTransaction, BaseTransactionQuery)
Creates a basic query to search transactions. When a nature is given, will force that one. Otherwise, willClass TransactionServiceLocal, boolean hasTransactions(Set<UserAccountType>, Set<Group>)allowallow any natures
Returns true if there is at least one transaction of a user that belongs to any of the given groupsClass TransactionServiceLocal, boolean isCheckConfirmationPassword(PaymentTransferType, InternalAccountOwner, BigDecimal, Date)performedperformed from or to any of the given user accounts.
It returns true if the confirmation password must be required according to the channel configuration or ifClass TransactionServiceLocal, String ATTR_TRANSACTIONitit 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 themaximummaximum 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 thelastlast parameter.
Script bind variable: the Transaction (only available inthethe TransactionExtensionPointEvent.CONFIRM event, on the validated phase)