<< Click to Display Table of Contents >>

IOZRepositoryGroup

This interface provides functions for setting group.


Method Detail

getAccessTypeGroup

public int getAccessTypeGroup()

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

int ACCESS_GROUP_NOT = 0x00000000

int ACCESS_CREATE_GROUP = 0x00000001

int ACCESS_MODIFY_GROUP_NAME = 0x00000002

int ACCESS_MODIFY_GROUP_DESC = 0x00000004

int ACCESS_DELETE_GROUP = 0x00000008

int ACCESS_CREATE_UESR_IN_GROUP = 0x00000010

ACCESS_TRANSFER_USER = 0x00000020

int ACCESS_GET_USERINFOLIST_IN_GROUP = 0x00000040

int ACCESS_GET_GROUPINFO = 0x00000080

int ACCESS_GET_SUB_GROUPINFO_LIST = 0x00000100

int ACCESS_GET_PARENT_GROUPINFO = 0x00000200

int ACCESS_GET_GROUPID_OF_USER = 0x00000400

int ACCESS_ADD_GROUP_ADMIN = 0x00000800

int ACCESS_REMOVE_GROUP_ADMIN = 0x00001000

int ACCESS_IS_USER_GROUP_ADMIN = 0x00002000

int ACCESS_GET_USER_ADMINLIST_IN_GROUP = 0x00004000

int ACCESS_TRANSFER_GROUP = 0x00008000

getOZRepository

public IOZRepository getOZRepository() throws OZRepositoryException

Gets the class where the OZRepository Interface is implemented.

createGroup

public String createGroup(Object sessionID, String gName, String pGroupID, String desc) throws OZRepositoryException

Creates a new group and returns it ID.

Parameters:

sessionID - Session ID

gName - New group name to create

pGroupID - Parent group ID of the new group

desc - Description of the new group

modifyGroupName

public String modifyGroupName(Object sessionID, String groupID, String gName) throws OZRepositoryException

Modifies the name of the group corresponding to the designated group ID and returns the modified group ID.

Parameters:

sessionID - Session ID

groupID - ID of the group of which the name will be modified

gName - Group name

modifyGroupDesc

public boolean modifyGroupDesc(Object sessionID, String groupID, String desc) throws OZRepositoryException

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

Parameters:

sessionID - Session ID

groupID - ID of the group of which the description will be modified

desc - Description of the group

deleteGroup

public boolean deleteGroup(Object sessionID, String groupID) throws OZRepositoryException

Deletes the group corresponding to the designated group ID.

Parameters:

sessionID - Session ID

groupID - ID of the group to delete

createUserInGroup

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

Creates a new user ID in the designated group and returns the newly created user ID.

Parameters:

sessionID - Session ID

userName - User name

password - Password

groupID - Group ID

desc - User description

getUserInfoListInGroup

public IOZUserInfoList getUserInfoListInGroup(Object sessionID, String groupID) throws OZRepositoryException

Gets the information of all users registered in the designated group ID.

Parameters:

sessionID - Session ID

groupID - Group ID to get its user information

getGroupInfo

public IOZGroupInfo getGroupInfo(Object sessionID, String groupID) throws OZRepositoryException

Gets the information of the group corresponding to the designated group ID.

Parameters:

sessionID - Session ID

groupID - Group ID

getSubGroupInfoList

public IOZGroupInfoList getSubGroupInfoList(Object sessionID, String groupID) throws OZRepositoryException

Gets the information of the sub group of the designated group.

Parameters:

sessionID - Session ID

groupID - Group ID to get its subgroup information

getParentGroupInfo

public IOZGroupInfo getParentGroupInfo(Object sessionID, String groupID) throws OZRepositoryException

Gets the parent group information of the designated group.

Parameters:

sessionID - Session ID

groupID - Group ID to get its parent group information

getGroupIdOfUser

public IOZGroupInfo getGroupIdOfUser(Object sessionID, String userID) throws OZRepositoryException

Gets the information of the group which the designated user belong to.

Parameters:

sessionID - Session ID

userID - ID of the user from which the group information will be received

addGroupAdmin

public boolean addGroupAdmin(Object sessionID, String userID, String groupID) throws OZRepositoryException

Adds a Group Admin to the designated group.

Parameters:

sessionID - Session ID

userID - ID of the user to add as Group Admin will be added

groupID - ID of the group where the Group Admin will be added

removeGroupAdmin

public boolean removeGroupAdmin(Object sessionID, String userID, String groupID) throws OZRepositoryException

Releases a Group Admin of the designated group.

Parameters:

sessionID - Session ID

userID - ID of user from which the Group Admin authorization will be released

groupID - Group ID to remove from the user

isUserGroupAdmin

public boolean isUserGroupAdmin(Object sessionID, String userID, String groupID) throws OZRepositoryException

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

Parameters:

sessionID - Session ID

userID - User ID to check if it is the group administrator

groupID - Group ID

getUserAdminListInGroup

public IOZUserInfoList getUserAdminListInGroup(Object sessionID, String groupID) throws OZRepositoryException

Gets the group administrator information of the designated group.

Parameters:

sessionID - Session ID

groupID - ID of group from which the group administrator information will be received

transferUser

public boolean transferUser(Object sessionID, String userID, String target_GroupID) throws OZRepositoryException

Transfers the group of the designated user.

Parameters:

sessionID - Session ID

userID - ID of the user that will transfer the group

target_groupID - Target group ID

transferGroup

public boolean transferGroup(Object sessionID, String groupID, String target_GroupID) throws OZRepositoryException

Transfers the designated group to another group.

Parameters:

sessionID - Session ID

groupID - ID of the group to which the designated group will be transferred

target_groupID - Target group ID