<< Click to Display Table of Contents >>
IOZRepositoryItem
This interface provides functions for setting item.
Method Detail
getAccessTypeItem
public int getAccessTypeItem()
Gets methods accessible to the item.
•int ACCESS_ITEM_NOT = 0x00000000
•int ACCESS_CREATE_ITEM = 0x00000001
•int ACCESS_MODIFY_ITEMNAME = 0x00000002
•int ACCESS_DELETE_ITEM = 0x00000004
•int ACCESS_UN_DELETE_ITEM = 0x00000008
•int ACCESS_MODIFY_ITEM_DESC = 0x00000010
•int ACCESS_HAS_THE_ITEM = 0x00000020
•int ACCESS_GET_ITEM_INFO = 0x00000040
•int ACCESS_GET_ITEMS_UNCONDITION = 0x00000080
•int ACCESS_GET_ITEMS = 0x00000100
•int ACCESS_CHECKOUT_ITEM = 0x00000200
•int ACCESS_CHECKIN_ITEM = 0x00000400
•int ACCESS_UNDO_CHECKOUT_ITEM = 0x00000800
•int ACCESS_IS_CHECKOUT_USER = 0x00001000
getOZRepository
public IOZRepository getOZRepository() throws OZRepositoryException
Gets the class where the OZRepository Interface is implemented.
createItem
public String[] createItem(Object sessionID, String[] itemNames, String[] descs, InputStream[] item_ins, String comment, int[] errorCode, String[] errorMsg) throws OZRepositoryException
Creates an item and returns its ID.
Parameters:
sessionID - Session ID
itemNames - Item name
descs - Item description
item_ins - Item stream
comment - Comment
errCodes - Error code
errMsgs - Error message
modifyItemName
public String modifyItemName(Object sessionID, String itemID, String new_itemName, String comment) throws OZRepositoryException
Modifies the name of the item corresponding to the item ID and returns the modified item ID.
Parameters:
sessionID - Session ID
itemID - Item ID to change its name
new_itemName - New item name
comment - Comment
deleteItem
public boolean[] deleteItem(Object sessionID, String[] itemIDs, boolean[] isDestroys, String comment, int[] errorCode, String[] errorMsg) throws
Deletes the item from the Repository and gets the result.
Parameters:
sessionID - Session ID
itemIDs - ID of the item to delete
isDestroys - Whether to permanently delete
comment - Comment
errCodes - Error code
errMsgs - Error message
unDeleteItem
public boolean[] unDeleteItem(Object sessionID, String[] itemIDs, String comment, int[] errorCode, String[] errorMsg) throws OZRepositoryException
Restores the deleted item.
Parameters:
sessionID - Session ID
itemIDs - ID of the item to restore
comment - Comment
errCodes - Error code
errMsgs - Error message
modifyItemDesc
public boolean modifyItemDesc(Object sessionID, String itemID, String desc) throws OZRepositoryException
Modifies the description of the item corresponding to the item ID.
Parameters:
sessionID - Session ID
itemID - ID of item to modify
desc - Description to modify
getItemInfo
public IOZItemInfo getItemInfo(Object sessionID, String itemID) throws OZRepositoryException
Gets the information of the item corresponding to the item ID.
Parameters:
sessionID - Session ID
itemID - ID of item from which to get information
hasTheItem
public boolean hasTheItem(Object sessionID, String itemID) throws OZRepositoryException
Gets whether the item exists.
Parameters:
sessionID - Session ID
itemID - Item ID
getItems
public InputStream[] getItems(Object sessionID, String itemIDs[], int[] errorCode, String[] errorMsg) throws OZRepositoryException
Gets the item and the item stream.
Parameters:
sessionID - Session ID
itemIDs - Item ID to get
errCodes - Error code
errMsgs - Error message
getItems
public InputStream[] getItems(Object sessionID, String itemIDs[], long[] modifiedTimes, int[] errorCode, String[] errorMsg) throws OZRepositoryException
Gets the item and the item stream.
Parameters:
sessionID - Session ID
itemIDs - Item ID to get
modifiedTimes - Time the item was last modified
errCodes - Error code
errMsgs - Error message
checkOutItem
public InputStream[] checkOutItem(Object sessionID, String itemIDs[], String[] localCheckOutFolders, long[] localFileTimes, String[] checkOutCmts, int[] errorCode, String[] errorMsg) throws OZRepositoryException
Check out the item with the designated user ID to a folder, and gets the item stream if the local file time is smaller than the item time.
Parameters:
sessionID - 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
checkOutCmts - Comment
errCodes - Error code
errMsgs - Error message
checkInItem
public boolean[] checkInItem(Object sessionID, String[] itemIDs, InputStream[] item_ins, String comment, boolean[] keepCheckOut, int[] errorCode, String[] errorMsg) throws OZRepositoryException
Check in the item with the designated user ID.
Parameters:
sessionID - Session ID
itemIDs - ID of the item to check in
item_ins - Item stream to check in
comment - Comment
keepCheckOut - Whether to keep the check out status
errCodes - Error code
errMsgs - Error message
undoCheckOutItem
public InputStream[] undoCheckOutItem(Object sessionID, String[] itemIDs, boolean[] isReplaces, int[] errorCode, String[] errorMsg) throws OZRepositoryException
Undo check out the item.
Parameters:
sessionID - Session ID
itemIDs - ID of the item to undo check out
isReplaces - Whether to replace the local file
errCodes - Error code
errMsgs - Error message
isCheckOutUser
public boolean[] isCheckOutUser(Object sessionID, String[] itemIDs) throws OZRepositoryException
Checks whether the designated user checked out the item.
Parameters:
sessionID - Session ID
itemIDs - Item ID