Package com.adobe.cq.inbox.ui
Interface ThumbnailHelper
public interface ThumbnailHelper
The
ThumbnailHelper provides an interface to alter a
thumbnail path.
The implementation expects the provided request attribute thumbnail
to match the Regular Expression pattern (.*?)\.thumb\.\d+\.\d+\.(.*),
otherwise the passed in value will be returned. If the pattern matches the
width and height selectors are replaced by the provided
request attributes width and height. The default value for
the request attributes width and height is 319 if
omitted.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the altered thumbnail path containing the specified width and height or the original thumbnail path if not applicable.
-
Method Details
-
getThumbnail
String getThumbnail()Returns the altered thumbnail path containing the specified width and height or the original thumbnail path if not applicable.- Returns:
- Altered thumbnail path
-