Package org.cyclos.impl.banking
Class LocateAccountOwnerResult
- java.lang.Object
-
- org.cyclos.impl.banking.LocateAccountOwnerResult
-
public class LocateAccountOwnerResult extends Object
Result for locating an account owner
-
-
Constructor Summary
Constructors Constructor Description LocateAccountOwnerResult(LocateUserResult locateUserResult)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocateAccountOwnerResultempty()static LocateAccountOwnerResultexternal()UserAccountgetAccount()AccountgetAccount(AccountType type)Returns the located account, making sure it is of the expected type.AccountOwnergetAccountOwner()BasicUsergetBasicUser()InternalAccountOwnergetInternalAccountOwner()Returns the normalized internal account owner or null, that is:SystemAccountOwner,Useror null.InternalAccountOwnergetInternalVO()LocateUserResultgetLocateUserResult()OperatorgetOperator()PrincipalTypegetPrincipalType()UsergetUser()AccountOwnergetVO()static LocateAccountOwnerResultinstance(SingletonAccountOwner owner)booleanisEmpty()booleanisExternal()booleanisOperator()booleanisSystem()booleanisUser()static LocateAccountOwnerResultsystem()
-
-
-
Constructor Detail
-
LocateAccountOwnerResult
public LocateAccountOwnerResult(LocateUserResult locateUserResult)
-
-
Method Detail
-
empty
public static LocateAccountOwnerResult empty()
-
external
public static LocateAccountOwnerResult external()
-
instance
public static LocateAccountOwnerResult instance(SingletonAccountOwner owner)
-
system
public static LocateAccountOwnerResult system()
-
getAccount
public UserAccount getAccount()
-
getAccount
public Account getAccount(AccountType type)
Returns the located account, making sure it is of the expected type. If the locate was not performed by an account number, find the account of the current owner and the given type. If the account is not found it returns null.
-
getAccountOwner
public AccountOwner getAccountOwner()
-
getBasicUser
public BasicUser getBasicUser()
-
getInternalAccountOwner
public InternalAccountOwner getInternalAccountOwner()
Returns the normalized internal account owner or null, that is:SystemAccountOwner,Useror null.
-
getInternalVO
public InternalAccountOwner getInternalVO()
-
getLocateUserResult
public LocateUserResult getLocateUserResult()
-
getOperator
public Operator getOperator()
-
getPrincipalType
public PrincipalType getPrincipalType()
-
getUser
public User getUser()
-
getVO
public AccountOwner getVO()
-
isEmpty
public boolean isEmpty()
-
isExternal
public boolean isExternal()
-
isOperator
public boolean isOperator()
-
isSystem
public boolean isSystem()
-
isUser
public boolean isUser()
-
-