Last modified by Arun Reddy on 2009/10/12 08:17

From version Icon 6.11 Icon
edited by Arun Reddy
on 2009/10/11 09:10
Change comment: Upload new image <a href="/xwiki/bin/downloadrev/Import+Export+other+wikis/Wiki+Importer+Enhancement/WikiImporter.png?rev=1.2">WikiImporter.png</a>
To version Icon 6.12 Icon
edited by Arun Reddy
on 2009/10/11 09:11
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -4,24 +4,17 @@
4 4  
5 5  
6 6  Wiki Importer has two methods,
7 -*. **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.
8 -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.
9 9  
10 -*. ** 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.
8 +* **import(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 Abstract Wiki Model which can be used in import to XWiki.
11 11  
10 +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.
11 +
12 12  [[image:WikiImporter.png]]
13 13  
14 -**WikiImporter Configuration :**Uses java.util.properties.
15 -[[image:Configuration.png]]
16 16  
17 -**Summary :** The result of import process is represented by Summary.
18 -[[image:Summary.png]]
19 -
20 -
21 21  == Wiki Model API ==
22 22  
23 -The revised Wiki Model API,every Wiki had its own Wiki model which implements this Wiki Model API which adheres to XWiki standards.
17 +The revised Wiki Model API,every Wiki implements this Abstract Wiki Model API which adheres to XWiki standards.
24 24  
25 25  [[image:WikiModelAPI.png]]
26 26  
27 -