Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.picture.api.adapters
Class DefaultPictureAdapter

java.lang.Object
  extended by org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter
      extended by org.nuxeo.ecm.platform.picture.api.adapters.DefaultPictureAdapter
All Implemented Interfaces:
PictureResourceAdapter

public class DefaultPictureAdapter
extends AbstractPictureAdapter


Field Summary
 
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
 
Constructor Summary
DefaultPictureAdapter()
           
 
Method Summary
 boolean createPicture(Blob blob, 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.
 
Methods inherited from class org.nuxeo.ecm.platform.picture.api.adapters.AbstractPictureAdapter
createPictureimpl, setDocumentModel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPictureAdapter

public DefaultPictureAdapter()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.