Package com.day.cq.personalization
Class TeaserUtils
java.lang.Object
com.day.cq.personalization.TeaserUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns a image for the teaser, based on the following logic: check for page image check for first par image component check for first par textimage component fallback, return page template thumbnailstatic StringgetImage(SlingHttpServletRequest request, Page teaser) Returns a image for the teaser, based on the following logic: check for page image check for first par image component check for first par textimage component fallback, return page template thumbnail
-
Constructor Details
-
TeaserUtils
public TeaserUtils()
-
-
Method Details
-
getImage
Returns a image for the teaser, based on the following logic:- check for page image
- check for first par image component
- check for first par textimage component
- fallback, return page template thumbnail
- Parameters:
teaser- Teaser page- Returns:
- A URL to the image.
-
getImage
Returns a image for the teaser, based on the following logic:- check for page image
- check for first par image component
- check for first par textimage component
- fallback, return page template thumbnail
- Parameters:
request- SlingHttpServletRequest used for resource mappingteaser- Teaser page- Returns:
- A URL to the image.
-