@Entity public class User extends BasicUser implements ProductOwner, ImageOwner<User,UserImage>
| Modifier and Type | Method and Description |
|---|---|
boolean |
addProduct(Product product) |
java.util.Set<Product> |
doGetProducts() |
java.lang.String |
getAcceptedAgreementIds() |
java.util.Set<Agreement> |
getAcceptedAgreements() |
java.util.Set<UserAccount> |
getAccounts() |
java.util.Date |
getActivationDate() |
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<java.lang.Long> |
getBrokerIds() |
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<ContactInfo> |
getContactInfos() |
java.util.Set<UserDashboardAction> |
getDashboardActions() |
UserAddress |
getDefaultAddress() |
Group |
getGroup() |
java.util.Set<UserGroupLog> |
getGroupHistory() |
GroupSet |
getGroupSet() |
java.util.Set<User> |
getIgnoreFeedback() |
UserImage |
getImage()
Either the single image or a de-normalized reference to the first image
|
java.util.List<UserImage> |
getImages()
Either all images or a collection with the single image
|
java.lang.String |
getIndividualProductIds() |
User |
getMainBroker() |
Role |
getMainRole() |
UserNature |
getNature() |
java.util.Set<PrivacyControl> |
getPrivacyControls() |
java.util.Set<Product> |
getProducts() |
java.util.Set<AdQuestion> |
getQuestions() |
java.util.Set<Reference> |
getReferencesFrom() |
java.util.Set<Reference> |
getReferencesTo() |
java.util.List<TempImage> |
getUploadedImages() |
User |
getUser()
Returns the user associated with this basic user
|
boolean |
isAdmin()
Returns whether the
Role.ADMIN is granted |
boolean |
isBroker()
Returns whether the
Role.BROKER is granted |
boolean |
isEnablePrivacyControl() |
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 |
setAcceptedAgreements(java.util.Set<Agreement> acceptedAgreements) |
void |
setAccounts(java.util.Set<UserAccount> accounts) |
void |
setActivationDate(java.util.Date activationDate) |
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 |
setBrokerIds(java.util.Set<java.lang.Long> brokerIds) |
void |
setBrokeringLogs(java.util.Set<BrokeringLog> brokeringLogs) |
void |
setBrokers(java.util.Set<User> brokers) |
void |
setChannels(java.util.Map<Channel,UserChannel> channels) |
void |
setContactInfos(java.util.Set<ContactInfo> contactInfos) |
void |
setDashboardActions(java.util.Set<UserDashboardAction> dashboardActions) |
void |
setEnablePrivacyControl(boolean enablePrivacyControl) |
void |
setGroup(Group group) |
void |
setGroupHistory(java.util.Set<UserGroupLog> groupHistory) |
void |
setHideEmail(boolean hideEmail) |
void |
setIgnoreFeedback(java.util.Set<User> ignoreFeedback) |
void |
setImage(UserImage image)
Either the single image or a de-normalized reference to the first image
|
void |
setImages(java.util.List<UserImage> images)
Assigns either all images or the first image if the owner has a single one
|
void |
setIndividualProductIds(java.lang.String individualProductIds) |
void |
setPrivacyControls(java.util.Set<PrivacyControl> privacyControls) |
void |
setQuestions(java.util.Set<AdQuestion> questions) |
void |
setReferencesFrom(java.util.Set<Reference> referencesFrom) |
void |
setReferencesTo(java.util.Set<Reference> referencesTo) |
void |
setUploadedImages(java.util.List<TempImage> uploadedImages) |
addFcmToken, getActivity, getCreationDate, getCustomFieldClass, getCustomFieldValueClass, getCustomValues, getDisplayForManagers, getDisplayForOthers, getEmail, getFcmTokens, getForgotPasswordCode, getForgotPasswordCodeDate, getIdentityProviderRequestId, getLandLinePhones, getLocale, getMessagessLastViewDate, getMobilePhones, getName, getNetwork, getNewEmail, getNotificationsLastViewDate, getPasswords, getPasswordStatuses, getPhones, getPreferredLandLinePhone, getPreferredMobilePhone, getPreferredPhone, getRegisteredBy, getRegistrationConfirmationDate, getRegistrationType, getSecurityAnswer, getSecurityQuestion, getShortDisplay, getStatus, getUsername, getValidationKey, getValidationKeyDate, getValidationKeyType, hasMobileEnabledForSMS, isActive, isAliasOperator, isBlocked, isEmailVerified, isInactive, isOperator, isPendingNewEmailValidation, isPendingValidation, isPurged, isRemoved, isRestrictedOperator, isSendActivationEmail, isUserManager, removeFcmToken, setActivity, setCreationDate, setCustomValues, setDisplayForManagers, setDisplayForOthers, setEmail, setEmailVerified, setFcmTokens, setForgotPasswordCode, setForgotPasswordCodeDate, setIdentityProviderRequestId, setLocale, setName, setNetwork, setNewEmail, setPasswords, setPasswordStatuses, setPhones, setRegisteredBy, setRegistrationConfirmationDate, setRegistrationType, setSecurityAnswer, setSecurityQuestion, setSendActivationEmail, setShortDisplay, setStatus, setUsername, setValidationKey, setValidationKeyDate, setValidationKeyType, toStringgetDataTranslationType, getVersionisGlobalclone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetNetworkpublic User()
public User(Group group)
public boolean addProduct(Product product)
addProduct in interface ProductOwnerpublic java.util.Set<Product> doGetProducts()
public java.lang.String getAcceptedAgreementIds()
public java.util.Set<Agreement> getAcceptedAgreements()
public java.util.Set<UserAccount> getAccounts()
public java.util.Date getActivationDate()
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<java.lang.Long> getBrokerIds()
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<ContactInfo> getContactInfos()
public java.util.Set<UserDashboardAction> getDashboardActions()
public UserAddress getDefaultAddress()
public Group getGroup()
public java.util.Set<UserGroupLog> getGroupHistory()
public GroupSet getGroupSet()
public java.util.Set<User> getIgnoreFeedback()
public UserImage getImage()
ImageOwnergetImage in interface ImageOwner<User,UserImage>public java.util.List<UserImage> getImages()
ImageOwnergetImages in interface ImageOwner<User,UserImage>public java.lang.String getIndividualProductIds()
public User getMainBroker()
public Role getMainRole()
getMainRole in class BasicUserpublic UserNature getNature()
public java.util.Set<PrivacyControl> getPrivacyControls()
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 java.util.List<TempImage> getUploadedImages()
public User getUser()
BasicUserpublic 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 isEnablePrivacyControl()
public 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 setAcceptedAgreements(java.util.Set<Agreement> acceptedAgreements)
public void setAccounts(java.util.Set<UserAccount> accounts)
public void setActivationDate(java.util.Date activationDate)
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 setBrokerIds(java.util.Set<java.lang.Long> brokerIds)
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 setContactInfos(java.util.Set<ContactInfo> contactInfos)
public void setDashboardActions(java.util.Set<UserDashboardAction> dashboardActions)
public void setEnablePrivacyControl(boolean enablePrivacyControl)
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 setImage(UserImage image)
ImageOwnersetImage in interface ImageOwner<User,UserImage>public void setImages(java.util.List<UserImage> images)
ImageOwnersetImages in interface ImageOwner<User,UserImage>public void setIndividualProductIds(java.lang.String individualProductIds)
public void setPrivacyControls(java.util.Set<PrivacyControl> privacyControls)
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 setUploadedImages(java.util.List<TempImage> uploadedImages)