|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersioningService
The Versioning Service is the interface providing services related to versioning of assets when revision tracking has been enabled for the asset type.
.
Methods from this service will invoke operations like "Check out", "Check in" and "Undo Checkout". Once an asset is checked out by a user, it cannot be operated on by another user unless the check out is cleared by undoing the check out or by checking the asset in.
Method Summary | |
---|---|
VersionBean |
checkin(AssetId assetId, java.lang.String comment, boolean keepCheckedOut, MessageCollectors.VersioningMessageCollector collector) Commits changes to the specified asset and hence creates a new revision for it. |
VersionBean |
checkout(AssetId assetId, MessageCollectors.VersioningMessageCollector collector) Checks out an asset for the logged in user and returns the current revision. |
java.util.List<AssetId> |
getCheckedoutAssets() Returns the list of assets checked out by the logged in user. |
VersionBean |
getCurrentRevision(AssetId assetId) Returns metadata for the current revision for the specified asset. |
boolean |
isTracked(java.lang.String assetType) Checks if revision tracking is enabled for the specified asset type. |
VersionBean |
undoCheckout(AssetId assetId, MessageCollectors.VersioningMessageCollector collector) Reverts the changes made to the specified checked-out asset, and reverts its state back to what it was before being checked out. |
Methods inherited from interface com.fatwire.services.Service |
---|
getManager, getResponse, setManager |
Method Detail |
---|
VersionBean checkout(AssetId assetId, MessageCollectors.VersioningMessageCollector collector) throws ServiceException
null
. In checking out the specified asset, this method assumes the currently logged in user is performing the action.assetId
- the identifier for the asset to check out.collector
- the message collector for acquiring messages from this method.VersionBean
with the current revision status.ServiceException
- wraps any exception underlying the service call.VersionBean undoCheckout(AssetId assetId, MessageCollectors.VersioningMessageCollector collector) throws ServiceException
null
.assetId
- the identifier for the asset being reverted.collector
- the message collector for acquiring messages logged by this method.VersionBean
with the revision status prior to check out.ServiceException
- wraps any exception underlying the service call.VersionBean checkin(AssetId assetId, java.lang.String comment, boolean keepCheckedOut, MessageCollectors.VersioningMessageCollector collector) throws ServiceException
assetId
- the identifier for the asset being reverted.comment
- the message associated with this check in.collector
- the message collector for acquiring messages logged by this method.keepCheckedOut
- set to true
to keep the asset checked out even after checking in the new version.VersionBean
with the new revision.ServiceException
- wraps any exception underlying the service call.java.util.List<AssetId> getCheckedoutAssets() throws ServiceException
ServiceException
- wraps any exception underlying the service call.boolean isTracked(java.lang.String assetType) throws ServiceException
checkin()
, checkout()
and undoCheckout()
methods will always return null
.assetType
- the asset type to check if revision tracking is enabled.true
if revision tracking is enabled for the specified asset type, false
otherwise.ServiceException
- wraps any exception underlying the service call.VersionBean getCurrentRevision(AssetId assetId) throws ServiceException
VersionBean
.assetId
- the identifier for the asset whose version is to be retrieved.ServiceException
- wraps any exception underlying the service call.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.