public class LocateAccountOwnerResult
extends java.lang.Object
| Constructor and Description |
|---|
LocateAccountOwnerResult(org.cyclos.impl.users.LocateUserResult locateUserResult,
PrincipalType principalType) |
| Modifier and Type | Method and Description |
|---|---|
static LocateAccountOwnerResult |
empty() |
static LocateAccountOwnerResult |
external() |
UserAccount |
getAccount() |
Account |
getAccount(AccountType type)
Returns the located account, making sure it is of the expected type.
|
AccountOwner |
getAccountOwner()
|
BasicUser |
getBasicUser() |
InternalAccountOwner |
getInternalAccountOwner()
Returns the normalized internal account owner or null, that is:
SystemAccountOwner, User or null. |
InternalAccountOwner |
getInternalVO() |
org.cyclos.impl.users.LocateUserResult |
getLocateUserResult() |
Operator |
getOperator() |
PrincipalType |
getPrincipalType() |
User |
getUser() |
AccountOwner |
getVO() |
static LocateAccountOwnerResult |
instance(SingletonAccountOwner owner) |
boolean |
isExternal() |
boolean |
isOperator() |
boolean |
isSystem() |
boolean |
isUser() |
static LocateAccountOwnerResult |
system() |
public LocateAccountOwnerResult(org.cyclos.impl.users.LocateUserResult locateUserResult,
PrincipalType principalType)
public static LocateAccountOwnerResult empty()
public static LocateAccountOwnerResult external()
public static LocateAccountOwnerResult instance(SingletonAccountOwner owner)
public static LocateAccountOwnerResult system()
public UserAccount getAccount()
public Account getAccount(AccountType type) throws EntityNotFoundException
EntityNotFoundExceptionEntityNotFoundExceptionpublic AccountOwner getAccountOwner()
public BasicUser getBasicUser()
public InternalAccountOwner getInternalAccountOwner()
SystemAccountOwner, User or null.public InternalAccountOwner getInternalVO()
public org.cyclos.impl.users.LocateUserResult getLocateUserResult()
public Operator getOperator()
public PrincipalType getPrincipalType()
public User getUser()
public AccountOwner getVO()
public boolean isExternal()
public boolean isOperator()
public boolean isSystem()
public boolean isUser()