public interface PictureResourceAdapter
Modifier and Type | Method and Description |
---|---|
boolean |
createPicture(Blob fileContent,
String filename,
String title,
ArrayList<Map<String,Object>> pictureConversions)
Deprecated.
since 5.7. Use
fillPictureViews(org.nuxeo.ecm.core.api.Blob, String, String, java.util.ArrayList) instead. |
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, ArrayList) by passing null instead of
statics picture templates. |
boolean |
fillPictureViews(Blob blob,
String filename,
String title,
ArrayList<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)
@Deprecated boolean createPicture(Blob fileContent, String filename, String title, ArrayList<Map<String,Object>> pictureConversions) throws IOException, ClientException
fillPictureViews(org.nuxeo.ecm.core.api.Blob, String, String, java.util.ArrayList)
instead.IOException
ClientException
boolean fillPictureViews(Blob blob, String filename, String title, ArrayList<Map<String,Object>> pictureConversions) throws IOException, ClientException
pictureConversions
and blob
to compute the picture views.
The blob
is converted to fit the defined pictureConversions
.
IOException
ClientException
boolean fillPictureViews(Blob blob, String filename, String title) throws IOException, ClientException
fillPictureViews(Blob, String, String, ArrayList)
by passing null instead of
statics picture templates. IOException
ClientException
PictureResourceAdapter#fillPictureViews(Blob, String, String, ArrayList)}
void preFillPictureViews(Blob blob, List<Map<String,Object>> pictureConversions, ImageInfo imageInfo) throws IOException, ClientException
pictureConversions
and blob
.
The blob
is not converted and just stored as the Blob of the picture views.
IOException
ClientException
void doRotate(int angle) throws ClientException
ClientException
void doCrop(String coords) throws ClientException
ClientException
Blob getPictureFromTitle(String title) throws PropertyException, ClientException
PropertyException
ClientException
String getViewXPath(String viewName)
null
if the view is not found on the Picture.viewName
- the view nameString getFirstViewXPath()
Copyright © 2015 Nuxeo SA. All rights reserved.