<< 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
checkOutItem
public InputStream[] checkOutItem(String itemIDs[], String[] localCheckOutFolders, long[] localFileTimes, boolean[] isComp, int[] errorCodes, String[] errorMsg) throws OZCPException
Check out the item to a folder.
Parameters:
itemIDs - Item ID
localCheckOutFolders - Local folder name
localFileTimes - Local file time
isComp - Whether to compress it
errorCodes - Error code
errorMsg - Error message
checkOutItem
public InputStream[] checkOutItem(String itemIDs[], String[] localCheckOutFolders, long[] localFileTimes, boolean[] isComp, String[] checkOutCmts, int[] errorCodes, String[] errorMsg) throws OZCPException
Check out the item to a folder.
Parameters:
itemIDs - Item ID
localCheckOutFolders - Local folder name
localFileTimes - Local file time
isComp - Whether to compress it
checkOutCmts - Comment
errorCodes - Error code
errorMsg - Error message
checkInItem
public boolean[] checkInItem(String[] itemIDs, boolean[] isComp, InputStream[] iStreams, String comment, boolean[] keepCheckOut, int[] errorCodes, String[] errorMsg) throws OZCPException
Check in the item.(Not supported in NONE type repository)
Parameters:
itemIDs - Item ID
isComp - Whether to compress it
iStreams - Input stream of the item
comment - Comment
keepCheckOut - Whether to keep the check out status
errorCodes - Error code
errorMsg - Error message
checkInItem
public boolean[] checkInItem(String[] itemIDs, boolean[] isComp, InputStream[] itemStreams, String comment, boolean[] keepCheckOut, long[] datetimes, int[] errorCodes, String[] errorMsg) throws OZCPException
Check in the item by specifying the time.(Not supported in NONE type repository)
Parameters:
itemIDs - Item ID
isComp - Whether to compress it
itemStreams - Input stream of the item
comment - Comment
keepCheckOut - Whether to keep the check out status
datetimes - Time the item was checked in. If the value is set to 0, it is applied to the current time.
errorCodes - Error code
errorMsg - Error message
undoCheckOutItem
public InputStream[] undoCheckOutItem(String[] itemIDs, boolean[] isReplaces, boolean[] isComp, int[] errorCodes, String[] errorMsg) throws OZCPException
Undo check out the item.
Parameters:
itemIDs - Item ID
isReplaces - Whether to get the items in the local working folder
isComp - Whether to compress it
errCodes - Error code
errMsgs - Error message
isCheckOutUser
public boolean[] isCheckOutUser(String[] itemIDs) throws OZCPException
Checks that the current user checked out the item.
Parameters:
itemIDs - Item ID
getItemByVersion
public InputStream getItemByVersion(String itemID, int version, boolean isComp) throws OZCPException
Gets the item of the designated version among the items corresponding to the item ID.
Parameters:
itemID Item ID
version - Item version
isComp - Whether to compress it
getHistoryItemList
public IOZHistoryInfoList getHistoryItemList(String itemID) throws OZCPException
Gets the history information of the item.
Parameters:
itemID - Item ID
getHistoryItemListByDatetime
public IOZHistoryInfoList getHistoryItemListByDatetime(String itemID) throws OZCPException
Gets the history information of the item the order date.(Not supported in NONE type repository)
Parameters:
itemID - Item ID
getHistoryItemByDatetime
public InputStream getHistoryItemByDatetime(String itemID, long datetime, boolean isComp, boolean isObjStream) throws OZCPException
Gets Most Recent Items specified time.(Not supported in NONE type repository)
Parameters:
itemID - Item ID
datetime - Time the item was checked in
isComp - Whether to compress it
isObjStream - Whether the obj item is objstream
getDeleteHistoryItemInfo
public IOZHistoryInfoList getDeleteHistoryItemInfo(String itemID) throws OZCPException
Gets the information of a deleted item.
Parameters:
itemID - Item ID
modifyHistoryItemComment
public boolean modifyHistoryItemComment(String itemID, int itemVersion, String newComment) throws OZCPException
Modifies the comment of the specified version.
Parameters:
itemID - Item ID
itemversion - Item version
newComment - Comment
modifyHistoryItemDatetime
public boolean modifyHistoryItemDatetime(String itemID, int itemVersion, long datetime) throws OZCPException
Modifies the item time of the specified version.(Not supported in NONE type repository)
Parameters:
itemID - Item ID
itemVersion - Item version
datetime - Time the item was checked in. If the value is set to 0, it is applied to the current time.
removeHistoryItem
public boolean removeHistoryItem(String itemID, int itemVersion) throws OZCPException
Gets the item’s specific version of history.
Parameters:
itemID - Item ID
itemversion - Item version
rollBackItem
public boolean rollBackItem(String itemID, int itemVersion, String comment) throws OZCPException
Rolls back the item to the designated version.
Parameters:
itemID - Item ID
itemVersion - Item version
comment - Comment