Interface PictureResourceAdapter

    • Method Detail

      • fillPictureViews

        boolean fillPictureViews​(Blob blob,
                                 String filename,
                                 String title,
                                 List<Map<String,​Object>> pictureConversions)
                          throws IOException
        Fill this Picture views using the given pictureConversions and blob to compute the picture views.

        The blob is converted to fit the defined pictureConversions.

        Throws:
        IOException
        Since:
        5.7
      • fillPictureViews

        default boolean fillPictureViews​(Blob blob,
                                         String filename,
                                         String title,
                                         List<Map<String,​Object>> pictureConversions,
                                         boolean outsideTx)
                                  throws IOException
        Fill this Picture views using the given pictureConversions and blob to compute the picture views.

        The blob is converted to fit the defined pictureConversions.

        Parameters:
        outsideTx - should potential conversions be done outside a transaction
        Throws:
        IOException
        Since:
        2021.22
      • preFillPictureViews

        void preFillPictureViews​(Blob blob,
                                 List<Map<String,​Object>> pictureConversions,
                                 ImageInfo imageInfo)
                          throws IOException
        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.

        Throws:
        IOException
        Since:
        5.7
      • doRotate

        void doRotate​(int angle)
      • doCrop

        void doCrop​(String coords)
      • 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
      • clearInfo

        void clearInfo()
        Clear the picture info.
        Since:
        2023