Interface RecommendationTemplate

All Superinterfaces:
RecommendationsEntity

@ProviderType public interface RecommendationTemplate extends RecommendationsEntity
Abstraction of a Target Recommendation Template
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Uniquely identifies a recommendation template
    Get the name of this RecommendationTemplate
    Get the actual script content of this template.

    Methods inherited from interface com.adobe.cq.targetrecommendations.api.model.RecommendationsEntity

    toJson
  • Method Details

    • getId

      int getId()
      Uniquely identifies a recommendation template
      Returns:
      a Integer value identifying this RecommendationTemplate
    • getName

      String getName()
      Get the name of this RecommendationTemplate
      Returns:
      a String object containing this template's name
    • getScript

      String getScript()
      Get the actual script content of this template.
      Must be a valid Velocity script
      Returns:
      a StringBuilder containing the template script content