public interface PictureResourceAdapter
Modifier and Type | Method and Description |
---|---|
void |
doCrop(String coords) |
void |
doRotate(int angle) |
boolean |
fillPictureViews(Blob blob,
String filename,
String title)
This method just delegate the job to
fillPictureViews(Blob, String, String, List) by passing null instead of
statics picture templates. |
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. |
void |
preFillPictureViews(Blob blob,
List<Map<String,Object>> pictureConversions,
ImageInfo imageInfo)
Pre-fill this Picture views using the given
pictureConversions and blob . |
void |
setDocumentModel(DocumentModel doc) |
void setDocumentModel(DocumentModel doc)
boolean fillPictureViews(Blob blob, String filename, String title, List<Map<String,Object>> pictureConversions) throws IOException
pictureConversions
and blob
to compute the picture views.
The blob
is converted to fit the defined pictureConversions
.
IOException
boolean fillPictureViews(Blob blob, String filename, String title) throws IOException
fillPictureViews(Blob, String, String, List)
by passing null instead of
statics picture templates. IOException
PictureResourceAdapter#fillPictureViews(Blob, String, String, List)}
void preFillPictureViews(Blob blob, List<Map<String,Object>> pictureConversions, ImageInfo imageInfo) throws IOException
pictureConversions
and blob
.
The blob
is not converted and just stored as the Blob of the picture views.
IOException
void doRotate(int angle)
Blob getPictureFromTitle(String title) throws PropertyException
PropertyException
String getViewXPath(String viewName)
null
if the view is not found on the Picture.viewName
- the view nameString getFirstViewXPath()
Copyright © 2017 Nuxeo. All rights reserved.