public class PageDefinitionReadStrategy extends BasicAssetDataReadStrategy implements AssetDataReadStrategy
Modifier and Type | Field and Description |
---|---|
protected AssetTypeDef |
_def |
protected List<String> |
specialAttributes |
basicStandAttributes
Constructor and Description |
---|
PageDefinitionReadStrategy(ICS ics, String assettype) |
Modifier and Type | Method and Description |
---|---|
protected static void |
_checkElementCatalogPrivileges(ICS ics) |
protected static void |
_checkSiteCatalogPrivileges(ICS ics) |
MutableAssetData |
read(com.openmarket.xcelerate.interfaces.IAsset asset, AssetId id)
|
Iterable<MutableAssetData> |
read(List<AssetId> ids)
Reads asset data for all given
AssetId s. |
Iterable<MutableAssetData> |
read(Query query)
Reads all asset data that satisfies a given Query
|
MutableAssetData |
readAttributes(AssetId id, List<String> attributeNames)
Reads given set attribute data and returns an AssetData instance containing them.
|
protected void |
retrieveSpecialAttributes(MutableAssetData data, com.openmarket.xcelerate.interfaces.IAsset asset, List<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
|
allStandardAttributes, getAssetDefinitionType, performQuery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, read, read, readAttributes
protected AssetTypeDef _def
protected void retrieveSpecialAttributes(MutableAssetData data, com.openmarket.xcelerate.interfaces.IAsset asset, List<String> attributeNames)
data
- the half constructed AssetDataasset
- the IAsset objectattributeNames
- the names of the attributes that user requested, null indicates all are requested.public Iterable<MutableAssetData> read(Query query) throws AssetAccessException
AssetDataReadStrategy
read
in interface AssetDataReadStrategy
read
in class BasicAssetDataReadStrategy
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(com.openmarket.xcelerate.interfaces.IAsset asset, AssetId id) throws AssetAccessException
AssetDataReadStrategy
read
in interface AssetDataReadStrategy
read
in class BasicAssetDataReadStrategy
asset
- the asset where the asset will be read fromid
- AssetId to read forAssetAccessException
- is thrown when error met reading the data from the assetpublic Iterable<MutableAssetData> read(List<AssetId> ids) throws AssetAccessException, AssetNotExistException
AssetDataReadStrategy
AssetId
s.read
in interface AssetDataReadStrategy
read
in class BasicAssetDataReadStrategy
ids
- List of AssetIdsAssetAccessException
- is thrown when any of the AssetIds passed in does not exist. AssetAccessException also wraps any AssetExcptions thrown by the internal implementation.AssetNotExistException
- an AssetNotExistExceptionpublic MutableAssetData readAttributes(AssetId id, List<String> attributeNames) throws AssetAccessException
AssetDataReadStrategy
readAttributes
in interface AssetDataReadStrategy
readAttributes
in class BasicAssetDataReadStrategy
id
- AssetId to read attributes forattributeNames
- names of the attributesAssetAccessException
- 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
- an AssetNotExistExceptionprotected static void _checkSiteCatalogPrivileges(ICS ics) throws AssetAccessException
AssetAccessException
protected static void _checkElementCatalogPrivileges(ICS ics) throws AssetAccessException
AssetAccessException