public class MappedAssetAccessTemplate<T> extends AssetAccessTemplate
| Modifier and Type | Field and Description | 
|---|---|
protected COM.FutureTense.Interfaces.ICS | 
ics  | 
protected AssetMapper<T> | 
mapper  | 
| Constructor and Description | 
|---|
MappedAssetAccessTemplate(COM.FutureTense.Interfaces.ICS ics,
                         AssetMapper<T> mapper)  | 
| Modifier and Type | Method and Description | 
|---|---|
com.fatwire.assetapi.data.AssetId | 
currentId()  | 
Iterable<T> | 
query(com.fatwire.assetapi.query.Query query)
Queries the asset repository with the provided query. 
 | 
Iterable<T> | 
query(String assetType,
     String subType,
     String query)
Queries for a list of scattered assets. 
 | 
Iterable<T> | 
query(String assetType,
     String subType,
     String query,
     String... attributes)
Queries for a list of scattered assets. 
 | 
T | 
read(com.fatwire.assetapi.data.AssetId id)  | 
T | 
read(com.fatwire.assetapi.data.AssetId id,
    String... attributes)
Reads the attributes of an asset. 
 | 
Collection<com.fatwire.assetapi.data.AssetId> | 
readAssociatedAssetIds(String associationType)
Reads the list of associated assets based on the current c and cid cs
 variables. 
 | 
Collection<T> | 
readAssociatedAssets(com.fatwire.assetapi.data.AssetId id,
                    String associationType)
Reads the associated assets of an asset and returns them as a
 ScatteredAsset. 
 | 
Collection<T> | 
readAssociatedAssets(com.fatwire.assetapi.data.AssetId id,
                    String associationType,
                    String... attributes)
Reads the associated assets of an asset and returns them as a
 ScatteredAsset. 
 | 
T | 
readCurrent()
Reads the asset attributes of the asset identified by the current c and
 cid variables on the ics scope. 
 | 
T | 
readCurrent(String... attributes)
Reads the mentioned asset attributes of the asset identified by the
 current c and cid variables on the ics scope. 
 | 
Collection<com.fatwire.assetapi.data.AssetId> | 
readParentAssetIds(com.fatwire.assetapi.data.AssetId id,
                  String... associationName)
Read the assets that are parents of the current asset given the specified
 association name or names. 
 | 
Collection<com.fatwire.assetapi.data.AssetId> | 
readParentAssetIds(String... associationName)
Read the assets that are parents of the current asset given the specified
 association name or names. 
 | 
createAssetId, createAssetId, createNameQuery, findByName, findByName, getAssetDataManager, query, query, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAssets, readAssets, readAssets, readAssociatedAssetIds, readAssociatedAssets, readSite, readSiteInfoprotected final AssetMapper<T> mapper
protected final COM.FutureTense.Interfaces.ICS ics
public MappedAssetAccessTemplate(COM.FutureTense.Interfaces.ICS ics,
                         AssetMapper<T> mapper)
ics - public T read(com.fatwire.assetapi.data.AssetId id)
id - public T read(com.fatwire.assetapi.data.AssetId id, String... attributes)
id - attributes - public Collection<T> readAssociatedAssets(com.fatwire.assetapi.data.AssetId id, String associationType)
id - associationType - public Collection<com.fatwire.assetapi.data.AssetId> readAssociatedAssetIds(String associationType)
associationType - public Collection<com.fatwire.assetapi.data.AssetId> readParentAssetIds(com.fatwire.assetapi.data.AssetId id, String... associationName)
id - the child assetassociationName - the association name or names to be used to filter parent query.public Collection<com.fatwire.assetapi.data.AssetId> readParentAssetIds(String... associationName)
associationName - the association name or names to be used to filter parent query.public Collection<T> readAssociatedAssets(com.fatwire.assetapi.data.AssetId id, String associationType, String... attributes)
id - the parent assetassociationType - the name of the association or '-' for an unnamed
            associationattributes - the list of attributes to loadpublic T readCurrent()
public com.fatwire.assetapi.data.AssetId currentId()
public T readCurrent(String... attributes)
attributes - public Iterable<T> query(com.fatwire.assetapi.query.Query query)
query - public Iterable<T> query(String assetType, String subType, String query)
query - Copyright © 2010-2016 Oracle Corporation. All Rights Reserved.