Package org.netxms.client.users
Class User
java.lang.Object
org.netxms.client.users.AbstractUserObject
org.netxms.client.users.User
NetXMS user object
- 
Field SummaryFields inherited from class org.netxms.client.users.AbstractUserObjectCANNOT_CHANGE_PASSWORD, CHANGE_PASSWORD, CLOSE_OTHER_SESSIONS, customAttributes, DELETED, description, DISABLED, flags, guid, id, INTRUDER_LOCKOUT, LDAP_USER, ldapDn, ldapId, MODIFIED, MODIFY_2FA_BINDINGS, MODIFY_ACCESS_RIGHTS, MODIFY_AUTH_METHOD, MODIFY_CERT_MAPPING, MODIFY_CUSTOM_ATTRIBUTES, MODIFY_DESCRIPTION, MODIFY_EMAIL, MODIFY_FLAGS, MODIFY_FULL_NAME, MODIFY_GROUP_MEMBERSHIP, MODIFY_LOGIN_NAME, MODIFY_MEMBERS, MODIFY_PASSWD_LENGTH, MODIFY_PHONE_NUMBER, MODIFY_TEMP_DISABLE, MODIFY_UI_ACCESS_RULES, name, PASSWORD_NEVER_EXPIRES, SYNC_EXCEPTION, systemRights, TOKEN_AUTH_ONLY, type, uiAccessRules, USERDB_TYPE_GROUP, USERDB_TYPE_USER, WELL_KNOWN_ID_EVERYONE, WELL_KNOWN_ID_SYSTEM
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with object dataintGet authentication method for this user.Get certificate mapping method for certificate based authentication.getEmail()int[]getLabel()Get display label for this object.intvoidsetAuthMethod(UserAuthenticationMethod authMethod) Set authentication method for this user.voidsetCertMappingData(String certMappingData) voidsetCertMappingMethod(CertificateMappingMethod certMappingMethod) Set certificate mapping method for certificate based authentication.voidsetDisabledUntil(Date disabledUntil) voidvoidsetFullName(String fullName) voidsetGroups(int[] groups) voidsetMinPasswordLength(int minPasswordLength) voidsetPhoneNumber(String phoneNumber) voidMethods inherited from class org.netxms.client.users.AbstractUserObjectgetCreationTime, getCustomAttribute, getCustomAttributes, getDescription, getFlags, getGuid, getId, getLdapDn, getLdapId, getName, getSystemRights, getUIAccessRules, isDeleted, isDisabled, isPasswordChangeForbidden, isPasswordChangeNeeded, setCustomAttribute, setCustomAttributes, setDescription, setFlags, setId, setName, setSystemRights, setUIAccessRules
- 
Constructor Details- 
UserDefault constructor- Parameters:
- name- user name
 
- 
UserCopy constructor- Parameters:
- src- object for copy
 
- 
UserCreate user object from NXCP message- Parameters:
- msg- NXCP message
 
 
- 
- 
Method Details- 
fillMessageFill NXCP message with object data- Overrides:
- fillMessagein class- AbstractUserObject
- Parameters:
- msg- NXCP message
 
- 
getAuthMethodGet authentication method for this user.- Returns:
- authentication method
 
- 
setAuthMethodSet authentication method for this user.- Parameters:
- authMethod- new authentication method
 
- 
getCertMappingMethodGet certificate mapping method for certificate based authentication.- Returns:
- certificate mapping method for certificate based authentication
 
- 
setCertMappingMethodSet certificate mapping method for certificate based authentication.- Parameters:
- certMappingMethod- certificate mapping method for certificate based authentication
 
- 
getCertMappingData- Returns:
- the certMappingData
 
- 
setCertMappingData- Parameters:
- certMappingData- the certMappingData to set
 
- 
getFullName- Returns:
- the fullName
 
- 
setFullName- Parameters:
- fullName- the fullName to set
 
- 
getLabelDescription copied from class:AbstractUserObjectGet display label for this object. Label includes object name and description (if present). Subclasses may add additional fields to the label.- Overrides:
- getLabelin class- AbstractUserObject
- Returns:
- display label for this object
- See Also:
 
- 
getMinPasswordLengthpublic int getMinPasswordLength()- Returns:
- the minPasswordLength
 
- 
setMinPasswordLengthpublic void setMinPasswordLength(int minPasswordLength) - Parameters:
- minPasswordLength- the minPasswordLength to set
 
- 
getDisabledUntil- Returns:
- the disabledUntil
 
- 
setDisabledUntil- Parameters:
- disabledUntil- the disabledUntil to set
 
- 
getLastLogin- Returns:
- the lastLogin
 
- 
getLastPasswordChange- Returns:
- the lastPasswordChange
 
- 
getAuthFailurespublic int getAuthFailures()- Returns:
- the authFailures
 
- 
getEmail- Returns:
- the email
 
- 
setEmail- Parameters:
- email- the email to set
 
- 
getPhoneNumber- Returns:
- the phoneNumber
 
- 
setPhoneNumber- Parameters:
- phoneNumber- the phoneNumber to set
 
- 
getGroupspublic int[] getGroups()- Returns:
- the groups
 
- 
setGroupspublic void setGroups(int[] groups) - Parameters:
- groups- the groups to set
 
- 
getTwoFactorAuthMethodBindings- Returns:
- the twoFactorAuthMethodBindings
 
- 
setTwoFactorAuthMethodBindingspublic void setTwoFactorAuthMethodBindings(Map<String, Map<String, String>> twoFactorAuthMethodBindings) - Parameters:
- twoFactorAuthMethodBindings- the twoFactorAuthMethodBindings to set
 
 
-