com.fatwire.assetapi.data
Class BasicAssetDataWriteStrategy
java.lang.Object
com.fatwire.assetapi.data.BasicAssetDataWriteStrategy
- All Implemented Interfaces:
- AssetDataWriteStrategy
public class BasicAssetDataWriteStrategy
- extends java.lang.Object
- implements AssetDataWriteStrategy
TODO: Add class/interface details
Field Summary |
protected ICS |
_ics
|
protected static org.apache.commons.logging.Log |
_logger
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_ics
protected ICS _ics
_logger
protected static final org.apache.commons.logging.Log _logger
delete
public void delete(java.util.List<AssetId> data)
throws AssetAccessException
- Description copied from interface:
AssetDataWriteStrategy
- Delete a given list of assts from Content Server
- Specified by:
delete
in interface AssetDataWriteStrategy
- Parameters:
data
- the list of AssetIds to delete
- Throws:
AssetAccessException
- AssetAccessException captures layer specific failures and wraps other internal exceptions.
write
public void write(java.util.List<AssetData> data,
AssetDataWriteStrategy.AssetActionType type)
throws AssetAccessException
- Description copied from interface:
AssetDataWriteStrategy
- Inserts a given Iterator of AssetData instances in the database.
- Specified by:
write
in interface AssetDataWriteStrategy
- Parameters:
data
- AssetData to be inserted.type
- the type of operation for the list of assets
- Throws:
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.
_save
protected void _save(java.util.List<IAsset> instances,
boolean insert)
throws AssetAccessException
- Throws:
AssetAccessException
getInstances
protected java.util.List<IAsset> getInstances(java.util.List<AssetData> data,
AssetDataWriteStrategy.AssetActionType type,
boolean insert)
throws AssetAccessException
- Throws:
AssetAccessException
populateInstance
public void populateInstance(IAsset asset,
AssetData data)
throws AssetAccessException
- Specified by:
populateInstance
in interface AssetDataWriteStrategy
- Throws:
AssetAccessException
_getAssetTypeDef
protected AssetTypeDef _getAssetTypeDef(java.lang.String assettype,
java.lang.String subtype)
throws AssetAccessException
- returnt the
AssetTypeDef
given asset type and subtype
- Parameters:
assettype
- the type of the assetsubtype
- the subtype of the asset
- Returns:
AssetTypeDef
the asset type defintion of the given asset type and subtype
- Throws:
AssetAccessException
- exception will be thrown from AssetTypeDefManager.findByName(assettype, subtype)