org.nuxeo.ecm.platform.picture.api.adapters
Interface PictureResourceAdapter
- All Known Implementing Classes:
- AbstractPictureAdapter, DefaultPictureAdapter
public interface PictureResourceAdapter
Method Summary |
boolean |
createPicture(Blob fileContent,
java.lang.String filename,
java.lang.String title,
java.util.ArrayList<java.util.Map<java.lang.String,java.lang.Object>> pictureTemplates)
|
void |
doCrop(java.lang.String coords)
|
void |
doRotate(int angle)
|
java.lang.String |
getFirstViewXPath()
Convenience method to get the XPath of the first view of the Picture. |
Blob |
getPictureFromTitle(java.lang.String title)
|
java.lang.String |
getViewXPath(java.lang.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)
|
setDocumentModel
void setDocumentModel(DocumentModel doc)
createPicture
boolean createPicture(Blob fileContent,
java.lang.String filename,
java.lang.String title,
java.util.ArrayList<java.util.Map<java.lang.String,java.lang.Object>> pictureTemplates)
throws java.io.IOException,
ClientException
- Throws:
java.io.IOException
ClientException
doRotate
void doRotate(int angle)
throws ClientException
- Throws:
ClientException
doCrop
void doCrop(java.lang.String coords)
throws ClientException
- Throws:
ClientException
getPictureFromTitle
Blob getPictureFromTitle(java.lang.String title)
throws PropertyException,
ClientException
- Throws:
PropertyException
ClientException
getViewXPath
java.lang.String getViewXPath(java.lang.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
java.lang.String getFirstViewXPath()
- Convenience method to get the XPath of the first view of the Picture.
- Returns:
- the XPath of the first view
Copyright © 2010 Nuxeo SAS. All Rights Reserved.