public class DefaultPictureAdapter extends AbstractPictureAdapter
CONTENT_XPATH, depth, description, doc, FIELD_BYLINE, FIELD_CAPTION, FIELD_CREDIT, FIELD_DATELINE, FIELD_GENRE, FIELD_HEADLINE, FIELD_LANGUAGE, FIELD_ORIGIN, FIELD_SLUGLINE, FIELD_SOURCE, FIELD_SUBHEADLINE, FIELD_TYPAGE, fileContent, height, imageInfo, MEDIUM_SIZE, SCHEMA_NAME, SMALL_SIZE, THUMB_SIZE, type, VIEWS_PROPERTY, width| Constructor and Description | 
|---|
DefaultPictureAdapter()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
doCrop(String coords)  | 
void | 
doRotate(int angle)  | 
boolean | 
fillPictureViews(Blob blob,
                String filename,
                String title,
                List<Map<String,Object>> pictureConversions)
Fill this Picture views using the given  
pictureConversions and blob to compute the picture views. | 
String | 
getFirstViewXPath()
Convenience method to get the XPath of the first view of the Picture. 
 | 
Blob | 
getPictureFromTitle(String title)  | 
String | 
getViewXPath(String viewName)
Returns the XPath of the given view name, or  
null if the view is not found on the Picture. | 
protected String | 
getViewXPathFor(int index)  | 
void | 
preFillPictureViews(Blob blob,
                   List<Map<String,Object>> pictureConversions,
                   ImageInfo imageInfo)
Pre-fill this Picture views using the given  
pictureConversions and blob. | 
addPictureView, addPictureViews, addViews, clearViews, createPictureimpl, crop, fillPictureViews, getContentFromViews, getConversionService, getImageInfo, getImagingService, getPictureViews, getSession, setDocumentModel, setMetadatapublic DefaultPictureAdapter()
public boolean fillPictureViews(Blob blob, String filename, String title, List<Map<String,Object>> pictureConversions) throws IOException
PictureResourceAdapterpictureConversions and blob to compute the picture views.
 
 The blob is converted to fit the defined pictureConversions.
IOExceptionpublic void preFillPictureViews(Blob blob, List<Map<String,Object>> pictureConversions, ImageInfo imageInfo) throws IOException
PictureResourceAdapterpictureConversions and blob.
 
 The blob is not converted and just stored as the Blob of the picture views.
IOExceptionpublic void doRotate(int angle)
public Blob getPictureFromTitle(String title) throws PropertyException
PropertyExceptionpublic String getFirstViewXPath()
PictureResourceAdapterpublic String getViewXPath(String viewName)
PictureResourceAdapternull if the view is not found on the Picture.viewName - the view nameprotected String getViewXPathFor(int index)
Copyright © 2019 Nuxeo. All rights reserved.