public interface AccountHandler
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccountNumber(Account account)
Returns the masked account number for the given account, if applicable.
|
InternalAccountOwner |
getAccountOwner()
Returns the account owner of the logged user.
|
boolean |
isSystemAccountOwner(AccountOwner owner) |
LocateAccountOwnerResult |
locate(AccountOwner accountOwner)
Locates an account owner, using no specific principal types - the same ones used to locate users will be
attempted
|
LocateAccountOwnerResult |
locate(AccountOwner accountOwner,
boolean allowById,
boolean allowContact,
boolean allowOperators,
java.util.Collection<PrincipalType> principalTypes,
PrincipalType defaultPrincipalType,
boolean forReceive)
Locate and normalize the specified account owner using the specified principal types (if null then try with all
allowed principal types).
|
LocateAccountOwnerResult |
locateOrCurrent(AccountOwner accountOwner)
Like
locate(AccountOwner), except that if the given owner is null, returns the owner of the logged user. |
AccountOwner |
toAccountOwnerVO(AccountOwner accountOwner)
Same as
toAccountOwnerVO(AccountOwner, boolean), but never allowing operators. |
AccountOwner |
toAccountOwnerVO(AccountOwner accountOwner,
boolean allowOperator)
Like
toAccountOwnerVO(InternalAccountOwner, boolean) but supporting ExternalAccountOwner |
InternalAccountOwner |
toAccountOwnerVO(InternalAccountOwner accountOwner)
Same as
toAccountOwnerVO(InternalAccountOwner, boolean), but never allowing operators. |
InternalAccountOwner |
toAccountOwnerVO(InternalAccountOwner accountOwner,
boolean allowOperator)
Return
SystemAccountOwner or BasicUserVO. |
AccountOwner |
toAccountOwnerVO(LocateAccountOwnerResult result)
Same as
toAccountOwnerVO(LocateAccountOwnerResult, boolean), but never allowing operators. |
AccountOwner |
toAccountOwnerVO(LocateAccountOwnerResult result,
boolean allowOperator)
If the result represents a user there are two options:
If the user was located then returns a LocatedUserVO
If the user was not located then returns a BasicUserVO (OperatorVO only if allowOperator is
true)Otherwise returns a SystemAccountOwner |
java.lang.String getAccountNumber(Account account)
InternalAccountOwner getAccountOwner()
SystemAccountOwner. If any other user, returns it.
Otherwise, returns null.boolean isSystemAccountOwner(AccountOwner owner)
LocateAccountOwnerResult locate(AccountOwner accountOwner)
LocateAccountOwnerResult locate(AccountOwner accountOwner, boolean allowById, boolean allowContact, boolean allowOperators, java.util.Collection<PrincipalType> principalTypes, PrincipalType defaultPrincipalType, boolean forReceive)
SystemAccountOwner will be
created.SystemAccountOwner, ExternalAccountOwner or the user representing the
specified owner.LocateAccountOwnerResult locateOrCurrent(AccountOwner accountOwner)
locate(AccountOwner), except that if the given owner is null, returns the owner of the logged user.AccountOwner toAccountOwnerVO(AccountOwner accountOwner)
toAccountOwnerVO(AccountOwner, boolean), but never allowing operators.AccountOwner toAccountOwnerVO(AccountOwner accountOwner, boolean allowOperator)
toAccountOwnerVO(InternalAccountOwner, boolean) but supporting ExternalAccountOwnerInternalAccountOwner toAccountOwnerVO(InternalAccountOwner accountOwner)
toAccountOwnerVO(InternalAccountOwner, boolean), but never allowing operators.InternalAccountOwner toAccountOwnerVO(InternalAccountOwner accountOwner, boolean allowOperator)
AccountOwner toAccountOwnerVO(LocateAccountOwnerResult result)
toAccountOwnerVO(LocateAccountOwnerResult, boolean), but never allowing operators.AccountOwner toAccountOwnerVO(LocateAccountOwnerResult result, boolean allowOperator)
LocatedUserVOBasicUserVO (OperatorVO only if allowOperator is
true)SystemAccountOwner