|
|||||||||
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 revision tracking of assets.
Method Summary | |
---|---|
void |
checkin(VersionBean version,
boolean keepCheckedOut)
Commits the changes by the user from the session in a new revision for an asset. |
void |
checkout(AssetId assetId)
Checks out an asset by the user from the session. |
java.util.List<AssetId> |
getCheckedoutAssets()
Gets the list of assets checked out by the user from the session. |
VersionBean |
getRevision(AssetId assetId)
Returns revision tracking information for an asset. |
java.lang.Boolean |
isTracked(java.lang.String assetType)
Returns true if the specified asset type is tracked. |
void |
undoCheckout(AssetId assetId,
boolean explicitUndoCheckout)
Reverts the changes made to the checked-out asset by the user from the session and sets its state back to what it was before being checked out. |
Methods inherited from interface com.fatwire.services.Service |
---|
getManager, getResponse, setManager |
Method Detail |
---|
void checkout(AssetId assetId) throws ServiceException
assetId
- the identifier for the asset to checkout.
ServiceException
- wraps any exception underlying the service call.void undoCheckout(AssetId assetId, boolean explicitUndoCheckout) throws ServiceException
assetId
- the identifier for the asset being reverted.explicitUndoCheckout
-
ServiceException
- wraps any exception underlying the service call.void checkin(VersionBean version, boolean keepCheckedOut) throws ServiceException
Commits the changes by the user from the session in a new revision for an asset.
The method also accepts a switch to keep the asset checked out once the changes are committed. However, a new revision number will be associated as if the asset was again checked out after the commit.
version
- the revision to commit.keepCheckedOut
- switch to keep the asset checked out even after committing the changes.
ServiceException
- wraps any exception underlying the service call.java.util.List<AssetId> getCheckedoutAssets() throws ServiceException
ServiceException
- wraps any exception underlying the service call.VersionBean getRevision(AssetId assetId) throws ServiceException
assetId
- the identifier for the asset whose revision tracking information is to be
retrieved.
ServiceException
- wraps any exception underlying the service call.java.lang.Boolean isTracked(java.lang.String assetType) throws ServiceException
true
if the specified asset type is tracked.
type
- the asset type to check for revision tracking.
true
if the specified asset type is tracked,
false
otherwise.
ServiceException
- wraps any exception underlying the service call.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |