|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.fatwire.gst.foundation.facade.assetapi.AssetAccessTemplate
com.fatwire.gst.foundation.facade.assetapi.asset.MappedAssetAccessTemplate<T>
public class MappedAssetAccessTemplate<T>
| Field Summary | |
|---|---|
protected COM.FutureTense.Interfaces.ICS |
ics
|
protected AssetMapper<T> |
mapper
|
| Constructor Summary | |
|---|---|
MappedAssetAccessTemplate(COM.FutureTense.Interfaces.ICS ics,
AssetMapper<T> mapper)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.fatwire.gst.foundation.facade.assetapi.AssetAccessTemplate |
|---|
createAssetId, createAssetId, createNameQuery, findByName, findByName, getAssetDataManager, query, query, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAsset, readAssets, readAssets, readAssets, readAssociatedAssetIds, readAssociatedAssets, readSite, readSiteInfo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final AssetMapper<T> mapper
protected final COM.FutureTense.Interfaces.ICS ics
| Constructor Detail |
|---|
public MappedAssetAccessTemplate(COM.FutureTense.Interfaces.ICS ics,
AssetMapper<T> mapper)
ics - | Method Detail |
|---|
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 load
public 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 -
public Iterable<T> query(String assetType,
String subType,
String query,
String... attributes)
assetType - subType - query - attributes -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||