public class PrefixRenditionPicker extends Object implements DriveRenditionPicker
RenditionPicker that picks the first rendition found which name
starts with a given prefix.| Constructor and Description |
|---|
PrefixRenditionPicker() |
PrefixRenditionPicker(String startsWith)
Picks the first rendition found which name starts with the given prefix.
|
PrefixRenditionPicker(String prefix,
boolean returnOriginal)
Picks the first rendition found which name starts with the given prefix.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId() |
Resource |
getPreviewRendition(List<Resource> renditions) |
Resource |
getRendition(Iterator<Resource> renditions) |
Resource |
getThumbnailRendition(List<Resource> renditions) |
public PrefixRenditionPicker(String startsWith)
null will be returned.startsWith - the name prefix to matchpublic PrefixRenditionPicker()
public PrefixRenditionPicker(String prefix, boolean returnOriginal)
null).prefix - the name prefix to matchreturnOriginal - if true, will return the original rendition if no
matching rendition was found, otherwise the picker will return
nullpublic String getId()
public Resource getPreviewRendition(List<Resource> renditions)
getPreviewRendition in interface DriveRenditionPickerpublic Resource getThumbnailRendition(List<Resource> renditions)
getThumbnailRendition in interface DriveRenditionPicker"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"