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 int
getId()
Uniquely identifies a recommendation templatejava.lang.String
getName()
Get the name of thisRecommendationTemplate
java.lang.String
getScript()
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
Integer
value identifying thisRecommendationTemplate
-
getName
java.lang.String getName()
Get the name of thisRecommendationTemplate
- Returns:
- a
String
object 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
StringBuilder
containing the template script content
-
-