com.fatwire.assetapi.data
Class AssetDataStrategyFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetDataStrategyFactory
public AssetDataStrategyFactory()
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 objectassettype
- the asset type to ge the strategyisFlex
- 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 objectassettype
- the asset type to ge the strategyisFlex
- 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.