org.nuxeo.ecm.platform.picture.api.adapters
Interface PictureResourceAdapter
- All Known Implementing Classes:
- AbstractPictureAdapter, DefaultPictureAdapter
public interface PictureResourceAdapter
setDocumentModel
void setDocumentModel(DocumentModel doc)
createPicture
boolean createPicture(Blob fileContent,
String filename,
String title,
ArrayList<Map<String,Object>> pictureTemplates)
throws IOException,
ClientException
- Throws:
IOException
ClientException
doRotate
void doRotate(int angle)
throws ClientException
- Throws:
ClientException
doCrop
void doCrop(String coords)
throws ClientException
- Throws:
ClientException
getPictureFromTitle
Blob getPictureFromTitle(String title)
throws PropertyException,
ClientException
- Throws:
PropertyException
ClientException
getViewXPath
String getViewXPath(String viewName)
- Returns the XPath of the given view name, or
null
if
the view is not found on the Picture.
- Parameters:
viewName
- the view name
getFirstViewXPath
String getFirstViewXPath()
- Convenience method to get the XPath of the first view of the Picture.
- Returns:
- the XPath of the first view
Copyright © 2011 Nuxeo SAS. All Rights Reserved.