Interface RecommendationTemplate
-
- All Superinterfaces:
RecommendationsEntity
@ProviderType public interface RecommendationTemplate extends RecommendationsEntity
Abstraction of a Target Recommendation Template
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetId()Uniquely identifies a recommendation templatejava.lang.StringgetName()Get the name of thisRecommendationTemplatejava.lang.StringgetScript()Get the actual script content of this template.-
Methods inherited from interface com.adobe.cq.targetrecommendations.api.model.RecommendationsEntity
toJson
-
-
-
-
Method Detail
-
getId
int getId()
Uniquely identifies a recommendation template- Returns:
- a
Integervalue identifying thisRecommendationTemplate
-
getName
java.lang.String getName()
Get the name of thisRecommendationTemplate- Returns:
- a
Stringobject containing this template's name
-
getScript
java.lang.String getScript()
Get the actual script content of this template.
Must be a valid Velocity script- Returns:
- a
StringBuildercontaining the template script content
-
-