@Entity public abstract class BasicUser extends BaseEntity implements IUser, INamedEntity, DefinesNetwork, RoleContainer, EntityWithCustomValues<UserCustomField,UserCustomFieldPossibleValueCategory,UserCustomFieldPossibleValue,UserCustomFieldValue>
| Constructor and Description |
|---|
BasicUser() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getCreationDate() |
java.lang.Class<UserCustomField> |
getCustomFieldClass()
Returns custom field the class on this entity
|
java.lang.Class<UserCustomFieldValue> |
getCustomFieldValueClass()
Returns the class for storing custom field values
|
java.util.Set<UserCustomFieldValue> |
getCustomValues()
Returns all custom field values
|
java.lang.String |
getDisplay() |
java.lang.String |
getEmail() |
java.lang.String |
getName() |
abstract UserNature |
getNature() |
Network |
getNetwork()
Returns the network this entity belongs to
|
java.lang.String |
getNewEmail() |
java.util.Set<Password> |
getPasswords() |
java.lang.String |
getPasswordStatuses() |
java.util.Set<Phone> |
getPhones() |
MobilePhone |
getPreferredMobilePhone()
The preferred mobile phone - if there is a verified mobile, returns it.
|
Phone |
getPreferredPhone()
First attempts
getPreferredMobilePhone(). |
BasicUser |
getRegisteredBy() |
java.util.Date |
getRegistrationConfirmationDate() |
UserRegistration |
getRegistrationType() |
java.lang.String |
getSecurityAnswer() |
SecurityQuestion |
getSecurityQuestion() |
java.lang.String |
getShortDisplay() |
UserStatus |
getStatus() |
abstract User |
getUser()
Returns the user associated with this basic user
|
java.lang.String |
getUsername() |
java.lang.String |
getValidationKey() |
java.util.Date |
getValidationKeyDate() |
ValidationKeyType |
getValidationKeyType() |
boolean |
hasMobileEnabledForSMS() |
boolean |
isActive() |
boolean |
isAdmin()
Returns whether the
Role.ADMIN is granted |
boolean |
isAliasOperator()
Returns whether the
Role.ALIAS_OPERATOR is granted |
boolean |
isBlocked() |
boolean |
isBroker()
Returns whether the
Role.BROKER is granted |
boolean |
isGlobalAdmin()
Returns whether the
Role.GLOBAL_ADMIN is granted |
boolean |
isInactive() |
boolean |
isMember()
returns true if user has member role.
|
boolean |
isNetworkAdmin()
Returns whether the
Role.NETWORK_ADMIN is granted |
boolean |
isOperator()
Returns whether the
Role.OPERATOR is granted |
boolean |
isPendingNewEmailValidation()
Returns true if the user's email modification is pending
from being validated.
|
boolean |
isPendingValidation() |
boolean |
isRemoved() |
boolean |
isRestrictedOperator()
Returns whether the
Role.RESTRICTED_OPERATOR is granted |
boolean |
isSendActivationEmail() |
boolean |
isUserManager()
Returns whether the
Role.ADMIN or Role.BROKER roles are granted |
void |
setCreationDate(java.util.Date creationDate) |
void |
setCustomValues(java.util.Set<UserCustomFieldValue> customValues) |
void |
setDisplay(java.lang.String display) |
void |
setEmail(java.lang.String email) |
void |
setName(java.lang.String name) |
void |
setNetwork(Network network) |
void |
setNewEmail(java.lang.String newEmail) |
void |
setPasswords(java.util.Set<Password> passwords) |
void |
setPasswordStatuses(java.lang.String passwordStatuses) |
void |
setPhones(java.util.Set<Phone> phones) |
void |
setRegisteredBy(BasicUser registeredBy) |
void |
setRegistrationConfirmationDate(java.util.Date registrationConfirmationDate) |
void |
setRegistrationType(UserRegistration registrationType) |
void |
setSecurityAnswer(java.lang.String securityAnswer) |
void |
setSecurityQuestion(SecurityQuestion securityQuestion) |
void |
setSendActivationEmail(boolean sendActivationEmail) |
void |
setShortDisplay(java.lang.String shortDisplay) |
void |
setStatus(UserStatus status) |
void |
setUsername(java.lang.String username) |
void |
setValidationKey(java.lang.String validationKey) |
void |
setValidationKeyDate(java.util.Date validationKeyDate) |
void |
setValidationKeyType(ValidationKeyType validationKeyType) |
java.lang.String |
toString() |
getDataTranslationType, getLogType, getVersionisGlobalclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransientpublic java.util.Date getCreationDate()
public java.lang.Class<UserCustomField> getCustomFieldClass()
EntityWithCustomValuespublic java.lang.Class<UserCustomFieldValue> getCustomFieldValueClass()
EntityWithCustomValuespublic java.util.Set<UserCustomFieldValue> getCustomValues()
EntityWithCustomValuespublic java.lang.String getDisplay()
public java.lang.String getEmail()
public java.lang.String getName()
getName in interface INamedEntitypublic abstract UserNature getNature()
public Network getNetwork()
NetworkedEntitygetNetwork in class NetworkedEntitypublic java.lang.String getNewEmail()
public java.util.Set<Password> getPasswords()
public java.lang.String getPasswordStatuses()
public java.util.Set<Phone> getPhones()
public MobilePhone getPreferredMobilePhone()
public Phone getPreferredPhone()
getPreferredMobilePhone(). If none is found, returns the first land-line.
Otherwise returns null.public BasicUser getRegisteredBy()
public java.util.Date getRegistrationConfirmationDate()
public UserRegistration getRegistrationType()
public java.lang.String getSecurityAnswer()
public SecurityQuestion getSecurityQuestion()
public java.lang.String getShortDisplay()
public UserStatus getStatus()
public abstract User getUser()
public java.lang.String getUsername()
public java.lang.String getValidationKey()
public java.util.Date getValidationKeyDate()
public ValidationKeyType getValidationKeyType()
public boolean hasMobileEnabledForSMS()
public boolean isActive()
public boolean isAdmin()
RoleContainerRole.ADMIN is grantedisAdmin in interface RoleContainerpublic boolean isAliasOperator()
RoleContainerRole.ALIAS_OPERATOR is grantedisAliasOperator in interface RoleContainerpublic boolean isBlocked()
public boolean isBroker()
RoleContainerRole.BROKER is grantedisBroker in interface RoleContainerpublic boolean isGlobalAdmin()
RoleContainerRole.GLOBAL_ADMIN is grantedisGlobalAdmin in interface RoleContainerpublic boolean isInactive()
public boolean isMember()
isMember in interface RoleContainerpublic boolean isNetworkAdmin()
RoleContainerRole.NETWORK_ADMIN is grantedisNetworkAdmin in interface RoleContainerpublic boolean isOperator()
RoleContainerRole.OPERATOR is grantedisOperator in interface RoleContainerpublic boolean isPendingNewEmailValidation()
public boolean isPendingValidation()
public boolean isRemoved()
public boolean isRestrictedOperator()
RoleContainerRole.RESTRICTED_OPERATOR is grantedisRestrictedOperator in interface RoleContainerpublic boolean isSendActivationEmail()
public boolean isUserManager()
RoleContainerRole.ADMIN or Role.BROKER roles are grantedisUserManager in interface RoleContainerpublic void setCreationDate(java.util.Date creationDate)
public void setCustomValues(java.util.Set<UserCustomFieldValue> customValues)
public void setDisplay(java.lang.String display)
public void setEmail(java.lang.String email)
public void setName(java.lang.String name)
setName in interface INamedEntitypublic void setNetwork(Network network)
setNetwork in interface DefinesNetworkpublic void setNewEmail(java.lang.String newEmail)
public void setPasswords(java.util.Set<Password> passwords)
public void setPasswordStatuses(java.lang.String passwordStatuses)
public void setPhones(java.util.Set<Phone> phones)
public void setRegisteredBy(BasicUser registeredBy)
public void setRegistrationConfirmationDate(java.util.Date registrationConfirmationDate)
public void setRegistrationType(UserRegistration registrationType)
public void setSecurityAnswer(java.lang.String securityAnswer)
public void setSecurityQuestion(SecurityQuestion securityQuestion)
public void setSendActivationEmail(boolean sendActivationEmail)
public void setShortDisplay(java.lang.String shortDisplay)
public void setStatus(UserStatus status)
public void setUsername(java.lang.String username)
public void setValidationKey(java.lang.String validationKey)
public void setValidationKeyDate(java.util.Date validationKeyDate)
public void setValidationKeyType(ValidationKeyType validationKeyType)
public java.lang.String toString()
toString in class SimpleEntity