@Exported public class BasicAssetDataWriteStrategy extends Object implements AssetDataWriteStrategy
AssetDataWriteStrategy.AssetActionType| Modifier and Type | Method and Description |
|---|---|
void |
delete(List<AssetId> data)
Deletes a given list of assets from Content Server
|
protected com.openmarket.xcelerate.interfaces.IAsset |
getInstance(AssetData data,
AssetDataWriteStrategy.AssetActionType type,
List<String> ignoreAttributes,
boolean insert)
Gets an IAsset instance with the given asset data
|
protected List<com.openmarket.xcelerate.interfaces.IAsset> |
getInstances(List<AssetData> data,
AssetDataWriteStrategy.AssetActionType type,
List<String> ignoreAttributes,
boolean insert)
Gets a list of IAsset instances given a list of asset data
|
void |
populateInstance(com.openmarket.xcelerate.interfaces.IAsset asset,
AssetData data) |
void |
populateInstance(com.openmarket.xcelerate.interfaces.IAsset asset,
AssetData data,
boolean filterNoSetAttributes,
boolean verifyReferences) |
void |
write(List<AssetData> data,
AssetDataWriteStrategy.AssetActionType type)
Inserts a given Iterator of AssetData instances in the database.
|
void |
write(List<AssetData> data,
AssetDataWriteStrategy.AssetActionType type,
boolean keepCheckedOut)
Inserts a given Iterator of AssetData instances in the database.
|
public void delete(List<AssetId> data) throws AssetAccessException
AssetDataWriteStrategydelete in interface AssetDataWriteStrategydata - the list of AssetIds to deleteAssetAccessException - AssetAccessException captures layer specific failures and wraps other internal exceptions.public void write(List<AssetData> data, AssetDataWriteStrategy.AssetActionType type) throws AssetAccessException
AssetDataWriteStrategywrite in interface AssetDataWriteStrategydata - AssetData to be inserted.type - the type of operation for the list of assetsAssetAccessException - captures layer specific failures and wraps other internal exceptions.public void write(List<AssetData> data, AssetDataWriteStrategy.AssetActionType type, boolean keepCheckedOut) throws AssetAccessException
AssetDataWriteStrategywrite in interface AssetDataWriteStrategydata - AssetData to be inserted.type - the type of operation for the list of assetskeepCheckedOut - do not checkin asset after save if revision tracked.AssetAccessException - captures layer specific failures and wraps other internal exceptions.protected List<com.openmarket.xcelerate.interfaces.IAsset> getInstances(List<AssetData> data, AssetDataWriteStrategy.AssetActionType type, List<String> ignoreAttributes, boolean insert) throws AssetAccessException
data - data the asset datas used to construct the IAssetstype - the action type AssetActionType.NEW or AssetActionType.UPDATEignoreAttributes - the list of attributes that will be ignored from the asset datasinsert - whether it is an insertAssetAccessException - throws this exception if error metpublic void populateInstance(com.openmarket.xcelerate.interfaces.IAsset asset,
AssetData data)
throws AssetAccessException
populateInstance in interface AssetDataWriteStrategyAssetAccessExceptionpublic void populateInstance(com.openmarket.xcelerate.interfaces.IAsset asset,
AssetData data,
boolean filterNoSetAttributes,
boolean verifyReferences)
throws AssetAccessException
populateInstance in interface AssetDataWriteStrategyAssetAccessExceptionprotected com.openmarket.xcelerate.interfaces.IAsset getInstance(AssetData data, AssetDataWriteStrategy.AssetActionType type, List<String> ignoreAttributes, boolean insert) throws AssetAccessException
data - the asset data used to construct the IAssettype - the action type AssetActionType.NEW or AssetActionType.UPDATEignoreAttributes - the list of attributes that will be ignored from the asset datainsert - whether it is an insertAssetAccessException - throws this exception if error met