Package org.netxms.client.users
Class User
java.lang.Object
org.netxms.client.users.AbstractUserObject
org.netxms.client.users.User
NetXMS user object
-
Field Summary
Fields inherited from class org.netxms.client.users.AbstractUserObject
CANNOT_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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillMessage
(NXCPMessage msg) Fill NXCP message with object dataint
Get authentication method for this user.Get certificate mapping method for certificate based authentication.getEmail()
int[]
getLabel()
Get display label for this object.int
void
setAuthMethod
(UserAuthenticationMethod authMethod) Set authentication method for this user.void
setCertMappingData
(String certMappingData) void
setCertMappingMethod
(CertificateMappingMethod certMappingMethod) Set certificate mapping method for certificate based authentication.void
setDisabledUntil
(Date disabledUntil) void
void
setFullName
(String fullName) void
setGroups
(int[] groups) void
setMinPasswordLength
(int minPasswordLength) void
setPhoneNumber
(String phoneNumber) void
Methods inherited from class org.netxms.client.users.AbstractUserObject
getCreationTime, getCustomAttribute, getDescription, getFlags, getGuid, getId, getLdapDn, getLdapId, getName, getSystemRights, getUIAccessRules, isDeleted, isDisabled, isPasswordChangeForbidden, isPasswordChangeNeeded, setCustomAttribute, setDescription, setFlags, setId, setName, setSystemRights, setUIAccessRules
-
Constructor Details
-
User
Default constructor- Parameters:
name
- user name
-
User
Copy constructor- Parameters:
src
- object for copy
-
User
Create user object from NXCP message- Parameters:
msg
- NXCP message
-
-
Method Details
-
fillMessage
Fill NXCP message with object data- Overrides:
fillMessage
in classAbstractUserObject
- Parameters:
msg
- NXCP message
-
getAuthMethod
Get authentication method for this user.- Returns:
- authentication method
-
setAuthMethod
Set authentication method for this user.- Parameters:
authMethod
- new authentication method
-
getCertMappingMethod
Get certificate mapping method for certificate based authentication.- Returns:
- certificate mapping method for certificate based authentication
-
setCertMappingMethod
Set 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
-
getLabel
Description copied from class:AbstractUserObject
Get display label for this object. Label includes object name and description (if present). Subclasses may add additional fields to the label.- Overrides:
getLabel
in classAbstractUserObject
- Returns:
- display label for this object
- See Also:
-
getMinPasswordLength
public int getMinPasswordLength()- Returns:
- the minPasswordLength
-
setMinPasswordLength
public 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
-
getAuthFailures
public 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
-
getGroups
public int[] getGroups()- Returns:
- the groups
-
setGroups
public void setGroups(int[] groups) - Parameters:
groups
- the groups to set
-
getTwoFactorAuthMethodBindings
- Returns:
- the twoFactorAuthMethodBindings
-
setTwoFactorAuthMethodBindings
public void setTwoFactorAuthMethodBindings(Map<String, Map<String, String>> twoFactorAuthMethodBindings) - Parameters:
twoFactorAuthMethodBindings
- the twoFactorAuthMethodBindings to set
-