com.fatwire.assetapi.data
Class RevisionTrackingManagerImpl

java.lang.Object
  extended by com.fatwire.assetapi.data.RevisionTrackingManagerImpl
All Implemented Interfaces:
RevisionTrackingManager

public class RevisionTrackingManagerImpl
extends java.lang.Object
implements RevisionTrackingManager


Constructor Summary
RevisionTrackingManagerImpl(ICS ics)
           
 
Method Summary
 void checkIn(java.util.List<AssetId> ids)
          Checks in a given collection of AssetIds
 void checkOut(java.util.List<AssetId> ids)
          Checks out a collection of AssetIds
 AssetData get(AssetId id, int versionNnmber)
          Returns AssetData for a given asset and version number.
 java.util.List<AssetData> getAll(AssetId id)
          Returns all revision tracked data for a given asset
 java.util.List<java.lang.Integer> getVersions(AssetId id)
          Returns all available version numbers of tracked assets given an asset id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionTrackingManagerImpl

public RevisionTrackingManagerImpl(ICS ics)
Method Detail

checkOut

public void checkOut(java.util.List<AssetId> ids)
              throws AssetAccessException
Description copied from interface: RevisionTrackingManager
Checks out a collection of AssetIds

Specified by:
checkOut in interface RevisionTrackingManager
Parameters:
ids - ids to be checked out
Throws:
AssetAccessException - if the underlying operation fails

checkIn

public void checkIn(java.util.List<AssetId> ids)
             throws AssetAccessException
Description copied from interface: RevisionTrackingManager
Checks in a given collection of AssetIds

Specified by:
checkIn in interface RevisionTrackingManager
Parameters:
ids - ids to be checked in
Throws:
AssetAccessException - if the underlying operation fails

getAll

public java.util.List<AssetData> getAll(AssetId id)
                                 throws AssetAccessException
Description copied from interface: RevisionTrackingManager
Returns all revision tracked data for a given asset

Specified by:
getAll in interface RevisionTrackingManager
Parameters:
id - AssetId
Returns:
List of AssetData corresponding to all revision tracked data
Throws:
AssetAccessException - if the underlying operation fails

getVersions

public java.util.List<java.lang.Integer> getVersions(AssetId id)
                                              throws AssetAccessException
Description copied from interface: RevisionTrackingManager
Returns all available version numbers of tracked assets given an asset id.

Specified by:
getVersions in interface RevisionTrackingManager
Parameters:
id - AssetId
Returns:
List of available version numbers
Throws:
AssetAccessException - if the underlying operation fails

get

public AssetData get(AssetId id,
                     int versionNnmber)
              throws AssetAccessException
Description copied from interface: RevisionTrackingManager
Returns AssetData for a given asset and version number.

Specified by:
get in interface RevisionTrackingManager
Parameters:
id - AssetId
versionNnmber - a valid version number
Returns:
AssetData corresponding to the version number.
Throws:
AssetAccessException - if the underlying operation fails