|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.assetapi.data.DimensionSetReadStrategy
public class DimensionSetReadStrategy
Field Summary | |
---|---|
protected AssetTypeDef |
_def
|
protected ICS |
_ics
|
protected static org.apache.commons.logging.Log |
_logger
|
static java.util.List<java.lang.String> |
basicStandAttributes
|
protected java.util.List<java.lang.String> |
specialAttributes
|
Constructor Summary | |
---|---|
DimensionSetReadStrategy(ICS ics)
|
Method Summary | |
---|---|
protected boolean |
_allStandardAttributes(java.util.List<java.lang.String> attributeNames)
|
protected static void |
_checkElementCatalogPrivileges(ICS ics)
|
protected Query |
_checkQuery(Query query)
|
protected static void |
_checkSiteCatalogPrivileges(ICS ics)
|
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 boolean |
allStandardAttributes(java.util.List<java.lang.String> attributeNames)
|
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)
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. |
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 java.util.List<java.lang.String> specialAttributes
protected AssetTypeDef _def
protected ICS _ics
protected static final org.apache.commons.logging.Log _logger
public static java.util.List<java.lang.String> basicStandAttributes
Constructor Detail |
---|
public DimensionSetReadStrategy(ICS ics)
Method Detail |
---|
protected boolean _allStandardAttributes(java.util.List<java.lang.String> attributeNames)
protected void _retrieveSpecialAttributes(MutableAssetData data, IAsset asset, java.util.List<java.lang.String> attributeNames)
data
- the half constructed AssetDataasset
- the IAsset objectattributeNames
- the names of the attributes that user requested, null indicates all are requested.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
AssetDataReadStrategy
AssetId
from the IAsset
specified
read
in interface AssetDataReadStrategy
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 assetpublic java.lang.Iterable<MutableAssetData> read(java.util.List<AssetId> ids) throws AssetAccessException, AssetNotExistException
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.
AssetNotExistException
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 static void _checkSiteCatalogPrivileges(ICS ics) throws AssetAccessException
AssetAccessException
protected static void _checkElementCatalogPrivileges(ICS ics) throws AssetAccessException
AssetAccessException
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 boolean allStandardAttributes(java.util.List<java.lang.String> attributeNames)
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 |