org.netxms.api.client.users
Class User

java.lang.Object
  extended by org.netxms.api.client.users.AbstractUserObject
      extended by org.netxms.api.client.users.User

public class User
extends AbstractUserObject

NetXMS user object


Field Summary
static int AUTH_CERTIFICATE
           
static int AUTH_CERTIFICATE_OR_PASSWORD
           
static int AUTH_CERTIFICATE_OR_RADIUS
           
static int AUTH_NETXMS_PASSWORD
           
static int AUTH_RADIUS
           
static int MAP_CERT_BY_PUBKEY
           
static int MAP_CERT_BY_SUBJECT
           
 
Fields inherited from class org.netxms.api.client.users.AbstractUserObject
CANNOT_CHANGE_PASSWORD, CHANGE_PASSWORD, customAttributes, DELETED, description, DISABLED, flags, guid, id, INTRUDER_LOCKOUT, MODIFIED, name, PASSWORD_NEVER_EXPIRES, systemRights
 
Constructor Summary
User(NXCPMessage msg)
          Create user object from NXCP message
User(java.lang.String name)
          Default constructor
User(User src)
          Copy constructor
 
Method Summary
 java.lang.Object clone()
           
 void fillMessage(NXCPMessage msg)
          Fill NXCP message with object data
 int getAuthFailures()
           
 int getAuthMethod()
           
 java.lang.String getCertMappingData()
           
 int getCertMappingMethod()
           
 java.util.Date getDisabledUntil()
           
 java.lang.String getFullName()
           
 java.util.Date getLastLogin()
           
 java.util.Date getLastPasswordChange()
           
 int getMinPasswordLength()
           
 void setAuthMethod(int authMethod)
           
 void setCertMappingData(java.lang.String certMappingData)
           
 void setCertMappingMethod(int certMappingMethod)
           
 void setDisabledUntil(java.util.Date disabledUntil)
           
 void setFullName(java.lang.String fullName)
           
 void setMinPasswordLength(int minPasswordLength)
           
 
Methods inherited from class org.netxms.api.client.users.AbstractUserObject
getCustomAttribute, getDescription, getFlags, getGuid, getId, getName, getSystemRights, isDeleted, isDisabled, isPasswordChangeForbidden, isPasswordChangeNeeded, setCustomAttribute, setDescription, setFlags, setId, setName, setSystemRights
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_NETXMS_PASSWORD

public static final int AUTH_NETXMS_PASSWORD
See Also:
Constant Field Values

AUTH_RADIUS

public static final int AUTH_RADIUS
See Also:
Constant Field Values

AUTH_CERTIFICATE

public static final int AUTH_CERTIFICATE
See Also:
Constant Field Values

AUTH_CERTIFICATE_OR_PASSWORD

public static final int AUTH_CERTIFICATE_OR_PASSWORD
See Also:
Constant Field Values

AUTH_CERTIFICATE_OR_RADIUS

public static final int AUTH_CERTIFICATE_OR_RADIUS
See Also:
Constant Field Values

MAP_CERT_BY_SUBJECT

public static final int MAP_CERT_BY_SUBJECT
See Also:
Constant Field Values

MAP_CERT_BY_PUBKEY

public static final int MAP_CERT_BY_PUBKEY
See Also:
Constant Field Values
Constructor Detail

User

public User(java.lang.String name)
Default constructor


User

public User(User src)
Copy constructor


User

public User(NXCPMessage msg)
Create user object from NXCP message

Method Detail

fillMessage

public void fillMessage(NXCPMessage msg)
Fill NXCP message with object data

Overrides:
fillMessage in class AbstractUserObject

getAuthMethod

public int getAuthMethod()
Returns:
the authMethod

setAuthMethod

public void setAuthMethod(int authMethod)
Parameters:
authMethod - the authMethod to set

getCertMappingMethod

public int getCertMappingMethod()
Returns:
the certMappingMethod

setCertMappingMethod

public void setCertMappingMethod(int certMappingMethod)
Parameters:
certMappingMethod - the certMappingMethod to set

getCertMappingData

public java.lang.String getCertMappingData()
Returns:
the certMappingData

setCertMappingData

public void setCertMappingData(java.lang.String certMappingData)
Parameters:
certMappingData - the certMappingData to set

getFullName

public java.lang.String getFullName()
Returns:
the fullName

setFullName

public void setFullName(java.lang.String fullName)
Parameters:
fullName - the fullName to set

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class AbstractUserObject
Throws:
java.lang.CloneNotSupportedException

getMinPasswordLength

public int getMinPasswordLength()
Returns:
the minPasswordLength

setMinPasswordLength

public void setMinPasswordLength(int minPasswordLength)
Parameters:
minPasswordLength - the minPasswordLength to set

getDisabledUntil

public java.util.Date getDisabledUntil()
Returns:
the disabledUntil

setDisabledUntil

public void setDisabledUntil(java.util.Date disabledUntil)
Parameters:
disabledUntil - the disabledUntil to set

getLastLogin

public java.util.Date getLastLogin()
Returns:
the lastLogin

getLastPasswordChange

public java.util.Date getLastPasswordChange()
Returns:
the lastPasswordChange

getAuthFailures

public int getAuthFailures()
Returns:
the authFailures


Copyright © 2013. All Rights Reserved.