Changes for page Wiki Importer Enhancements
on 2009/10/11 07:06
on 2009/10/11 07:50
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,24 +2,26 @@ 1 -= Wiki Importer Enhancements = 2 2 3 - Asthe existingWiki Importer( [[GSOCPROJECT- SANDBOX >> http://svn.xwiki.org/svnroot/xwiki/sandbox/gsoc/importexport/]] ) have few set backs in architecture, i would like to make a proposal to modify and enhance to make it better.2 +== Wiki Importer API == 4 4 5 5 5 +Wiki Importer has two methods, 6 +*. **parse(List<InputStream> in)::Wiki** takes the list of InputStreams like XML's, Zips etc which varies from Wiki to Wiki parses the data to return a Generic Wiki Model which can be used to import the files into XWiki using our importer or can create his own. 7 +For eg: In case of a MediaWiki XML dump, the xml files and zip file with attachments can be passed as a list of InputStreams.They are parsed one by one on demand and returned as a Wiki Model. 6 6 9 +*. ** importWiki(Wiki wiki,WikiImporterConfiguration config) :: List<Summary>** takes in the Wiki Model along with configuration details (preserving history, default spaces and other customisation) and import the same into XWiki based on it. 7 7 8 -== Wiki Importer API == 9 - 10 10 [[image:WikiImporter.png]] 11 11 12 - 13 -WikiImporter Configuration : 13 +**WikiImporter Configuration :**Uses java.util.properties. 14 14 [[image:Configuration.png]] 15 15 16 -Summary : 16 +**Summary :** The result of import process is represented by Summary. 17 17 [[image:Summary.png]] 18 18 19 19 20 20 == Wiki Model API == 21 21 22 -The revised Wiki Model API. 22 +The revised Wiki Model API,every Wiki had its own Wiki model which implements this Wiki Model API which adheres to XWiki standards. 23 23 24 24 [[image:WikiModelAPI.png]] 25 + 26 +