com.fatwire.assetapi.data
Class AssetDataStrategyFactory

java.lang.Object
  extended by com.fatwire.assetapi.data.AssetDataStrategyFactory

public final class AssetDataStrategyFactory
extends java.lang.Object

The class returns the proper asset data read/write strategy giving an asset type.


Constructor Summary
AssetDataStrategyFactory()
           
 
Method Summary
static AssetDataReadStrategy getReadStrategy(ICS ics, java.lang.String assettype, boolean isFlex)
          get the proper read strategy for given asset type
static AssetDataWriteStrategy getWriteStrategy(ICS ics, java.lang.String assettype, boolean isFlex)
          get the proper write strategy for given asset type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetDataStrategyFactory

public AssetDataStrategyFactory()
Method Detail

getReadStrategy

public static AssetDataReadStrategy getReadStrategy(ICS ics,
                                                    java.lang.String assettype,
                                                    boolean isFlex)
                                             throws AssetAccessException
get the proper read strategy for given asset type

Parameters:
ics - the ICS object
assettype - the asset type to ge the strategy
isFlex - whether the asset type is a flex asset type or not
Returns:
the stategy instance for the given asset type
Throws:
AssetAccessException - throws exception when occur reating the strategy

getWriteStrategy

public static AssetDataWriteStrategy getWriteStrategy(ICS ics,
                                                      java.lang.String assettype,
                                                      boolean isFlex)
                                               throws AssetAccessException
get the proper write strategy for given asset type

Parameters:
ics - the ICS object
assettype - the asset type to ge the strategy
isFlex - whether the asset type is a flex asset type or not
Returns:
the stategy instance for the given asset type
Throws:
AssetAccessException - throws exception when occur reating the strategy


Copyright (c) 2003 - 2010 FatWire Corporation All Rights Reserved.