Package org.cyclos.impl.users
Class LocateUserResult
- java.lang.Object
-
- org.cyclos.impl.users.LocateUserResult
-
- All Implemented Interfaces:
DelegatingMutableUserPrincipal,DelegatingUserPrincipal,UserPrincipal
public class LocateUserResult extends Object implements DelegatingMutableUserPrincipal
Result for locating a user
-
-
Constructor Summary
Constructors Constructor Description LocateUserResult(PrincipalType principalType, BasicUser basicUser, UserLocatorVO locator)LocateUserResult(BasicUser basicUser)LocateUserResult(UserPrincipal userPrincipal)LocateUserResult(UserPrincipal userPrincipal, UserLocatorVO locator)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.access.DelegatingUserPrincipal
getDelegate
-
-
-
-
Constructor Detail
-
LocateUserResult
public LocateUserResult(BasicUser basicUser)
-
LocateUserResult
public LocateUserResult(PrincipalType principalType, BasicUser basicUser, UserLocatorVO locator)
-
LocateUserResult
public LocateUserResult(UserPrincipal userPrincipal)
-
LocateUserResult
public LocateUserResult(UserPrincipal userPrincipal, UserLocatorVO locator)
-
-
Method Detail
-
getAccessClient
public AccessClient getAccessClient()
- Specified by:
getAccessClientin interfaceUserPrincipal
-
getAccount
public UserAccount getAccount()
- Specified by:
getAccountin interfaceUserPrincipal
-
getBasicUser
public BasicUser getBasicUser()
- Specified by:
getBasicUserin interfaceUserPrincipal
-
getCustomFieldValue
public UserCustomFieldValue getCustomFieldValue()
- Specified by:
getCustomFieldValuein interfaceUserPrincipal
-
getLocator
public UserLocatorVO getLocator()
-
getMobilePhone
public MobilePhone getMobilePhone()
- Specified by:
getMobilePhonein interfaceUserPrincipal
-
getPin
public Pin getPin()
-
getPrincipal
public String getPrincipal()
Description copied from interface:UserPrincipalShould return a value that can be used to identify the user. In case the value should be hidden, implementors should return null.- Specified by:
getPrincipalin interfaceDelegatingUserPrincipal- Specified by:
getPrincipalin interfaceUserPrincipal
-
getPrincipalType
public PrincipalType getPrincipalType()
- Specified by:
getPrincipalTypein interfaceUserPrincipal
-
getToken
public Token getToken()
- Specified by:
getTokenin interfaceUserPrincipal
-
getTrustedDevice
public TrustedDevice getTrustedDevice()
- Specified by:
getTrustedDevicein interfaceUserPrincipal
-
getUser
public User getUser()
-
initFrom
public void initFrom(UserPrincipal other)
Description copied from interface:DelegatingMutableUserPrincipalCopies all fields from the givenUserPrincipal. When null, sets all fields to null.- Specified by:
initFromin interfaceDelegatingMutableUserPrincipal
-
reAttach
public void reAttach(javax.persistence.EntityManager em)
Attaches the entities if they've been detached from the context.
-
setAccessClient
public void setAccessClient(AccessClient accessClient)
- Specified by:
setAccessClientin interfaceDelegatingMutableUserPrincipal
-
setAccount
public void setAccount(UserAccount userAccount)
- Specified by:
setAccountin interfaceDelegatingMutableUserPrincipal
-
setBasicUser
public void setBasicUser(BasicUser basicUser)
- Specified by:
setBasicUserin interfaceDelegatingMutableUserPrincipal
-
setCustomFieldValue
public void setCustomFieldValue(UserCustomFieldValue customFieldValue)
- Specified by:
setCustomFieldValuein interfaceDelegatingMutableUserPrincipal
-
setMobilePhone
public void setMobilePhone(MobilePhone mobilePhone)
- Specified by:
setMobilePhonein interfaceDelegatingMutableUserPrincipal
-
setPrincipalType
public void setPrincipalType(PrincipalType principalType)
- Specified by:
setPrincipalTypein interfaceDelegatingMutableUserPrincipal
-
setToken
public void setToken(Token token)
- Specified by:
setTokenin interfaceDelegatingMutableUserPrincipal
-
setTrustedDevice
public void setTrustedDevice(TrustedDevice trustedDevice)
- Specified by:
setTrustedDevicein interfaceDelegatingMutableUserPrincipal
-
-