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>,OtpOwner,HasNetwork,ProcessableForProxying,UserPrincipal,IEntity,INamedEntity
@Entity public class MobilePhone extends Phone implements UserPrincipal, OtpOwner
A mobile phone.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description MobilePhone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessClientgetAccessClient()UserAccountTypegetAccountType()BasicUsergetBasicUser()UserCustomFieldValuegetCustomFieldValue()MobilePhonegetMobilePhone()PhoneNaturegetNature()StringgetOtpOwnerPathName()Returns the path's name to the OTP owner entity.Set<Otp>getOtps()Returns the current OTPsBasicUsergetOtpUser()Returns the OTP owner user.StringgetPrincipal()Should return a value that can be used to identify the user.PrincipalTypegetPrincipalType()TokengetToken()TrustedDevicegetTrustedDevice()DategetVerificationDate()booleanisEnabledForSms()booleanisVerified()voidsetAsOwnerFor(Otp otp)Sets this owner as the owner of the given Otp entityvoidsetEnabledForSms(boolean enabledForSms)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
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.HasNetwork
getNetwork, isGlobal
-
Methods inherited from interface org.cyclos.entities.access.OtpOwner
resolveOwnerPath
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
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
-
getNature
public PhoneNature getNature()
-
getOtpOwnerPathName
public String getOtpOwnerPathName()
Description copied from interface:OtpOwnerReturns the path's name to the OTP owner entity.- Specified by:
getOtpOwnerPathNamein interfaceOtpOwner- See Also:
OtpOwner.resolveOwnerPath(EntityPathBase)
-
getOtps
public Set<Otp> getOtps()
Description copied from interface:OtpOwnerReturns the current OTPs
-
getOtpUser
public BasicUser getOtpUser()
Description copied from interface:OtpOwnerReturns the OTP owner user.- Specified by:
getOtpUserin interfaceOtpOwner
-
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
-
getVerificationDate
public Date getVerificationDate()
-
isEnabledForSms
public boolean isEnabledForSms()
-
isVerified
public boolean isVerified()
-
setAsOwnerFor
public void setAsOwnerFor(Otp otp)
Description copied from interface:OtpOwnerSets this owner as the owner of the given Otp entity- Specified by:
setAsOwnerForin interfaceOtpOwner
-
setEnabledForSms
public void setEnabledForSms(boolean enabledForSms)
-
setVerificationDate
public void setVerificationDate(Date verificationDate)
-
-