<< Click to Display Table of Contents >>

IOZRepositoryUser

This interface provides functions for setting user.


Method Detail

getAccessTypeUser

public int getAccessTypeUser()

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

int ACCESS_USER_NOT = 0x00000000

int ACCESS_CREATE_USER = 0x00000001

int ACCESS_MODIFY_USER_NAME = 0x00000002

int ACCESS_MODIFY_USER_PASSWORD = 0x00000004

int ACCESS_MODIFY_USER_DESC = 0x00000008

int ACCESS_DELETE_USER = 0x00000010

int ACCESS_GET_USERINFO = 0x00000020

int ACCESS_CHECK_USER_PASSWORD = 0x00000040

int ACCESS_GET_USERINFO_LIST = 0x00000080

int ACCESS_GET_IS_CHECK_ADMIN = 0x00000100

getOZRepository

public IOZRepository getOZRepository() throws OZRepositoryException

Gets the class where the OZRepository Interface is implemented.

createUser

public String createUser(Object sessionID, String userName, String password, String desc) throws OZRepositoryException

Creates a new user and returns its ID.

Parameters:

sessionID - Session ID

userName - User name

password - Password

desc - User description

modifyUserName

public String modifyUserName(Object sessionID, String userID, String userName) throws OZRepositoryException

Modifies the name of the user corresponding to the user ID and returns the ID of which the user name was modified.

Parameters:

sessionID - Session ID

userID - User ID

userName - User name to modify

modifyUserPassword

public boolean modifyUserPassword(Object sessionID, String userID, String old_password, String new_password) throws OZRepositoryException

Modifies the password of the designated user.

Parameters:

sessionID - Session ID

userID - User ID to change its password

old_password - Old password

new_password - New password

modifyUserDesc

public boolean modifyUserDesc(Object sessionID, String userID, String desc) throws OZRepositoryException

Modifies the description of the user corresponding to the designated user ID.

Parameters:

sessionID - Session ID

userID - User ID to change its user description

desc - Description of the user to modify

deleteUser

public boolean deleteUser(Object sessionID, String userID) throws OZRepositoryException

Deletes the information of all users corresponding to the designated user ID.

Parameters:

sessionID - Session ID

userID - ID of the user to delete

getUserInfo

public IOZUserInfo getUserInfo(Object sessionID, String userID) throws OZRepositoryException

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

Parameters:

sessionID - Session ID

userID - User ID to get user information

checkUserPassword

public boolean checkUserPassword(Object sessionID, String userID, String password) throws OZRepositoryException

Checks whether the user password is correct.

Parameters:

sessionID - Session ID

userID - User ID to check its password

password - Password to check

getUserInfoList

public IOZUserInfoList getUserInfoList(Object sessionID) throws OZRepositoryException

Gets the user information of all users.

Parameters:

sessionID - Session ID

isCheckAdmin

public boolean isCheckAdmin(Object sessionID, String userID) throws OZRepositoryException

Checks that the user corresponding to the designated user ID is the administrator of the Repository.

Parameters:

sessionID - Session ID

userID - User ID to check if it is the administrator

addAdmin

public boolean addAdmin(Object sID, String uID, String client_ip) throws OZRepositoryException

Adds the administrator.

Parameters:

sID - Session ID

uID - User ID for adding the administrator permission

client_ip - Client IP

removeAdmin

public boolean removeAdmin(Object sID, String uID, String client_ip) throws OZRepositoryException

Cancel the administrator.

Parameters:

sID - Session ID

uID - User ID for deleting the administrator permission

client_ip - Client IP

modifyAllowip

public boolean modifyAllowip(Object sID, String uID, String allowip, String client_ip) throws OZRepositoryException

Changes the allowed IP of users.

Parameters:

sID - Session ID

uID - User ID for changing the allowed IP

allowip - Allowed IP

client_ip - Client IP

isExternalLogin

public boolean isExternalLogin() throws OZRepositoryException

Gets whether to use the login function connected to external API.