Package org.cyclos.entities.users
Class MobilePhone
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.users.Phone
-
- org.cyclos.entities.users.MobilePhone
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,ProcessableForDataTranslation,UserPrincipal,IEntity,INamedEntity
@Entity public class MobilePhone extends Phone implements UserPrincipal
A mobile phone.
-
-
Constructor Summary
Constructors Constructor Description MobilePhone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessClientgetAccessClient()UserAccountgetAccount()BasicUsergetBasicUser()UserCustomFieldValuegetCustomFieldValue()IntegergetFailedVerificationAttempts()MobilePhonegetMobilePhone()PhoneNaturegetNature()StringgetPrincipal()Should return a value that can be used to identify the user.PrincipalTypegetPrincipalType()TokengetToken()TrustedDevicegetTrustedDevice()StringgetVerificationCode()DategetVerificationCodeSendDate()DategetVerificationDate()booleanisEnabledForSms()booleanisVerified()voidsetEnabledForSms(boolean enabledForSms)voidsetFailedVerificationAttempts(Integer failedVerificationAttempts)voidsetVerificationCode(String verificationCode)voidsetVerificationCodeSendDate(Date verificationCodeSendDate)voidsetVerificationDate(Date verificationDate)-
Methods inherited from class org.cyclos.entities.users.Phone
getNetwork, getNormalizedNumber, getRawNumber, getUser, isHidden, setHidden, setNormalizedNumber, setRawNumber, setUser
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient
-
-
-
-
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
-
getFailedVerificationAttempts
public Integer getFailedVerificationAttempts()
-
getMobilePhone
public MobilePhone getMobilePhone()
- Specified by:
getMobilePhonein interfaceUserPrincipal
-
getNature
public PhoneNature getNature()
-
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
-
getVerificationCode
public String getVerificationCode()
-
getVerificationCodeSendDate
public Date getVerificationCodeSendDate()
-
getVerificationDate
public Date getVerificationDate()
-
isEnabledForSms
public boolean isEnabledForSms()
-
isVerified
public boolean isVerified()
-
setEnabledForSms
public void setEnabledForSms(boolean enabledForSms)
-
setFailedVerificationAttempts
public void setFailedVerificationAttempts(Integer failedVerificationAttempts)
-
setVerificationCode
public void setVerificationCode(String verificationCode)
-
setVerificationCodeSendDate
public void setVerificationCodeSendDate(Date verificationCodeSendDate)
-
setVerificationDate
public void setVerificationDate(Date verificationDate)
-
-