|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssetDataReadStrategy
AssetDataReadStrategy is the basic interface that would be used for handling Asset Data read from Content Server.
Method Summary | |
---|---|
MutableAssetData |
read(IAsset asset,
AssetId id)
Reads asset data for the given AssetId from the IAsset specified |
java.lang.Iterable<MutableAssetData> |
read(java.util.List<AssetId> ids)
Reads asset data for all given AssetId s. |
java.lang.Iterable<MutableAssetData> |
read(Query query)
Reads all asset data that satisfies a given Query |
MutableAssetData |
readAttributes(AssetId id,
java.util.List<java.lang.String> attributeNames)
Reads given set attribute data and returns an AssetData instance containing them. |
Method Detail |
---|
java.lang.Iterable<MutableAssetData> read(Query query) throws AssetAccessException
query
- Query to be satisfied.
AssetAccessException
- is thrown when Query is invalid by the way of incorrect attributes or invalid operation given
the choice of query algorithm. AssetAccessException also wraps any AssetExcptions thrown by the internal implementation.java.lang.Iterable<MutableAssetData> read(java.util.List<AssetId> ids) throws AssetAccessException, AssetNotExistException
AssetId
s.
ids
- List of AssetIds
AssetAccessException
- is thrown when any of the AssetIds passed in does not exist.
AssetAccessException also wraps any AssetExcptions thrown by the internal implementation.
AssetNotExistException
MutableAssetData read(IAsset asset, AssetId id) throws AssetAccessException
AssetId
from the IAsset
specified
asset
- the asset where the asset will be read fromid
- AssetId to read for
AssetAccessException
- is thrown when error met reading the data from the assetMutableAssetData readAttributes(AssetId id, java.util.List<java.lang.String> attributeNames) throws AssetAccessException, AssetNotExistException
id
- AssetId to read attributes forattributeNames
- names of the attributes
AssetAccessException
- if thrown if the AssetId does not exist or attrbute names passed are incorrect
for the asset. AssetAccessException also wraps any AssetExcptions thrown by the internal implementation.
AssetNotExistException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |