Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.picture.api.adapters
Interface PictureResourceAdapter

All Known Implementing Classes:
AbstractPictureAdapter, DefaultPictureAdapter

public interface PictureResourceAdapter


Method Summary
 boolean createPicture(Blob fileContent, 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.
 void setDocumentModel(DocumentModel doc)
           
 

Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.