<< Click to Display Table of Contents >>

IOZRepositoryCategory

This interface provides functions for setting category.


Method Detail

getAccessTypeCategory

public int getAccessTypeCategory()

Gets methods accessible to the category.

int ACCESS_CATEGORY_NOT = 0x00000000

int ACCESS_CREATEITEM_IN_CATEGORY = 0x00000001

int ACCESS_CREATE_CATEGORY = 0x00000002

int ACCESS_MODIFY_CATEGORY_NAME = 0x00000004

int ACCESS_DELETE_CATEGORY = 0x00000008

int ACCESS_UN_DELETE_CATEGORY = 0x00000010

int ACCESS_HAS_THE_ITEM_IN_CATEGORY = 0x00000020

int ACCESS_GET_ITEMCOUNT_IN_CATEGORY = 0x00000040

int ACCESS_GET_ITEMLIST_IN_CATEGORY = 0x00000080

int ACCESS_GET_CATEGORYID_OF_ITEM = 0x00000100

int ACCESS_GET_CATEGORY_INFO = 0x00000200

int ACCESS_GET_DELETED_ITEMLIST_IN_CATEGORY = 0x00000400

int ACCESS_GET_SEARCH_ITEMLIST_IN_CATEGORY = 0x00000800

int ACCESS_GET_CATEGORYLIST_IN_CATEGORY = 0x00001000

int ACCESS_TRANSFER_ITEM = 0x00002000

int ACCESS_TRANSFER_CATEGORY = 0x00004000

getOZRepository

public IOZRepository getOZRepository() throws OZRepositoryException

Gets the class where the OZRepository Interface is implemented.

createItemInCategory

public String[] createItemInCategory(Object sessionID, String[] itemNames, String[] descs, String[] categoryIDs, InputStream[] item_ins, String comment, int[] errorCode, String[] errorMsg) throws OZRepositoryException

Creates a new item and returns its ID.

Parameters:

sessionID - Session ID

itemName - ID of the new item

descs - Description of the new item

categoryIDs - Category ID of the new item

item_ins - Input stream of the new item

comment - Comment

errorCode - Error code

errorMsg - Error message

createCategory

public String[] createCategory(Object sessionID, String[] categoryNames, String[] pCategoryIDs, String comment, int[] errorCode, String[] errorMsg) throws OZRepositoryException

Creates a new category and returns its ID.

Parameters:

sessionID - Session ID

categoryName - Name of the new category

pCategoryIDs - Parent category ID

comment - Comment

errorCode - Error code

errorMsg - Error message

modifyCategoryName

public String modifyCategoryName(Object sessionID, String categoryID, String new_CategoryName, String comment) throws OZRepositoryException

Modifies the name of the category corresponding to the designated category ID.

Parameters:

sessionID - Session ID

categoryID - ID of the category

new_categoryName - New category name

comment - Comment

deleteCategory

public boolean[] deleteCategory(Object sessionID, String[] categoryIDs, boolean[] isDestroys, String comment, int[] errorCode, String[] errorMsg) throws OZRepositoryException

Gets the category corresponding to the designated category ID.

Parameters:

sessionID - Session ID

categoryIDs - ID of the category to delete

isDestroys - Whether to permanently delete the category

comment - Comment

errorCode - Error code

errorMsg - Error message

unDeleteCategory

public boolean[] unDeleteCategory(Object sessionID, String[] categoryIDs, String comment, int[] errorCode, String[] errorMsg) throws OZRepositoryException

Rolls back a deleted category and gets the result.

Parameters:

sessionID - Session ID

categoryIDs - ID of the category to roll back

comment - Comment

errorCode - Error code

errorMsg - Error message

hasTheItemInCategory

public boolean hasTheItemInCategory(Object sessionID, String itemID) throws OZRepositoryException

Gets whether a specific item exists in the corresponding category.

Parameters:

sessionID - Session ID

itemID - Item ID

getItemCountInCategory

public int getItemCountInCategory(Object sessionID, String categoryID) throws OZRepositoryException

Gets the count of all items belonging to the designated category.

Parameters:

sessionID - Session ID

categoryID - Category ID from which to get the number of items

getItemListInCategory

public IOZItemInfoList getItemListInCategory(Object sessionID, String categoryID) throws OZRepositoryException

Gets the information of all items belonging to the designated category.

Parameters:

sessionID - Session ID

categoryID - ID of the category from which the item information will be returned

getCategoryIdOfItem

public String getCategoryIdOfItem(Object sessionID, String itemID) throws OZRepositoryException

Returns the ID of the category where the item exists.

Parameters:

sessionID - Session ID

itemID - ID of the item from which the category ID will be returned

getCategoryInfo

public IOZCategoryInfo getCategoryInfo(Object sessionID, String categoryID) throws OZRepositoryException

Gets the information of the designated category.

Parameters:

sessionID - Session ID

categoryID - Category ID from which to get information

getDeletedItemListInCategory

public IOZItemInfoList getDeletedItemListInCategory(Object sessionID, String categoryID) throws OZRepositoryException

Gets the information of deleted items in the designated category.

Parameters:

sessionID - Session ID

categoryID - Category ID from which to get information of deleted items

transferItem

public boolean transferItem(Object sessionID, String[] itemIDs, String target_CategoryID) throws OZRepositoryException

Transfers the category of the item.

Parameters:

sessionID - Session ID

itemIDs - Item ID to move its category

target_CategoryID - ID of the category to transfer

transferCategory

public boolean transferCategory(Object sessionID, String categoryID, String target_CategoryID) throws OZRepositoryException

Transfers the designated category to another category.

Parameters:

sessionID - Session ID

categoryID - ID of the source category from which to transfer

target_CategoryID - ID of the target category to which to transfer