@Entity public class User extends BasicUser implements ProductOwner
| Modifier and Type | Method and Description |
|---|---|
void |
addImage(UserImage image) |
boolean |
addProduct(Product product) |
java.util.Set<UserAccount> |
getAccounts() |
java.util.Date |
getActivationDate() |
UserActivity |
getActivity() |
java.util.Set<UserAddress> |
getAddresses() |
java.util.Set<BasicAd> |
getAds() |
java.util.Set<AgreementLog> |
getAgreementLogs() |
java.util.Set<UserAlert> |
getAlerts() |
java.util.Set<Product> |
getAllProducts() |
java.util.Set<User> |
getBrokeredUsers() |
java.util.Set<BrokeringLog> |
getBrokeringLogs() |
java.util.Set<Brokering> |
getBrokerings() |
java.util.Set<Brokering> |
getBrokeringsAsUser() |
java.util.Set<User> |
getBrokers() |
java.util.Map<Channel,UserChannel> |
getChannels() |
java.util.Set<User> |
getContacts() |
java.util.Set<UserDashboardAction> |
getDashboardActions() |
Group |
getGroup() |
java.util.Set<UserGroupLog> |
getGroupHistory() |
java.util.Set<User> |
getIgnoreFeedback() |
UserImage |
getImage() |
int |
getImageCount() |
java.util.List<UserImage> |
getImages() |
EntityLogType |
getLogType()
If this entity generates log then it must returns its
EntityLogType. |
User |
getMainBroker() |
UserNature |
getNature() |
java.util.Set<Product> |
getProducts() |
java.util.Set<AdQuestion> |
getQuestions() |
java.util.Set<Reference> |
getReferencesFrom() |
java.util.Set<Reference> |
getReferencesTo() |
UserRegionalSettings |
getRegionalSettings() |
java.util.Set<TempImage> |
getUploadedImages() |
User |
getUser()
Returns the user associated with this basic user
|
java.util.Set<UserAddress> |
getVisibleAddresses()
Returns visible and located addresses
|
boolean |
hasIndividualProducts() |
boolean |
hasMobileEnabledForSMS() |
boolean |
isAdmin()
Returns whether the
Role.ADMIN is granted |
boolean |
isBroker()
Returns whether the
Role.BROKER is granted |
boolean |
isGlobalAdmin()
Returns whether the
Role.GLOBAL_ADMIN is granted |
boolean |
isHideEmail() |
boolean |
isMember()
returns true if user has member role.
|
boolean |
isNetworkAdmin()
Returns whether the
Role.NETWORK_ADMIN is granted |
boolean |
removeProduct(Product product) |
void |
setAccounts(java.util.Set<UserAccount> accounts) |
void |
setActivationDate(java.util.Date activationDate) |
void |
setActivity(UserActivity activity) |
void |
setAddresses(java.util.Set<UserAddress> addresses) |
void |
setAds(java.util.Set<BasicAd> ads) |
void |
setAgreementLogs(java.util.Set<AgreementLog> agreementLogs) |
void |
setAlerts(java.util.Set<UserAlert> alerts) |
void |
setBrokeredUsers(java.util.Set<User> brokeredUsers) |
void |
setBrokeringLogs(java.util.Set<BrokeringLog> brokeringLogs) |
void |
setBrokers(java.util.Set<User> brokers) |
void |
setChannels(java.util.Map<Channel,UserChannel> channels) |
void |
setDashboardActions(java.util.Set<UserDashboardAction> dashboardActions) |
void |
setGroup(Group group) |
void |
setGroupHistory(java.util.Set<UserGroupLog> groupHistory) |
void |
setHideEmail(boolean hideEmail) |
void |
setIgnoreFeedback(java.util.Set<User> ignoreFeedback) |
void |
setImages(java.util.List<UserImage> images) |
void |
setProducts(java.util.Set<Product> products) |
void |
setQuestions(java.util.Set<AdQuestion> questions) |
void |
setReferencesFrom(java.util.Set<Reference> referencesFrom) |
void |
setReferencesTo(java.util.Set<Reference> referencesTo) |
void |
setRegionalSettings(UserRegionalSettings regionalSettings) |
void |
setUploadedImages(java.util.Set<TempImage> uploadedImages) |
getCreationDate, getCustomFieldClass, getCustomFieldValueClass, getCustomValues, getDisplay, getEmail, getName, getNetwork, getNewEmail, getPasswords, getPhones, getPreferredMobilePhone, getPreferredPhone, getRegisteredBy, getRegistrationConfirmationDate, getRegistrationType, getSecurityAnswer, getSecurityQuestion, getShortDisplay, getStatus, getUsername, getValidationKey, getValidationKeyDate, getValidationKeyType, isActive, isAliasOperator, isBlocked, isInactive, isOperator, isPendingNewEmailValidation, isPendingValidation, isRemoved, isRestrictedOperator, isSendActivationEmail, isUserManager, setCreationDate, setCustomValues, setDisplay, setEmail, setName, setNetwork, setNewEmail, setPasswords, setPhones, setRegisteredBy, setRegistrationConfirmationDate, setRegistrationType, setSecurityAnswer, setSecurityQuestion, setSendActivationEmail, setShortDisplay, setStatus, setUsername, setValidationKey, setValidationKeyDate, setValidationKeyType, toStringgetDataTranslationType, getVersion, isGlobal, isPersistent, isTransientclone, equals, getEntityImportance, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCodepublic User()
public User(Group group)
public void addImage(UserImage image)
public boolean addProduct(Product product)
addProduct in interface ProductOwnerpublic java.util.Set<UserAccount> getAccounts()
public java.util.Date getActivationDate()
public UserActivity getActivity()
public java.util.Set<UserAddress> getAddresses()
public java.util.Set<BasicAd> getAds()
public java.util.Set<AgreementLog> getAgreementLogs()
public java.util.Set<UserAlert> getAlerts()
public java.util.Set<Product> getAllProducts()
getAllProducts in interface ProductOwnerpublic java.util.Set<User> getBrokeredUsers()
public java.util.Set<BrokeringLog> getBrokeringLogs()
public java.util.Set<Brokering> getBrokerings()
public java.util.Set<Brokering> getBrokeringsAsUser()
public java.util.Set<User> getBrokers()
public java.util.Map<Channel,UserChannel> getChannels()
public java.util.Set<User> getContacts()
public java.util.Set<UserDashboardAction> getDashboardActions()
public Group getGroup()
public java.util.Set<UserGroupLog> getGroupHistory()
public java.util.Set<User> getIgnoreFeedback()
public UserImage getImage()
public int getImageCount()
public java.util.List<UserImage> getImages()
public EntityLogType getLogType()
BaseEntityEntityLogType.getLogType in class BaseEntityEntityLogType. Null means it doesn't allow log.public User getMainBroker()
public UserNature getNature()
public java.util.Set<Product> getProducts()
getProducts in interface ProductOwnerpublic java.util.Set<AdQuestion> getQuestions()
public java.util.Set<Reference> getReferencesFrom()
public java.util.Set<Reference> getReferencesTo()
public UserRegionalSettings getRegionalSettings()
public java.util.Set<TempImage> getUploadedImages()
public User getUser()
BasicUserpublic java.util.Set<UserAddress> getVisibleAddresses()
public boolean hasIndividualProducts()
public boolean hasMobileEnabledForSMS()
public boolean isAdmin()
RoleContainerRole.ADMIN is grantedisAdmin in interface RoleContainerisAdmin in class BasicUserpublic boolean isBroker()
RoleContainerRole.BROKER is grantedisBroker in interface RoleContainerisBroker in class BasicUserpublic boolean isGlobalAdmin()
RoleContainerRole.GLOBAL_ADMIN is grantedisGlobalAdmin in interface RoleContainerisGlobalAdmin in class BasicUserpublic boolean isHideEmail()
public boolean isMember()
BasicUserisMember in interface RoleContainerisMember in class BasicUserpublic boolean isNetworkAdmin()
RoleContainerRole.NETWORK_ADMIN is grantedisNetworkAdmin in interface RoleContainerisNetworkAdmin in class BasicUserpublic boolean removeProduct(Product product)
removeProduct in interface ProductOwnerpublic void setAccounts(java.util.Set<UserAccount> accounts)
public void setActivationDate(java.util.Date activationDate)
public void setActivity(UserActivity activity)
public void setAddresses(java.util.Set<UserAddress> addresses)
public void setAds(java.util.Set<BasicAd> ads)
public void setAgreementLogs(java.util.Set<AgreementLog> agreementLogs)
public void setAlerts(java.util.Set<UserAlert> alerts)
public void setBrokeredUsers(java.util.Set<User> brokeredUsers)
public void setBrokeringLogs(java.util.Set<BrokeringLog> brokeringLogs)
public void setBrokers(java.util.Set<User> brokers)
public void setChannels(java.util.Map<Channel,UserChannel> channels)
public void setDashboardActions(java.util.Set<UserDashboardAction> dashboardActions)
public void setGroup(Group group)
public void setGroupHistory(java.util.Set<UserGroupLog> groupHistory)
public void setHideEmail(boolean hideEmail)
public void setIgnoreFeedback(java.util.Set<User> ignoreFeedback)
public void setImages(java.util.List<UserImage> images)
public void setProducts(java.util.Set<Product> products)
public void setQuestions(java.util.Set<AdQuestion> questions)
public void setReferencesFrom(java.util.Set<Reference> referencesFrom)
public void setReferencesTo(java.util.Set<Reference> referencesTo)
public void setRegionalSettings(UserRegionalSettings regionalSettings)
public void setUploadedImages(java.util.Set<TempImage> uploadedImages)