Interface AttachmentImporter


  • @Role
    public interface AttachmentImporter
    Interface used to import existing attachments into the content of a WYSIWYG editor.
    Since:
    9.8
    Version:
    $Id: 4bd6ad5717a8123e0e397f63b7ae2e2b0118f601 $
    • Method Detail

      • toHTML

        String toHTML​(AttachmentReference attachmentReference,
                      Map<String,​Object> parameters)
               throws Exception
        Generates the HTML needed to import the specified attachment.
        Parameters:
        attachmentReference - specifies the attachment to import
        parameters - import parameters
        Returns:
        the HTML to insert into the content of the WYSIWIYG editor
        Throws:
        Exception - if importing the specified attachment fails