Generated by
JDiff

Interface org.cyclos.impl.banking.AccountHandler

Removed Methods
AccountOwner normalize(AccountOwner) This method must be invoked before work with any instances of AccountOwner.
If owner is a user containing the role ADMIN then it returns a SystemAccountOwner.
AccountOwner normalizeOrCurrent(AccountOwner) Same as .normalize(AccountOwner), except that if the given owner is null, returns the owner of the logged user.
 

Added Methods
String getAccountNumber(Account) Returns the masked account number for the given account, if applicable.
LocateAccountOwnerResult locate(AccountOwner) Locates an account owner, using no specific principal types - the same ones used to locate users will be attempted
LocateAccountOwnerResult locate(AccountOwner, boolean, boolean, Collection<PrincipalType>, PrincipalType) Locate and normalize the specified account owner using the specified principal types (if null then try with all 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.
LocateAccountOwnerResult locateOrCurrent(AccountOwner) Like .locate(AccountOwner), except that if the given owner is null, returns the owner of the logged user.
AccountOwner toAccountOwnerVO(AccountOwner) Like .toAccountOwnerVO(InternalAccountOwner) but supporting ExternalAccountOwner
AccountOwner toAccountOwnerVO(LocateAccountOwnerResult) If the result represents a user there are two options:
Otherwise returns a SystemAccountOwner
InternalAccountOwner toAccountOwnerVO(InternalAccountOwner) Return SystemAccountOwner or UserDetailedVO.
 

Changed Methods
InternalAccountOwner getAccountOwner() Change in return type from AccountOwner to InternalAccountOwner.
Returns the account owner of the logged user.
If there is a logged admin, returns SystemAccountOwner.