Class NoPictureAdapter

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

public class NoPictureAdapter extends AbstractPictureAdapter
Picture adapter that creates no picture views at all.
  • Field Details

  • Constructor Details

    • NoPictureAdapter

      public NoPictureAdapter()
  • Method Details

    • doRotate

      public void doRotate(int angle)
    • doCrop

      public void doCrop(String coords)
    • getPictureFromTitle

      public Blob getPictureFromTitle(String title) throws PropertyException
      Throws:
      PropertyException
    • 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
    • fillPictureViews

      public boolean fillPictureViews(Blob blob, String filename, String title, List<Map<String,Object>> pictureConversions)
      Description copied from interface: PictureResourceAdapter
      Fill this Picture views using the given pictureConversions and blob to compute the picture views.

      The blob is converted to fit the defined pictureConversions.

    • preFillPictureViews

      public void preFillPictureViews(Blob blob, List<Map<String,Object>> pictureConversions, ImageInfo imageInfo)
      Description copied from interface: PictureResourceAdapter
      Pre-fill this Picture views using the given pictureConversions and blob.

      The blob is not converted and just stored as the Blob of the picture views.