org.xwiki.gwt.wysiwyg.client.plugin.importer
Interface ImportServiceAsync


public interface ImportServiceAsync

Service interface used on the client by the importer plug-in. It should have all the methods from ImportService with an additional AsyncCallback parameter. This is specific to GWT's architecture.

Version:
$Id: 037bd59426d285872f9eedf0ca4f318de8adf511 $

Method Summary
 void cleanOfficeHTML(String htmlPaste, String cleanerHint, Map<String,String> cleaningParams, com.google.gwt.user.client.rpc.AsyncCallback<String> async)
          Makes a request to the server to clean the given HTML fragment which comes from an office application.
 void officeToXHTML(Attachment attachment, Map<String,String> cleaningParams, com.google.gwt.user.client.rpc.AsyncCallback<String> async)
          Imports the given office attachment into XHTML 1.0.
 

Method Detail

cleanOfficeHTML

void cleanOfficeHTML(String htmlPaste,
                     String cleanerHint,
                     Map<String,String> cleaningParams,
                     com.google.gwt.user.client.rpc.AsyncCallback<String> async)
Makes a request to the server to clean the given HTML fragment which comes from an office application.

Parameters:
htmlPaste - dirty HTML pasted by the user
cleanerHint - role hint for which cleaner to be used
cleaningParams - additional parameters to be used when cleaning
async - the call-back to be used for notifying the caller after receiving the response from the server

officeToXHTML

void officeToXHTML(Attachment attachment,
                   Map<String,String> cleaningParams,
                   com.google.gwt.user.client.rpc.AsyncCallback<String> async)
Imports the given office attachment into XHTML 1.0.

Parameters:
attachment - office attachment to be imported into XHTML 1.0
cleaningParams - additional parameters for the import operation
async - the call-back to be used for notifying the caller after receiving the response from the server


Copyright © 2004–2015 XWiki. All rights reserved.