|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.assetapi.data.CSElementReadStrategy
public final class CSElementReadStrategy
TODO: Add class/interface details
Field Summary | |
---|---|
protected AssetTypeDef |
_def
|
protected ICS |
_ics
|
protected static org.apache.commons.logging.Log |
_logger
|
Constructor Summary | |
---|---|
CSElementReadStrategy(ICS ics)
|
Method Summary | |
---|---|
protected Query |
_checkQuery(Query query)
|
protected AssetTypeDef |
_getAssetTypeDef(java.lang.String assettype,
java.lang.String subtype)
returnt the AssetTypeDef given asset type and subtype |
protected void |
_retrieveSpecialAttributes(MutableAssetData data,
IAsset asset,
java.util.List<java.lang.String> attributeNames)
Each special assets that is not flex assets would most go through the Basic Asset Strategy and then calls its own retrieving special attribute to handles the specially available attributes for themselves |
protected java.lang.String |
performQuery(Query query,
java.lang.String assettype,
java.lang.String subtype,
AssetTypeDef def,
boolean isFlex,
java.util.List<java.lang.String> uniqIds)
|
MutableAssetData |
read(IAsset asset,
AssetId id)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.fatwire.assetapi.data.AssetDataReadStrategy |
---|
read, read, read, readAttributes |
Field Detail |
---|
protected AssetTypeDef _def
protected ICS _ics
protected static final org.apache.commons.logging.Log _logger
Constructor Detail |
---|
public CSElementReadStrategy(ICS ics)
Method Detail |
---|
protected void _retrieveSpecialAttributes(MutableAssetData data, IAsset asset, java.util.List<java.lang.String> attributeNames) throws AssetAccessException
data
- the half constructed AssetDataasset
- the IAsset objectattributeNames
- the names of the attributes that user requested, null indicates all are requested.
AssetAccessException
public java.lang.Iterable<MutableAssetData> read(Query query) throws AssetAccessException
AssetDataReadStrategy
read
in interface AssetDataReadStrategy
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.public MutableAssetData read(IAsset asset, AssetId id) throws AssetAccessException
read
in interface AssetDataReadStrategy
AssetAccessException
public java.lang.Iterable<MutableAssetData> read(java.util.List<AssetId> ids) throws AssetAccessException
AssetDataReadStrategy
AssetId
s.
read
in interface AssetDataReadStrategy
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.public MutableAssetData readAttributes(AssetId id, java.util.List<java.lang.String> attributeNames) throws AssetAccessException
AssetDataReadStrategy
readAttributes
in interface AssetDataReadStrategy
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.protected Query _checkQuery(Query query) throws AssetAccessException
AssetAccessException
protected java.lang.String performQuery(Query query, java.lang.String assettype, java.lang.String subtype, AssetTypeDef def, boolean isFlex, java.util.List<java.lang.String> uniqIds) throws AssetAccessException
AssetAccessException
protected AssetTypeDef _getAssetTypeDef(java.lang.String assettype, java.lang.String subtype) throws AssetAccessException
AssetTypeDef
given asset type and subtype
assettype
- the type of the assetsubtype
- the subtype of the asset
AssetTypeDef
the asset type defintion of the given asset type and subtype
AssetAccessException
- exception will be thrown from AssetTypeDefManager.findByName(assettype, subtype)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |