public interface UserManager
Modifier and Type | Field and Description |
---|---|
static int |
USER_MODIFY_ACCESS_RIGHTS |
static int |
USER_MODIFY_AUTH_METHOD |
static int |
USER_MODIFY_CERT_MAPPING |
static int |
USER_MODIFY_CUSTOM_ATTRIBUTES |
static int |
USER_MODIFY_DESCRIPTION |
static int |
USER_MODIFY_FLAGS |
static int |
USER_MODIFY_FULL_NAME |
static int |
USER_MODIFY_LOGIN_NAME |
static int |
USER_MODIFY_MEMBERS |
static int |
USER_MODIFY_PASSWD_LENGTH |
static int |
USER_MODIFY_TEMP_DISABLE |
Modifier and Type | Method and Description |
---|---|
long |
createUser(java.lang.String name)
Create user on server
|
long |
createUserGroup(java.lang.String name)
Create user group on server
|
void |
deleteUserDBObject(long id)
Delete user or group on server
|
AbstractUserObject |
findUserDBObjectById(long id)
Find user by ID
|
AbstractUserObject[] |
getUserDatabaseObjects()
Get list of all user database objects
|
void |
lockUserDatabase()
Lock user database
|
void |
modifyUserDBObject(AbstractUserObject object)
Modify user database object
|
void |
modifyUserDBObject(AbstractUserObject object,
int fields)
Modify user database object
|
void |
setUserPassword(long id,
java.lang.String newPassword,
java.lang.String oldPassword)
Set password for user
|
void |
syncUserDatabase()
Synchronize user database
|
void |
unlockUserDatabase()
Unlock user database
|
static final int USER_MODIFY_LOGIN_NAME
static final int USER_MODIFY_DESCRIPTION
static final int USER_MODIFY_FULL_NAME
static final int USER_MODIFY_FLAGS
static final int USER_MODIFY_ACCESS_RIGHTS
static final int USER_MODIFY_MEMBERS
static final int USER_MODIFY_CERT_MAPPING
static final int USER_MODIFY_AUTH_METHOD
static final int USER_MODIFY_PASSWD_LENGTH
static final int USER_MODIFY_TEMP_DISABLE
static final int USER_MODIFY_CUSTOM_ATTRIBUTES
void syncUserDatabase() throws java.io.IOException, NetXMSClientException
java.io.IOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outNetXMSClientException
AbstractUserObject findUserDBObjectById(long id)
AbstractUserObject[] getUserDatabaseObjects()
long createUser(java.lang.String name) throws java.io.IOException, NetXMSClientException
name
- Login name for new userjava.io.IOException
- if socket I/O error occursNetXMSClientException
- if NetXMS server returns an error or operation was timed outlong createUserGroup(java.lang.String name) throws java.io.IOException, NetXMSClientException
name
- Name for new user groupjava.io.IOException
- if socket I/O error occursNetXMSClientException
- if NetXMS server returns an error or operation was timed outvoid deleteUserDBObject(long id) throws java.io.IOException, NetXMSClientException
id
- User or group IDjava.io.IOException
- if socket I/O error occursNetXMSClientException
- if NetXMS server returns an error or operation was timed outvoid setUserPassword(long id, java.lang.String newPassword, java.lang.String oldPassword) throws java.io.IOException, NetXMSClientException
id
- User IDnewPassword
- New passwordoldPassword
- Old passwordjava.io.IOException
- if socket I/O error occursNetXMSClientException
- if NetXMS server returns an error or operation was timed outvoid modifyUserDBObject(AbstractUserObject object, int fields) throws java.io.IOException, NetXMSClientException
user
- User datajava.io.IOException
- if socket I/O error occursNetXMSClientException
- if NetXMS server returns an error or operation was timed outvoid modifyUserDBObject(AbstractUserObject object) throws java.io.IOException, NetXMSClientException
user
- User datajava.io.IOException
- if socket I/O error occursNetXMSClientException
- if NetXMS server returns an error or operation was timed outvoid lockUserDatabase() throws java.io.IOException, NetXMSClientException
java.io.IOException
- if socket I/O error occursNetXMSClientException
- if NetXMS server returns an error or operation was timed outvoid unlockUserDatabase() throws java.io.IOException, NetXMSClientException
java.io.IOException
- if socket I/O error occursNetXMSClientException
- if NetXMS server returns an error or operation was timed outCopyright © 2013. All Rights Reserved.