org.nuxeo.ecm.platform.picture.api.adapters
Class DefaultPictureAdapter
java.lang.Object
org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter
org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter
- All Implemented Interfaces:
- PictureResourceAdapter
public class DefaultPictureAdapter
- extends AbstractPictureAdapter
Fields inherited from class org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter |
CONTENT_XPATH, FIELD_BYLINE, FIELD_CAPTION, FIELD_CREDIT, FIELD_DATELINE, FIELD_GENRE, FIELD_HEADLINE, FIELD_LANGUAGE, FIELD_ORIGIN, FIELD_SLUGLINE, FIELD_SOURCE, FIELD_SUBHEADLINE, FIELD_TYPAGE, MEDIUM_SIZE, SCHEMA_NAME, THUMB_SIZE, VIEWS_PROPERTY |
Method Summary |
boolean |
createPicture(Blob blob,
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPictureAdapter
public DefaultPictureAdapter()
createPicture
public boolean createPicture(Blob blob,
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
public void doRotate(int angle)
throws ClientException
- Throws:
ClientException
doCrop
public void doCrop(java.lang.String coords)
throws ClientException
- Throws:
ClientException
getPictureFromTitle
public Blob getPictureFromTitle(java.lang.String title)
throws PropertyException,
ClientException
- Throws:
PropertyException
ClientException
getFirstViewXPath
public java.lang.String getFirstViewXPath()
- Description copied from interface:
PictureResourceAdapter
- Convenience method to get the XPath of the first view of the Picture.
- Returns:
- the XPath of the first view
getViewXPath
public java.lang.String getViewXPath(java.lang.String viewName)
- Description copied from interface:
PictureResourceAdapter
- Returns the XPath of the given view name, or
null
if
the view is not found on the Picture.
- Parameters:
viewName
- the view name
Copyright © 2010 Nuxeo SAS. All Rights Reserved.