Package org.cyclos.entities.users
Class User
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.users.BasicUser
-
- org.cyclos.entities.users.User
-
- All Implemented Interfaces:
Cloneable,ProcessableForDataTranslation,DefinesNetwork,EntityWithCustomValues<UserCustomField,UserCustomFieldPossibleValueCategory,UserCustomFieldPossibleValue,UserCustomFieldValue>,ImageOwner<User,UserImage>,ProductOwner,RoleContainer,AccountOwner,InternalAccountOwner,IEntity,INamedEntity,IUser
@Entity public class User extends BasicUser implements ProductOwner, ImageOwner<User,UserImage>
The user extends the BasicUser with the relationship with a group, so that all user subclasses are required to have a group
-
-
Method Summary
-
Methods inherited from class org.cyclos.entities.users.BasicUser
addFcmToken, getActivity, getCreationDate, getCustomFieldClass, getCustomFieldValueClass, getCustomValues, getDisplayForManagers, getDisplayForOthers, getEmail, getFcmTokens, getForgotPasswordCode, getForgotPasswordCodeDate, getFrontend, 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, setFrontend, setIdentityProviderRequestId, setLocale, setName, setNetwork, setNewEmail, setPasswords, setPasswordStatuses, setPhones, setRegisteredBy, setRegistrationConfirmationDate, setRegistrationType, setSecurityAnswer, setSecurityQuestion, setSendActivationEmail, setShortDisplay, setStatus, setUsername, setValidationKey, setValidationKeyDate, setValidationKeyType, 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
clone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.users.ProductOwner
getNetwork
-
-
-
-
Constructor Detail
-
User
public User()
-
User
public User(Group group)
-
-
Method Detail
-
addProduct
public boolean addProduct(Product product)
- Specified by:
addProductin interfaceProductOwner
-
getAcceptedAgreementIds
public String getAcceptedAgreementIds()
-
getAccounts
public Set<UserAccount> getAccounts()
-
getActivationDate
public Date getActivationDate()
-
getAddresses
public Set<UserAddress> getAddresses()
-
getAgreementLogs
public Set<AgreementLog> getAgreementLogs()
-
getAllProducts
public Set<Product> getAllProducts()
- Specified by:
getAllProductsin interfaceProductOwner
-
getBrokeringLogs
public Set<BrokeringLog> getBrokeringLogs()
-
getChannel
public UserChannel getChannel(Channel channel)
-
getChannels
public Set<UserChannel> getChannels()
-
getContactInfos
public Set<ContactInfo> getContactInfos()
-
getDashboardActions
public Set<UserDashboardAction> getDashboardActions()
-
getDefaultAddress
public UserAddress getDefaultAddress()
-
getGroup
public Group getGroup()
-
getGroupHistory
public Set<UserGroupLog> getGroupHistory()
-
getGroupSet
public GroupSet getGroupSet()
-
getImage
public UserImage getImage()
Description copied from interface:ImageOwnerEither the single image or a de-normalized reference to the first image- Specified by:
getImagein interfaceImageOwner<User,UserImage>
-
getImages
public List<UserImage> getImages()
Description copied from interface:ImageOwnerEither all images or a collection with the single image- Specified by:
getImagesin interfaceImageOwner<User,UserImage>
-
getIndividualProductIds
public String getIndividualProductIds()
-
getInvitedBy
public BasicUser getInvitedBy()
-
getInviteToken
public String getInviteToken()
-
getMainBroker
public User getMainBroker()
-
getMainRole
public Role getMainRole()
- Specified by:
getMainRolein classBasicUser
-
getNature
public UserNature getNature()
-
getPrivacyControls
public Set<PrivacyControl> getPrivacyControls()
-
getProducts
public Set<Product> getProducts()
- Specified by:
getProductsin interfaceProductOwner
-
getQuestions
public Set<AdQuestion> getQuestions()
-
getUser
public User getUser()
Description copied from class:BasicUserReturns the user associated with this basic user
-
isAdmin
public boolean isAdmin()
Description copied from interface:RoleContainerReturns whether theRole.ADMINis granted- Specified by:
isAdminin interfaceRoleContainer- Overrides:
isAdminin classBasicUser
-
isBroker
public boolean isBroker()
Description copied from interface:RoleContainerReturns whether theRole.BROKERis granted- Specified by:
isBrokerin interfaceRoleContainer- Overrides:
isBrokerin classBasicUser
-
isEnablePrivacyControl
public boolean isEnablePrivacyControl()
-
isGlobalAdmin
public boolean isGlobalAdmin()
Description copied from interface:RoleContainerReturns whether theRole.GLOBAL_ADMINis granted Returns true if the user is the "root" user. For multi-networks administrators it returns false- Specified by:
isGlobalAdminin interfaceRoleContainer- Overrides:
isGlobalAdminin classBasicUser- See Also:
RoleContainer.isGlobalAdmin()
-
isHideEmail
public boolean isHideEmail()
-
isMember
public boolean isMember()
Description copied from class:BasicUserreturns true if user has member role.- Specified by:
isMemberin interfaceRoleContainer- Overrides:
isMemberin classBasicUser
-
isNetworkAdmin
public boolean isNetworkAdmin()
Description copied from interface:RoleContainerReturns whether theRole.NETWORK_ADMINis granted- Specified by:
isNetworkAdminin interfaceRoleContainer- Overrides:
isNetworkAdminin classBasicUser
-
removeProduct
public boolean removeProduct(Product product)
- Specified by:
removeProductin interfaceProductOwner
-
setAccounts
public void setAccounts(Set<UserAccount> accounts)
-
setActivationDate
public void setActivationDate(Date activationDate)
-
setAddresses
public void setAddresses(Set<UserAddress> addresses)
-
setAgreementLogs
public void setAgreementLogs(Set<AgreementLog> agreementLogs)
-
setBrokeringLogs
public void setBrokeringLogs(Set<BrokeringLog> brokeringLogs)
-
setChannels
public void setChannels(Set<UserChannel> channels)
-
setContactInfos
public void setContactInfos(Set<ContactInfo> contactInfos)
-
setDashboardActions
public void setDashboardActions(Set<UserDashboardAction> dashboardActions)
-
setEnablePrivacyControl
public void setEnablePrivacyControl(boolean enablePrivacyControl)
-
setGroup
public void setGroup(Group group)
-
setGroupHistory
public void setGroupHistory(Set<UserGroupLog> groupHistory)
-
setHideEmail
public void setHideEmail(boolean hideEmail)
-
setImage
public void setImage(UserImage image)
Description copied from interface:ImageOwnerEither the single image or a de-normalized reference to the first image- Specified by:
setImagein interfaceImageOwner<User,UserImage>
-
setImages
public void setImages(List<UserImage> images)
Description copied from interface:ImageOwnerAssigns either all images or the first image if the owner has a single one- Specified by:
setImagesin interfaceImageOwner<User,UserImage>
-
setIndividualProductIds
public void setIndividualProductIds(String individualProductIds)
-
setInvitedBy
public void setInvitedBy(BasicUser invitedBy)
-
setInviteToken
public void setInviteToken(String inviteToken)
-
setPrivacyControls
public void setPrivacyControls(Set<PrivacyControl> privacyControls)
-
setQuestions
public void setQuestions(Set<AdQuestion> questions)
-
-