<< Click to Display Table of Contents >>

IRepositoryUser

This interface provides functions for setting user.


Property Detail

AccessType

UserAccess AccessType

Gets the methods with access to the User Interface as numerals.

Repository

IRepository Repository

Gets the object where the IRepository interface is implemented.


Method Detail

CreateUser

string CreateUser(object session, string userName, string password, string description)

Creates a new user and returns its ID.

Parameters:

session - Session ID

userName - The User name

password - Password

description - User description

ModifyName

string ModifyName(object session, string userID, string newUserName)

Modifies the name of the user corresponding to the user ID and returns the new user ID.

Parameters:

session - Session ID

userID - The User ID

newUserName - New user name

ModifyPassword

bool ModifyPassword(object session, string userID, string oldPassword, string newPassword)

Modifies the password of the designated user and returns whether the result.

Parameters:

session - Session ID

userID - The User ID

oldPassword - Old password

newPassword - New password

ModifyUserDescription

bool ModifyDescription(object session, string userID, string description)

Modifies the description of the user corresponding to the user ID and returns whether the result.

Parameters:

session - Session ID

userID - The User ID

description - The description

DeleteUser

bool DeleteUser(object session, string userID)

Deletes all information of the user corresponding to the user ID and returns whether the result.

Parameters:

session - Session ID

userID - The User ID

GetUserInfo

IUserInfo GetUserInfo(object session, string userID)

Gets the information of the user corresponding to the user ID.

Parameters:

session - Session ID

userID - User ID

CheckPassword

bool CheckPassword(object session, string userID, string password)

Check whether the user password is correct.

Parameters:

session - Session ID

userID - The User ID

password - Password to check

GetUserInfos

IUserInfo[] GetUserInfos(object session)

Gets the user information of all users.

Parameters:

session - Session ID

IsAdministrator

bool IsAdministrator(object session, string userID)

Check that the user corresponding to the user ID is the administrator of the Repository.

Parameters:

session - Session ID

userID - The user ID