com.xpn.xwiki.wysiwyg.server.plugin.importer
Class XWikiImportService
java.lang.Object
com.xpn.xwiki.wysiwyg.server.plugin.importer.XWikiImportService
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService, ImportService
public class XWikiImportService
- extends java.lang.Object
- implements ImportService
XWiki specific implementation of ImportService.
- Version:
- $Id: XWikiImportService.java 26056 2010-01-06 18:11:43Z vmassol $
|
Method Summary |
java.lang.String |
cleanOfficeHTML(java.lang.String htmlPaste,
java.lang.String cleanerHint,
java.util.Map<java.lang.String,java.lang.String> cleaningParams)
Cleans dirty HTML content produced from an office application like MsWord, MsExcel, OpenOffice Writer etc. |
java.lang.String |
officeToXHTML(Attachment attachment,
java.util.Map<java.lang.String,java.lang.String> cleaningParams)
Imports the given office attachment into XHTML 1.0. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XWikiImportService
public XWikiImportService()
cleanOfficeHTML
public java.lang.String cleanOfficeHTML(java.lang.String htmlPaste,
java.lang.String cleanerHint,
java.util.Map<java.lang.String,java.lang.String> cleaningParams)
- Cleans dirty HTML content produced from an office application like MsWord, MsExcel, OpenOffice Writer etc. This
method is primarily utilized by the office importer WYSIWYG plug-in.
- Specified by:
cleanOfficeHTML in interface ImportService
- Parameters:
htmlPaste - dirty HTML pasted by the usercleanerHint - role hint for which cleaner to be usedcleaningParams - additional parameters to be used when cleaning
- Returns:
- the cleaned HTML content
- See Also:
ImportService.cleanOfficeHTML(String, String, Map)
officeToXHTML
public java.lang.String officeToXHTML(Attachment attachment,
java.util.Map<java.lang.String,java.lang.String> cleaningParams)
- Imports the given office attachment into XHTML 1.0. This method returns the resulting XHTML content while if
there are non-textual content in the office attachment, they will be attached to the owner wiki page. Note that
this operation does not alter the content of the wiki page.
- Specified by:
officeToXHTML in interface ImportService
- Parameters:
attachment - office attachment to be imported into XHTML 1.0.cleaningParams - additional parameters for the import operation.
- Returns:
- the XHTML result from the office importer.
- See Also:
ImportService.officeToXHTML(Attachment, Map)
Copyright © 2004-2010 XWiki. All Rights Reserved.