Package org.cyclos.entities.utils
Class UserPrincipals.SimpleUserPrincipal
- java.lang.Object
-
- org.cyclos.entities.utils.UserPrincipals.SimpleUserPrincipal
-
- All Implemented Interfaces:
UserPrincipal
- Enclosing class:
- UserPrincipals
protected static class UserPrincipals.SimpleUserPrincipal extends Object implements UserPrincipal
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSimpleUserPrincipal()SimpleUserPrincipal(BasicUser basicUser, PrincipalType principalType, String principal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessClientgetAccessClient()UserAccountTypegetAccountType()BasicUsergetBasicUser()UserCustomFieldValuegetCustomFieldValue()MobilePhonegetMobilePhone()StringgetPrincipal()Should return a value that can be used to identify the user.PrincipalTypegetPrincipalType()TokengetToken()TrustedDevicegetTrustedDevice()protected voidsetBasicUser(BasicUser basicUser)protected voidsetPrincipal(String principal)protected voidsetPrincipalType(PrincipalType principalType)
-
-
-
Constructor Detail
-
SimpleUserPrincipal
public SimpleUserPrincipal(BasicUser basicUser, PrincipalType principalType, String principal)
-
SimpleUserPrincipal
protected SimpleUserPrincipal()
-
-
Method Detail
-
getAccessClient
public AccessClient getAccessClient()
- Specified by:
getAccessClientin interfaceUserPrincipal
-
getAccountType
public UserAccountType getAccountType()
- Specified by:
getAccountTypein interfaceUserPrincipal
-
getBasicUser
public BasicUser getBasicUser()
- Specified by:
getBasicUserin interfaceUserPrincipal
-
getCustomFieldValue
public UserCustomFieldValue getCustomFieldValue()
- Specified by:
getCustomFieldValuein interfaceUserPrincipal
-
getMobilePhone
public MobilePhone getMobilePhone()
- Specified by:
getMobilePhonein interfaceUserPrincipal
-
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 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
-
setBasicUser
protected void setBasicUser(BasicUser basicUser)
-
setPrincipal
protected void setPrincipal(String principal)
-
setPrincipalType
protected void setPrincipalType(PrincipalType principalType)
-
-