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 |
DefaultPictureAdapter
public DefaultPictureAdapter()
createPicture
public boolean createPicture(Blob blob,
String filename,
String title,
ArrayList<Map<String,Object>> pictureTemplates)
throws IOException,
ClientException
- Throws:
IOException
ClientException
doRotate
public void doRotate(int angle)
throws ClientException
- Throws:
ClientException
doCrop
public void doCrop(String coords)
throws ClientException
- Throws:
ClientException
getPictureFromTitle
public Blob getPictureFromTitle(String title)
throws PropertyException,
ClientException
- Throws:
PropertyException
ClientException
getFirstViewXPath
public 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 String getViewXPath(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 © 2011 Nuxeo SAS. All Rights Reserved.