@Entity public abstract class BasicUser extends BaseEntity implements IUser, INamedEntity, DefinesNetwork, RoleContainer
| Constructor and Description |
|---|
BasicUser() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getCreationDate() |
java.lang.String |
getEmail() |
java.lang.String |
getName() |
abstract UserNature |
getNature() |
Network |
getNetwork() |
java.lang.String |
getNewEmail() |
java.util.Set<Password> |
getPasswords() |
java.util.Date |
getRegistrationConfirmationDate() |
UserRegistration |
getRegistrationType() |
java.lang.String |
getSecurityAnswer() |
SecurityQuestion |
getSecurityQuestion() |
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 |
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 |
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 |
setRegistrationConfirmationDate(java.util.Date registrationConfirmationDate) |
void |
setRegistrationType(UserRegistration registrationType) |
void |
setSecurityAnswer(java.lang.String securityAnswer) |
void |
setSecurityQuestion(SecurityQuestion securityQuestion) |
void |
setSendActivationEmail(boolean sendActivationEmail) |
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, getVersion, isGlobal, isPersistent, isTransientclone, equals, getEntityImportance, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCodepublic java.util.Date getCreationDate()
public java.lang.String getEmail()
public java.lang.String getName()
getName in interface INamedEntitypublic abstract UserNature getNature()
public Network getNetwork()
getNetwork in class BaseEntitypublic java.lang.String getNewEmail()
public java.util.Set<Password> getPasswords()
public java.util.Date getRegistrationConfirmationDate()
public UserRegistration getRegistrationType()
public java.lang.String getSecurityAnswer()
public SecurityQuestion getSecurityQuestion()
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 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 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 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 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