Package org.netxms.client.users
Class AbstractUserObject
- java.lang.Object
-
- org.netxms.client.users.AbstractUserObject
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractUserObject(String name, String type)Default constructorAbstractUserObject(org.netxms.base.NXCPMessage msg, String type)Create object from NXCP messageAbstractUserObject(AbstractUserObject src)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()voidfillMessage(org.netxms.base.NXCPMessage msg)Fill NXCP message with object dataDategetCreationTime()Get creation dateStringgetCustomAttribute(String name)Get custom attributeStringgetDescription()intgetFlags()UUIDgetGuid()longgetId()StringgetLdapDn()StringgetLdapId()StringgetName()longgetSystemRights()booleanisDeleted()booleanisDisabled()Check if object is disabledbooleanisPasswordChangeForbidden()Check if password change is forbiddenbooleanisPasswordChangeNeeded()Check if password should be changed at next logonvoidsetCustomAttribute(String name, String value)Set custom attribute's valuevoidsetDescription(String description)voidsetFlags(int flags)voidsetId(long id)voidsetName(String name)voidsetSystemRights(long systemRights)
-
-
-
Field Detail
-
USERDB_TYPE_USER
public static final String USERDB_TYPE_USER
- See Also:
- Constant Field Values
-
USERDB_TYPE_GROUP
public static final String USERDB_TYPE_GROUP
- See Also:
- Constant Field Values
-
MODIFIED
public static final int MODIFIED
- See Also:
- Constant Field Values
-
DELETED
public static final int DELETED
- See Also:
- Constant Field Values
-
DISABLED
public static final int DISABLED
- See Also:
- Constant Field Values
-
CHANGE_PASSWORD
public static final int CHANGE_PASSWORD
- See Also:
- Constant Field Values
-
CANNOT_CHANGE_PASSWORD
public static final int CANNOT_CHANGE_PASSWORD
- See Also:
- Constant Field Values
-
INTRUDER_LOCKOUT
public static final int INTRUDER_LOCKOUT
- See Also:
- Constant Field Values
-
PASSWORD_NEVER_EXPIRES
public static final int PASSWORD_NEVER_EXPIRES
- See Also:
- Constant Field Values
-
LDAP_USER
public static final int LDAP_USER
- See Also:
- Constant Field Values
-
SYNC_EXCEPTION
public static final int SYNC_EXCEPTION
- See Also:
- Constant Field Values
-
CLOSE_OTHER_SESSIONS
public static final int CLOSE_OTHER_SESSIONS
- See Also:
- Constant Field Values
-
MODIFY_LOGIN_NAME
public static final int MODIFY_LOGIN_NAME
- See Also:
- Constant Field Values
-
MODIFY_DESCRIPTION
public static final int MODIFY_DESCRIPTION
- See Also:
- Constant Field Values
-
MODIFY_FULL_NAME
public static final int MODIFY_FULL_NAME
- See Also:
- Constant Field Values
-
MODIFY_FLAGS
public static final int MODIFY_FLAGS
- See Also:
- Constant Field Values
-
MODIFY_ACCESS_RIGHTS
public static final int MODIFY_ACCESS_RIGHTS
- See Also:
- Constant Field Values
-
MODIFY_MEMBERS
public static final int MODIFY_MEMBERS
- See Also:
- Constant Field Values
-
MODIFY_CERT_MAPPING
public static final int MODIFY_CERT_MAPPING
- See Also:
- Constant Field Values
-
MODIFY_AUTH_METHOD
public static final int MODIFY_AUTH_METHOD
- See Also:
- Constant Field Values
-
MODIFY_PASSWD_LENGTH
public static final int MODIFY_PASSWD_LENGTH
- See Also:
- Constant Field Values
-
MODIFY_TEMP_DISABLE
public static final int MODIFY_TEMP_DISABLE
- See Also:
- Constant Field Values
-
MODIFY_CUSTOM_ATTRIBUTES
public static final int MODIFY_CUSTOM_ATTRIBUTES
- See Also:
- Constant Field Values
-
MODIFY_XMPP_ID
public static final int MODIFY_XMPP_ID
- See Also:
- Constant Field Values
-
MODIFY_GROUP_MEMBERSHIP
public static final int MODIFY_GROUP_MEMBERSHIP
- See Also:
- Constant Field Values
-
type
protected String type
-
id
protected long id
-
name
protected String name
-
guid
protected UUID guid
-
systemRights
protected long systemRights
-
flags
protected int flags
-
description
protected String description
-
ldapDn
protected String ldapDn
-
ldapId
protected String ldapId
-
-
Constructor Detail
-
AbstractUserObject
public AbstractUserObject(String name, String type)
Default constructor- Parameters:
name- object name
-
AbstractUserObject
public AbstractUserObject(AbstractUserObject src)
Copy constructor- Parameters:
src- source object
-
AbstractUserObject
public AbstractUserObject(org.netxms.base.NXCPMessage msg, String type)Create object from NXCP message- Parameters:
msg- Message containing object's datatype- object type
-
-
Method Detail
-
fillMessage
public void fillMessage(org.netxms.base.NXCPMessage msg)
Fill NXCP message with object data- Parameters:
msg- destination message
-
isDeleted
public boolean isDeleted()
- Returns:
- true if user is marked as deleted
-
getId
public long getId()
- Returns:
- the id
-
setId
public void setId(long id)
- Parameters:
id- the id to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getGuid
public UUID getGuid()
- Returns:
- the guid
-
getLdapDn
public String getLdapDn()
- Returns:
- the ldapDn
-
getLdapId
public String getLdapId()
- Returns:
- the ldapId
-
getSystemRights
public long getSystemRights()
- Returns:
- the systemRights
-
setSystemRights
public void setSystemRights(long systemRights)
- Parameters:
systemRights- the systemRights to set
-
getFlags
public int getFlags()
- Returns:
- the flags
-
setFlags
public void setFlags(int flags)
- Parameters:
flags- the flags to set
-
getDescription
public String getDescription()
- Returns:
- the description
-
setDescription
public void setDescription(String description)
- Parameters:
description- the description to set
-
getCustomAttribute
public String getCustomAttribute(String name)
Get custom attribute- Parameters:
name- Name of the attribute- Returns:
- Custom attribute value
-
setCustomAttribute
public void setCustomAttribute(String name, String value)
Set custom attribute's value- Parameters:
name- Name of the attributevalue- New value for attribute
-
clone
public Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
isDisabled
public boolean isDisabled()
Check if object is disabled- Returns:
- true if object is disabled
-
isPasswordChangeNeeded
public boolean isPasswordChangeNeeded()
Check if password should be changed at next logon- Returns:
- true if password should be changed at next logon
-
isPasswordChangeForbidden
public boolean isPasswordChangeForbidden()
Check if password change is forbidden- Returns:
- true if password change is forbidden
-
getCreationTime
public Date getCreationTime()
Get creation date- Returns:
- creation date
-
-