public class PageContentMigrationServiceImpl extends Object implements org.exoplatform.wiki.migration.PageContentMigrationService
| Constructor and Description |
|---|
PageContentMigrationServiceImpl(org.exoplatform.wiki.rendering.RenderingService renderingService,
org.exoplatform.wiki.service.WikiService wikiService,
org.exoplatform.commons.persistence.impl.EntityManagerService entityManagerService,
org.exoplatform.container.configuration.ConfigurationManager configurationManager,
org.exoplatform.wiki.jpa.dao.PageDAO pageDAO,
org.exoplatform.wiki.jpa.dao.PageVersionDAO pageVersionDAO,
org.exoplatform.wiki.jpa.dao.TemplateDAO templateDAO) |
| Modifier and Type | Method and Description |
|---|---|
String |
convertContent(String xwikiContent) |
void |
migrateAllPages()
Migrate all pages from XWiki 2.0 syntax to HTML
|
void |
migrateAllPagesTemplates()
Migrate all pages templates from XWiki 2.0 syntax to HTML
|
void |
migrateAllPagesVersions()
Migrate all versions of all pages from XWiki 2.0 syntax to HTML
|
void |
migratePage(org.exoplatform.wiki.mow.api.Page page)
Migrate page from XWiki 2.0 syntax to HTML
|
protected void |
setWikiContext(org.exoplatform.wiki.mow.api.Page page)
Set the wiki context in the execution environment to let know XWiki the context (wiki type, wiki owner, ...)
|
public PageContentMigrationServiceImpl(org.exoplatform.wiki.rendering.RenderingService renderingService,
org.exoplatform.wiki.service.WikiService wikiService,
org.exoplatform.commons.persistence.impl.EntityManagerService entityManagerService,
org.exoplatform.container.configuration.ConfigurationManager configurationManager,
org.exoplatform.wiki.jpa.dao.PageDAO pageDAO,
org.exoplatform.wiki.jpa.dao.PageVersionDAO pageVersionDAO,
org.exoplatform.wiki.jpa.dao.TemplateDAO templateDAO)
public void migratePage(org.exoplatform.wiki.mow.api.Page page)
throws Exception
migratePage in interface org.exoplatform.wiki.migration.PageContentMigrationServicepage - Page to migrateorg.xwiki.component.manager.ComponentLookupExceptionorg.xwiki.rendering.converter.ConversionExceptionorg.exoplatform.wiki.WikiExceptionExceptionpublic void migrateAllPages()
public void migrateAllPagesVersions()
public void migrateAllPagesTemplates()
protected void setWikiContext(org.exoplatform.wiki.mow.api.Page page)
throws org.xwiki.component.manager.ComponentLookupException,
org.xwiki.component.manager.ComponentRepositoryException
page - org.xwiki.component.manager.ComponentLookupExceptionorg.xwiki.component.manager.ComponentRepositoryExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.