| 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. |