public interface PictureResourceAdapter
Modifier and Type | Method and Description |
---|---|
boolean |
createPicture(Blob fileContent,
String filename,
String title,
ArrayList<Map<String,Object>> pictureTemplates) |
void |
doCrop(String coords) |
void |
doRotate(int angle) |
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 |
setDocumentModel(DocumentModel doc) |
void setDocumentModel(DocumentModel doc)
boolean createPicture(Blob fileContent, String filename, String title, ArrayList<Map<String,Object>> pictureTemplates) throws IOException, ClientException
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 © 2012 Nuxeo SA. All Rights Reserved.