public final class GetRecommendations extends AbstractTagRunner
Syntax
<COMMERCECONTEXT.GETRECOMMENDATION COLLECTION="recommendationname" [LIST="inputlist"] [VALUE="rating"] [MAXCOUNT="assetcount"] LISTVARNAME="assetlist" [FILTER="true|false"]/>
This tag returns a list containing up to the specified number of recommended assets. The recommendations, and the returned order of them, are based on the details of the referenced recommendation asset. This tag automatically calculates segment affinity and promotion affinity for the current visitor, if they have not yet been calculated. For information about creating recommendations, including context-based recommendations, see the CS Developer's Guide.
NOTE: This tag also causes compositional dependencies to be recorded for all assets that contribute to the returned lists, and may, under the right conditions, have the same effect as a RENDER.UNKNOWNDEPS tag.
list
Constructor and Description |
---|
GetRecommendations()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static COM.FutureTense.Interfaces.IList |
getRecommendations(COM.FutureTense.Interfaces.ICS ics,
long recId,
int max)
Deprecated.
replaced by
Recommendations.getRecommendations(ICS, String, int) . |
void |
setCollection(String collection)
Deprecated.
|
void |
setCollectionId(long collectionid)
Deprecated.
|
void |
setCollectionId(String collectionid)
Deprecated.
|
void |
setFilter(boolean filter)
Deprecated.
|
void |
setList(String inputList)
Deprecated.
|
void |
setListVarName(String assetlist)
Deprecated.
|
void |
setMaxCount(int assetcount)
Deprecated.
|
void |
setValue(int rating)
Deprecated.
|
bind, execute, handleError, postExecute, preExecute
public void setCollection(String collection)
collection
- Input parameter. Name of the recommendation. The sort
and selection criteria defined in the recommendation are used
to create the list of possible assets. You can constrain this
list by using the MAXCOUNT argument, defined below. If there
are any promotions in place that override this recommendation,
it substitutes the name of the promotion, instead.public void setCollectionId(String collectionid)
collectionid
- ID of the recommendation. The sort and selection
criteria defined in the recommendation are used to create the
list of possible assets. You can constrain this list by using
the MAXCOUNT argument, defined below. If there are any
promotions in place that override this recommendation, it
substitutes the name of the promotion, instead.public void setCollectionId(long collectionid)
collectionid
- ID of the recommendation. The sort and selection
criteria defined in the recommendation are used to create the
list of possible assets. You can constrain this list by using
the MAXCOUNT argument, defined below. If there are any
promotions in place that override this recommendation, it
substitutes the name of the promotion, instead.public void setList(String inputList)
inputList
- Input parameter. name of the list of assets you want to
be used as the input for the calculation. This argument is
applicable only if the recommendation named by COLLECTION is a
context-based recommendation. Columns are assettype and
assetid.public void setValue(int rating)
rating
- Input parameter. Default rating for assets that do not have
one. If you do not declare a value, unrated assets are
assigned a default rating of 50 on a scale of 1-100.public void setMaxCount(int assetcount)
assetcount
- Input parameter. Maximum number of assets to return.
Use this value to constrain the list of recommended assets.public void setListVarName(String assetlist)
assetlist
- Input and output parameter. As input, name you want to
assign to the list of assets returned on output. Its columns
are: assettype and assetid.public void setFilter(boolean filter)
filter
- Input parameter. A Boolean value: true specifies that no
assets in the input list can be returned as output; false
(default) allows input assets to be returned as output.@Deprecated public static COM.FutureTense.Interfaces.IList getRecommendations(COM.FutureTense.Interfaces.ICS ics, long recId, int max)
Recommendations.getRecommendations(ICS, String, int)
.ics
- contextrecId
- id of recommendation to returnmax
- max countIterableIListWrapper
Copyright © 2016–2017. All rights reserved.