Package org.cyclos.entities.users
Class Operator
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.users.BasicUser
-
- org.cyclos.entities.users.Operator
-
- All Implemented Interfaces:
Cloneable,OtpOwner,HasNetwork,ProcessableForProxying,DefinesNetwork,EntityWithCustomValues<UserCustomField,UserCustomFieldPossibleValueCategory,UserCustomFieldPossibleValue,UserCustomFieldValue>,RoleContainer,AccountOwner,InternalAccountOwner,IEntity,INamedEntity,IUser
@Entity public class Operator extends BasicUser
An operator is a user type that acts in behalf of another user. Operators are owned by members, and don't own personal data, but manage data from their owner member.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorGroupgetGroup()RolegetMainRole()UserNaturegetNature()UsergetUser()Returns the user associated with this basic userbooleanisAliasOperator()Returns whether theRole.ALIAS_OPERATORis grantedbooleanisBroker()Returns whether theRole.BROKERis grantedbooleanisMember()returns true if user has member role.booleanisOperator()Returns whether theRole.OPERATORis grantedbooleanisRestricted()booleanisRestrictedOperator()Returns whether theRole.RESTRICTED_OPERATORis grantedvoidsetGroup(OperatorGroup group)voidsetUser(User user)-
Methods inherited from class org.cyclos.entities.users.BasicUser
addFcmToken, getActivity, getCreationDate, getCustomFieldClass, getCustomFieldValueClass, getCustomValues, getDisplayForManagers, getDisplayForOthers, getEmail, getFavoriteAds, getFcmTokens, getFrontend, getIdentityProviderRequestId, getLandLinePhones, getLocale, getMessagesLastViewDate, getMobilePhones, getName, getNetwork, getNewEmail, getNotificationsLastViewDate, getOtpOwnerPathName, getOtps, getOtpUser, getPasswords, getPasswordStatuses, getPhones, getPreferredLandLinePhone, getPreferredMobilePhone, getPreferredPhone, getRegisteredBy, getRegistrationConfirmationDate, getRegistrationType, getSecurityAnswer, getSecurityQuestion, getStatus, getTotpSecret, getUsername, getValidationKey, getValidationKeyDate, getValidationKeyType, hasMobileEnabledForSMS, hasVerifiedMobilePhone, isActive, isAdmin, isBlocked, isEmailVerified, isGlobalAdmin, isInactive, isNetworkAdmin, isPendingNewEmailValidation, isPendingValidation, isPurged, isRemoved, isSendActivationEmail, isUserManager, removeFcmToken, setActivity, setAsOwnerFor, setCreationDate, setCustomValues, setDisplayForManagers, setDisplayForOthers, setEmail, setEmailVerified, setFavoriteAds, setFcmTokens, setFrontend, setIdentityProviderRequestId, setLocale, setName, setNetwork, setNewEmail, setPasswords, setPasswordStatuses, setPhones, setRegisteredBy, setRegistrationConfirmationDate, setRegistrationType, setSecurityAnswer, setSecurityQuestion, setSendActivationEmail, setStatus, setTotpSecret, 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
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.HasNetwork
isGlobal
-
Methods inherited from interface org.cyclos.entities.access.OtpOwner
resolveOwnerPath
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
Methods inherited from interface org.cyclos.entities.users.RoleContainer
isMemberOnly
-
-
-
-
Constructor Detail
-
Operator
public Operator()
-
Operator
public Operator(User user)
-
-
Method Detail
-
getGroup
public OperatorGroup getGroup()
-
getMainRole
public Role getMainRole()
- Specified by:
getMainRolein classBasicUser
-
getNature
public UserNature getNature()
-
getUser
public User getUser()
Description copied from class:BasicUserReturns the user associated with this basic user
-
isAliasOperator
public boolean isAliasOperator()
Description copied from interface:RoleContainerReturns whether theRole.ALIAS_OPERATORis granted- Specified by:
isAliasOperatorin interfaceRoleContainer- Overrides:
isAliasOperatorin classBasicUser
-
isBroker
public boolean isBroker()
Description copied from interface:RoleContainerReturns whether theRole.BROKERis granted- Specified by:
isBrokerin interfaceRoleContainer- Overrides:
isBrokerin classBasicUser
-
isMember
public boolean isMember()
Description copied from class:BasicUserreturns true if user has member role.- Specified by:
isMemberin interfaceRoleContainer- Overrides:
isMemberin classBasicUser
-
isOperator
public boolean isOperator()
Description copied from interface:RoleContainerReturns whether theRole.OPERATORis granted- Specified by:
isOperatorin interfaceRoleContainer- Overrides:
isOperatorin classBasicUser
-
isRestricted
public boolean isRestricted()
-
isRestrictedOperator
public boolean isRestrictedOperator()
Description copied from interface:RoleContainerReturns whether theRole.RESTRICTED_OPERATORis granted- Specified by:
isRestrictedOperatorin interfaceRoleContainer- Overrides:
isRestrictedOperatorin classBasicUser
-
setGroup
public void setGroup(OperatorGroup group)
-
setUser
public void setUser(User user)
-
-