com.fatwire.gst.foundation.facade.runtag.commercecontext
Class Recommendations

java.lang.Object
  extended by com.fatwire.gst.foundation.facade.runtag.commercecontext.Recommendations

public final class Recommendations
extends Object

Helper to execute the GetRecommendations tag in a assetapi/java friendly way.

Since:
Apr 28, 2011
Author:
Dolf.Dijkstra

Method Summary
static Collection<com.fatwire.assetapi.data.AssetId> getRecommendations(COM.FutureTense.Interfaces.ICS ics, com.fatwire.assetapi.data.AssetId id, int max)
          Easy-to-use utility method to return recommendations for the specified asset.
static Collection<com.fatwire.assetapi.data.AssetId> getRecommendations(COM.FutureTense.Interfaces.ICS ics, String collection, Collection<com.fatwire.assetapi.data.AssetId> input)
          Get the context-based recommendations from the input Collection.
static Collection<com.fatwire.assetapi.data.AssetId> getRecommendations(COM.FutureTense.Interfaces.ICS ics, String collection, int max)
          Easy-to-use utility method to return recommendations for the specified asset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRecommendations

public static Collection<com.fatwire.assetapi.data.AssetId> getRecommendations(COM.FutureTense.Interfaces.ICS ics,
                                                                               com.fatwire.assetapi.data.AssetId id,
                                                                               int max)
Easy-to-use utility method to return recommendations for the specified asset.

Parameters:
ics - context
id - AssetId of recommendation to return
max - max count
Returns:
Collection containing recommendations

getRecommendations

public static Collection<com.fatwire.assetapi.data.AssetId> getRecommendations(COM.FutureTense.Interfaces.ICS ics,
                                                                               String collection,
                                                                               int max)
Easy-to-use utility method to return recommendations for the specified asset.

Parameters:
ics - context
collection - the name of the recommendation
max - max count
Returns:
Collection containing recommendations
See Also:
IterableIListWrapper

getRecommendations

public static Collection<com.fatwire.assetapi.data.AssetId> getRecommendations(COM.FutureTense.Interfaces.ICS ics,
                                                                               String collection,
                                                                               Collection<com.fatwire.assetapi.data.AssetId> input)
Get the context-based recommendations from the input Collection.

Parameters:
ics -
collection -
input -
Returns:
the collection with recommended assets


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.