<< Click to Display Table of Contents >>
IRepositoryCategory
This interface provides functions for setting category.
Property Detail
AccessType
CategoryAccess AccessType
Gets the methods with access to the Category Interface as numerals.
Repository
IRepository Repository
Gets the object where the IRepository Interface is implemented.
Method Detail
CreateItems
string[] CreateItems(object session, string[] itemNames, string[] descriptions, string[] categoryIDs, Stream[] items, string comment, OZErrorCode[] errCodes, string[] errMsgs)
Creates a new item and returns the its ID.
Parameters:
session - Session ID
itemNames - ID of the new item
descriptions - Description of the new item
categoryIDs - Category ID of the new item
items - Input stream of the new item
comment - Comments
errCodes - Error code
errMsgs - Error message
CreateCategories
string[] CreateCategories(object session, string[] categoryNames, string[] parentCategoryIDs, string comment, OZErrorCode[] errCodes, string[] errMsgs)
Creates a new category and returns the ID of it..
Parameters:
session - Session ID
categoryNames - Name of the new category
parentCategoryIDs - parent category ID of the new category
comment - Comments
errCodes - Error code
errMsgs - Error message
ModifyCategoryName
string ModifyCategoryName(object session, string categoryID, string newCategoryName, string comment)
Modifies the name of the category corresponding to the category ID.
Parameters:
session - Session ID
categoryID - Category ID
newCategoryName - Category name
comment - Comments
DeleteCategories
bool[] DeleteCategories(object session, string[] categoryIDs, bool[] toBeDestroyed, string comment, OZErrorCode[] errCodes, string[] errMsgs)
Deletes the category corresponding to the category ID.
Parameters:
session - Session ID
categoryIDs - Category ID
toBeDestroyed - Whether to delete the category permanently
comment - Comments
errorCodes - Error code
errorMsgs - Error message
UndeleteCategories
bool[] UndeleteCategories(object session, string[] categoryIDs, string comment, OZErrorCode[] errCodes, string[] errMsgs)
Recover the deleted category and gets whether the result.
Parameters:
session - Session ID
CategoryIDs - ID of the category to recover
comment - Comments
errorCode - Error code
errorMsg - Error message
GetItemCount
int GetItemCount(object session, string categoryID)
Gets the number of all items belonging to the designated category.
Parameters:
session - Session ID
categoryID - Category ID
GetItemInfos
IItemInfo[] GetItemInfos(object session, string categoryID)
Gets the information of all items belonging to the designated category.
Parameters:
session - Session ID
categoryID - Category ID
GetCategoryInfos
ICategoryInfo[] GetCategoryInfos(object session, string categoryID)
Gets the information of the designated category.
Parameters:
session - Session ID
categoryID - Category ID
GetCategoryID
string GetCategoryID(object session, string itemID)
Returns the ID of the category where the designated item exists.
Parameters:
session - Session ID
itemID - The item ID
GetCategoryInfo
ICategoryInfo GetCategoryInfo(object session, string categoryID)
Gets the information of the designated category.
Parameters:
session - Session ID
categoryID - Category ID
GetDeletedItemInfos
IItemInfo[] GetDeletedItemInfos(object session, string categoryID)
Imports the information of the deleted items in the designated category.
Parameters:
session - Session ID
categoryID - The Category ID
TransferItems
bool TransferItems(object session, string[] itemIDs, string targetCategoryID)
Moves the category of the assigned item and gets whether the result.
Parameters:
session - Session ID
itemIDs - Item ID
targetCategoryID - Target category ID
TransferCategory
bool TransferCategory(object session, string categoryID, string targetCategoryID)
Moves the designated category to another category and gets whether the result.
Parameters:
session - Session ID
categoryID - New category ID
targetCategoryID - Target category ID