<< Click to Display Table of Contents >>
Using item version control
To use item version control function using the RepositoryEX class, use the method below:
Method Detail
CheckOut
public Stream[] CheckOut(string[] itemIDs, string[] checkOutFolders, long[] localFileTimes, bool[] isCompressed, string[] checkOutCmts)
Check out the designated item to the folder to be checked-out.
Parameters:
itemIDs - The item ID
checkOutFolders - The local folder name
localFileTimes - The local file time
isCompressed - Whether to compress the item
checkOutCmts - The comment
CheckIn
public bool[] CheckIn(string[] itemIDs, bool[] isCompressed, Stream[] items, string comment, bool[] keepCheckOut)
Check in the item by specifying the time.(Not supported in NONE type repository)
Parameters:
itemIDs - The item ID
isCompressed - Whether to compress the item
items - The input stream of the item
comment - The comment
keepCheckOut - Whether to keep the checked-out status
CheckIn
public bool[] CheckIn(string[] itemIDs, bool[] isCompressed, Stream[] items, string comment, bool[] keepCheckOut, long[] datetimes)
Check in the item by specifying the time.(Not supported in NONE type repository)
Parameters:
itemIDs - The item ID
isCompressed - Whether to compress the item
items - The input stream of the item
comment - The comment
keepCheckOut - Whether to keep the checked-out status
datetimes - Time the item was created. If the value is set to 0 or negative, it is applied to the current time.
UndoCheckOut
public Stream[] UndoCheckOut(string[] itemIDs, bool[] replaceItems, bool[] isCompressed)
Undo checking out of the designated item.
Parameters:
itemIDs - The item ID
replaceItems - Whether to get items in the local working folder
isCompressed - Whether to compress the item
Upload
public bool Upload(string categoryID, Stream in)
Upload the item.
Parameters:
categoryID - The category ID
in - the compressed stream
IsCheckOutUser
public bool[] isCheckOutUser(string[] ItemIDs) throws OZCPException
Check that the item designated by the current user is checked out.
Parameters:
itemIDs - The item ID
GetHistoryInfos
public IHistoryInfo[] GetHistoryInfos(string itemID)
Gets the history information of the designated item.
Parameters:
itemID - The item ID
GetHistoryItemByDatetime
public Stream GetHistoryItemByDatetime(string itemID, long datetime, bool isCompressed, bool isObjStream)
Gets Most Recent Items specified time.(Not supported in NONE type repository)
Parameters:
itemID - The item ID
datetime - The base time to get item history
isCompressed - Whether to compress the item
isObjStream - Whether the obj item is objstream
GetHistoryItemListByDatetime
public IHistoryInfo[] GetHistoryItemListByDatetime(string itemID)
Gets the history information of the designated item the order date.(Not supported in NONE type repository)
Parameters:
itemID - The item ID
GetDeletedItemInfos
public IItemInfo[] GetDeletedItemInfos(string categoryID)
Gets the information of deleted items in the designated category.
Parameters:
categoryID - The category ID
GetDeletedItemHistoryInfos
public IHistoryInfo[] GetDeletedItemHistoryInfos(string itemID)
Gets the information of a deleted item.
Parameters:
itemID - The item ID
ModifyHistoryItemComment
public bool ModifyHistoryItemComment(string itemID, int itemVersion, string newComment) throws OZCPException
Modifies the comment of the specified version.
Parameters:
itemID - The item ID
itemVersion - The item version
newComment - The comment
ModifyHistoryItemDatetime
public bool ModifyHistoryItemDatetime(string itemID, int itemVersion, long datetime)
Modifies the item time of the specified version.(Not supported in NONE type repository)
Parameters:
itemID - The item ID
itemVersion - The item version
datetime - Time the item was changed. If the value is set to 0 or negative, it is applied to the current time.
RemoveHistory
public bool RemoveHistory(string itemID, int version)
Deletes the history of specific version of the designated item.
Parameters:
itemID - The item ID
version - The item version
RollBack
public bool RollBack(string itemID, int version, string comment)
Recovers the designated item to the version of choice.
Parameters:
itemID - ID of the item to recover
version - The version to recover
comment - The comment