<< Click to Display Table of Contents >>
IRepositoryItem
This interface provides functions for setting item.
Property Detail
AccessType
CategoryAccess AccessType
Gets the methods with access to the Item 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, Stream[] items, string comment, OZErrorCode[] errCodes, string[] errMsgs)
Creates a new item and returns it ID.
Parameters:
session - Session ID
itemNames - New item ID
descriptions - New item description
items - New item input stream
comment - Comments
errCodes - Error code
errMsgs - Error message
ModifyItemName
string ModifyItemName(object session, string itemID, string newItemName, string comment)
Modifies the name of the item with the assigned item ID and returns the new item ID.
Parameters:
session - Session ID
itemID - Item ID
newItemName - New item ID
comment - Comments
DeleteItems
bool[] DeleteItems(object session, string[] itemIDs, bool[] toBeDestroyed, string comment, OZErrorCode[] errCodes, string[] errMsgs)
Deletes the assigned item from the repository and gets whether the result.
Parameters:
session - Session ID
itemIDs - Item ID
toBeDestroyed - Whether to delete it permanently
comment - Comments
errCodes - Error code
errMsgs - Error message
UnDeleteItems
bool[] UndeleteItems(object session, string[] itemIDs, string comment, OZErrorCode[] errCodes, string[] errMsgs)
Recover the deleted item and gets whether the result.
Parameters:
session - Session ID
itemIDs - Item ID
comment - Comments
errCodes - Error code
errMsgs - Error message
ModifyItemDescription
bool ModifyItemDescription(object session, string itemID, string description)
Modifies the description of the item corresponding to the item ID and gets whether the result.
Parameters:
session - Session ID
itemID - Item ID
description - The new description
GetItemInfo
IItemInfo GetItemInfo(object session, string itemID)
Gets the information of the item corresponding to the item ID.
Parameters:
session - Session ID
itemID - Item ID
HasItem
bool HasItem(object session, string itemID)
Gets whether the designated item exists.
Parameters:
session - Session ID
itemID - Item ID
GetItems
Stream[] GetItems(object session, string[] itemIDs, OZErrorCode[] errCodes, string[] errMsgs)
Gets the assigned item and after that the item stream.
Parameters:
session - Session ID
itemIDs - Item ID
errCodes - Error code
errMsgs - Error message
GetItems
Stream[] GetItems(object session, string[] itemIDs, long[] modifiedTimes, ItemOptions[] options, OZErrorCode[] errCodes, string[] errMsgs)
Gets the assigned item and after that the item stream.
Parameters:
session - Session ID
itemIDs - Item ID
modifiedTimes - Time the item was last modified
options - Options for processing error message
errCodes - Error code
errMsgs - Error message
CheckOut
Stream[] CheckOut(object session, string[] itemIDs, string[] localCheckOutFolders, long[] localFileTimes, OZErrorCode[] errCodes, string[] errMsgs)
Checks out the assigned item to the folder corresponding to the user ID and gets the item stream if the local file time is less then the item time.
Parameters:
session - Session ID
itemIDs - ID of the item to check out
localCheckOutFolders - Name of the local folder to check out
localFileTimes - Local file time of the item to check out
errCodes - Error code
errMsgs - Error message
CheckIn
bool[] CheckIn(object session, string[] itemIDs, Stream[] items, string comment, bool[] keepCheckOut, OZErrorCode[] errCodes, string[] errMsgs)
Checks in the assigned item corresponding to the user ID and gets whether the check in result.
Parameters:
session - Session ID
itemIDs - ID of the item to check in
items - Stream of the item to check in
comment - Comments
keepCheckOut - Whether to keep check-out
errCodes - Error code
errMsgs - Error message
UndoCheckOut
Stream[] UndoCheckOut(object session, string[] itemIDs, bool[] replace, OZErrorCode[] errCodes, string[] errMsgs)
Undo checking-out of the designated item.
Parameters:
session - Session ID
itemIDs - ID of the item to undo check-out
replaces - Whether to replace local files
errCodes - Error code
errMsgs - Error message
IsCheckOutUser
bool[] IsCheckOutUser(object session, string[] itemIDs)
Checks that the assigned user checked out the designated item.
Parameters:
session - Session ID
itemIDs - Item ID