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_GROUP_MEMBERSHIP |
static int |
USER_MODIFY_LOGIN_NAME |
static int |
USER_MODIFY_MEMBERS |
static int |
USER_MODIFY_PASSWD_LENGTH |
static int |
USER_MODIFY_TEMP_DISABLE |
static int |
USER_MODIFY_XMPP_ID |
| Modifier and Type | Method and Description |
|---|---|
long |
createUser(String name)
Create user on server
|
long |
createUserGroup(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,
String newPassword,
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
static final int USER_MODIFY_XMPP_ID
static final int USER_MODIFY_GROUP_MEMBERSHIP
void syncUserDatabase()
throws IOException,
NetXMSClientException
IOException - if socket I/O error occursNXCException - if NetXMS server returns an error or operation was timed outNetXMSClientExceptionAbstractUserObject findUserDBObjectById(long id)
AbstractUserObject[] getUserDatabaseObjects()
long createUser(String name) throws IOException, NetXMSClientException
name - Login name for new userIOException - if socket I/O error occursNetXMSClientException - if NetXMS server returns an error or operation was timed outlong createUserGroup(String name) throws IOException, NetXMSClientException
name - Name for new user groupIOException - if socket I/O error occursNetXMSClientException - if NetXMS server returns an error or operation was timed outvoid deleteUserDBObject(long id)
throws IOException,
NetXMSClientException
id - User or group IDIOException - if socket I/O error occursNetXMSClientException - if NetXMS server returns an error or operation was timed outvoid setUserPassword(long id,
String newPassword,
String oldPassword)
throws IOException,
NetXMSClientException
id - User IDnewPassword - New passwordoldPassword - Old passwordIOException - if socket I/O error occursNetXMSClientException - if NetXMS server returns an error or operation was timed outvoid modifyUserDBObject(AbstractUserObject object, int fields) throws IOException, NetXMSClientException
user - User dataIOException - if socket I/O error occursNetXMSClientException - if NetXMS server returns an error or operation was timed outvoid modifyUserDBObject(AbstractUserObject object) throws IOException, NetXMSClientException
user - User dataIOException - if socket I/O error occursNetXMSClientException - if NetXMS server returns an error or operation was timed outvoid lockUserDatabase()
throws IOException,
NetXMSClientException
IOException - if socket I/O error occursNetXMSClientException - if NetXMS server returns an error or operation was timed outvoid unlockUserDatabase()
throws IOException,
NetXMSClientException
IOException - if socket I/O error occursNetXMSClientException - if NetXMS server returns an error or operation was timed outCopyright © 2015. All rights reserved.