public interface IVersionPolicy
extends com.webmethods.portal.bizPolicy.biz.IBizPolicy
Modifier and Type | Method and Description |
---|---|
IThingID |
addToVersion(IContext context,
IThingID itemId)
Adds an item into the versioning.
|
void |
checkIn(IContext context,
IThingID itemId,
Object dataToBeCheckedIn,
String sComment,
String encoding)
Checks an item in.
|
void |
checkOut(IContext context,
IThingID itemId)
Checks a versioned item out.
|
IListView |
listVersions(IContext context,
IThingID itemID)
List the versions for a given versioned item
|
void |
setCurrentVersion(IContext context,
IThingID itemId,
String sVersionId)
Updates an item by grabbing a version pointed by the specified version id.
|
void |
undoCheckOut(IContext context,
IThingID itemId)
Unchecks out a versioned item.
|
IThingID addToVersion(IContext context, IThingID itemId) throws com.webmethods.portal.bizPolicy.BizException
void checkOut(IContext context, IThingID itemId) throws com.webmethods.portal.bizPolicy.BizException
void undoCheckOut(IContext context, IThingID itemId) throws com.webmethods.portal.bizPolicy.BizException
void checkIn(IContext context, IThingID itemId, Object dataToBeCheckedIn, String sComment, String encoding) throws com.webmethods.portal.bizPolicy.BizException
context
- The current IContext
.itemId
- The item IThingID
is to be checked in.dataToBeCheckedIn
- The data to be checked in. This strongly depends on type of an item to be checked in.sComment
- The comment, which is to be added in the version history for the version is checked in.
See the implementation for more detail.com.webmethods.portal.bizPolicy.BizException
- if any error occurs while checking the item inIContext
void setCurrentVersion(IContext context, IThingID itemId, String sVersionId) throws com.webmethods.portal.bizPolicy.BizException
IListView listVersions(IContext context, IThingID itemID) throws com.webmethods.portal.bizPolicy.BizException
context
- the current users contextitemID
- the item whose versions will be listedIView
objects describing each version of the documentcom.webmethods.portal.bizPolicy.BizException