public abstract class AbstractGadgetToPortletPlugin
extends org.exoplatform.commons.upgrade.UpgradeProductPlugin
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_WORKSPACE_NAME |
protected ExecutorService |
executor |
protected static org.chromattic.ext.format.BaseEncodingObjectFormatter |
formatter |
protected org.exoplatform.portal.pom.data.ModelDataStorage |
modelDataStorage |
protected org.exoplatform.portal.mop.navigation.NavigationService |
navigationService |
protected org.exoplatform.portal.mop.page.PageService |
pageService |
protected org.exoplatform.services.jcr.RepositoryService |
repoService |
protected String |
workspaceName |
asyncUpgradeExecution, executeOnlyOnce, OLD_PRODUCT_GROUP_ID, oldProductGroupId, PRODUCT_GROUP_ID, productGroupId, targetVersion, UPGRADE_COMPLETED_STATUS, UPGRADE_PLUGIN_ASYNC, UPGRADE_PLUGIN_ENABLE, UPGRADE_PLUGIN_EXECUTE_ONCE_PARAMETER, UPGRADE_PLUGIN_EXECUTION_ORDER, UPGRADE_PLUGIN_TARGET_PARAMETER| Constructor and Description |
|---|
AbstractGadgetToPortletPlugin(org.exoplatform.container.xml.InitParams initParams) |
AbstractGadgetToPortletPlugin(org.exoplatform.commons.api.settings.SettingService settingService,
org.exoplatform.portal.pom.data.ModelDataStorage modelDataStorage,
org.exoplatform.portal.mop.page.PageService pageService,
org.exoplatform.portal.mop.navigation.NavigationService navigationService,
org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
protected javax.jcr.query.QueryResult |
exeQuery(String query) |
protected Set<org.exoplatform.portal.mop.page.PageKey> |
findPagesContainGadget(org.exoplatform.portal.mop.SiteType type) |
protected Set<org.exoplatform.portal.pom.data.PortalKey> |
findPortalContainGadgets(org.exoplatform.portal.mop.SiteType type) |
protected Set<org.exoplatform.portal.pom.data.PortalKey> |
findUserSites() |
protected org.exoplatform.portal.pom.data.ComponentData |
migrateComponent(org.exoplatform.portal.pom.data.ComponentData component,
String name,
boolean isPortal) |
protected List<org.exoplatform.portal.pom.data.ComponentData> |
migrateComponents(List<org.exoplatform.portal.pom.data.ComponentData> components,
String name,
boolean isPortal) |
protected org.exoplatform.portal.pom.data.ContainerData |
migrateContainer(org.exoplatform.portal.pom.data.ContainerData container,
String name,
boolean isPortal) |
protected void |
migratePage(org.exoplatform.portal.mop.page.PageContext page) |
protected org.exoplatform.portal.pom.data.PageData |
migratePage(org.exoplatform.portal.pom.data.PageData pageData,
String pageName) |
protected void |
migratePages(org.exoplatform.portal.mop.SiteType siteType) |
protected void |
migratePortals(org.exoplatform.portal.mop.SiteType type) |
afterUpgrade, beforeUpgrade, equals, getPluginExecutionOrder, getProductGroupId, getTargetVersion, getValue, hashCode, isAsyncUpgradeExecution, isEnabled, isExecuteOnlyOnce, processUpgrade, shouldProceedToUpgrade, shouldProceedToUpgrade, storeValueForPluginprotected static final org.chromattic.ext.format.BaseEncodingObjectFormatter formatter
protected static final String DEFAULT_WORKSPACE_NAME
protected ExecutorService executor
protected org.exoplatform.portal.pom.data.ModelDataStorage modelDataStorage
protected org.exoplatform.portal.mop.page.PageService pageService
protected org.exoplatform.portal.mop.navigation.NavigationService navigationService
protected org.exoplatform.services.jcr.RepositoryService repoService
protected String workspaceName
public AbstractGadgetToPortletPlugin(org.exoplatform.commons.api.settings.SettingService settingService,
org.exoplatform.portal.pom.data.ModelDataStorage modelDataStorage,
org.exoplatform.portal.mop.page.PageService pageService,
org.exoplatform.portal.mop.navigation.NavigationService navigationService,
org.exoplatform.services.jcr.RepositoryService repoService,
org.exoplatform.container.xml.InitParams initParams)
public AbstractGadgetToPortletPlugin(org.exoplatform.container.xml.InitParams initParams)
protected void migratePortals(org.exoplatform.portal.mop.SiteType type)
protected void migratePages(org.exoplatform.portal.mop.SiteType siteType)
protected void migratePage(org.exoplatform.portal.mop.page.PageContext page)
throws Exception
Exceptionprotected org.exoplatform.portal.pom.data.PageData migratePage(org.exoplatform.portal.pom.data.PageData pageData,
String pageName)
throws Exception
Exceptionprotected List<org.exoplatform.portal.pom.data.ComponentData> migrateComponents(List<org.exoplatform.portal.pom.data.ComponentData> components, String name, boolean isPortal) throws Exception
Exceptionprotected org.exoplatform.portal.pom.data.ComponentData migrateComponent(org.exoplatform.portal.pom.data.ComponentData component,
String name,
boolean isPortal)
throws Exception
Exceptionprotected org.exoplatform.portal.pom.data.ContainerData migrateContainer(org.exoplatform.portal.pom.data.ContainerData container,
String name,
boolean isPortal)
throws Exception
Exceptionprotected Set<org.exoplatform.portal.pom.data.PortalKey> findPortalContainGadgets(org.exoplatform.portal.mop.SiteType type)
protected Set<org.exoplatform.portal.pom.data.PortalKey> findUserSites()
protected Set<org.exoplatform.portal.mop.page.PageKey> findPagesContainGadget(org.exoplatform.portal.mop.SiteType type)
protected javax.jcr.query.QueryResult exeQuery(String query) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.