Modifier and Type | Field and Description |
---|---|
static int |
CANNOT_CHANGE_PASSWORD |
static int |
CHANGE_PASSWORD |
protected Map<String,String> |
customAttributes |
static int |
DELETED |
protected String |
description |
static int |
DISABLED |
protected int |
flags |
protected UUID |
guid |
protected long |
id |
static int |
INTRUDER_LOCKOUT |
static int |
MODIFIED |
protected String |
name |
static int |
PASSWORD_NEVER_EXPIRES |
protected long |
systemRights |
Constructor and Description |
---|
AbstractUserObject(AbstractUserObject src)
Copy constructor
|
AbstractUserObject(org.netxms.base.NXCPMessage msg)
Create object from NXCP message
|
AbstractUserObject(String name)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
void |
fillMessage(org.netxms.base.NXCPMessage msg)
Fill NXCP message with object data
|
String |
getCustomAttribute(String name)
Get custom attribute
|
String |
getDescription() |
int |
getFlags() |
UUID |
getGuid() |
long |
getId() |
String |
getName() |
long |
getSystemRights() |
boolean |
isDeleted() |
boolean |
isDisabled()
Check if object is disabled
|
boolean |
isPasswordChangeForbidden()
Check if password change is forbidden
|
boolean |
isPasswordChangeNeeded()
Check if password should be changed at next logon
|
void |
setCustomAttribute(String name,
String value)
Set custom attribute's value
|
void |
setDescription(String description) |
void |
setFlags(int flags) |
void |
setId(long id) |
void |
setName(String name) |
void |
setSystemRights(long systemRights) |
public static final int MODIFIED
public static final int DELETED
public static final int DISABLED
public static final int CHANGE_PASSWORD
public static final int CANNOT_CHANGE_PASSWORD
public static final int INTRUDER_LOCKOUT
public static final int PASSWORD_NEVER_EXPIRES
protected long id
protected String name
protected UUID guid
protected long systemRights
protected int flags
protected String description
public AbstractUserObject(String name)
public AbstractUserObject(AbstractUserObject src)
public AbstractUserObject(org.netxms.base.NXCPMessage msg)
msg
- Message containing object's datapublic void fillMessage(org.netxms.base.NXCPMessage msg)
public boolean isDeleted()
public long getId()
public void setId(long id)
id
- the id to setpublic String getName()
public void setName(String name)
name
- the name to setpublic UUID getGuid()
public long getSystemRights()
public void setSystemRights(long systemRights)
systemRights
- the systemRights to setpublic int getFlags()
public void setFlags(int flags)
flags
- the flags to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic String getCustomAttribute(String name)
name
- Name of the attributepublic void setCustomAttribute(String name, String value)
name
- Name of the attributevalue
- New value for attributepublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public boolean isDisabled()
public boolean isPasswordChangeNeeded()
public boolean isPasswordChangeForbidden()
Copyright © 2014. All rights reserved.