Class RebuildLiveComponent

All Implemented Interfaces:
LogEnabled, Component, Serviceable

Component for rebuild the live workspace, reindex all sitemaps and reset cache. Provide a way to rebuild the full live workspace, or only the live of a site.
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon Role.
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • rebuildLiveWorkspace

      public void rebuildLiveWorkspace(boolean reindex, ContainerProgressionTracker progressionTracker) throws Exception
      Rebuild live workspace, index all sitemaps and reset cache.
      Parameters:
      reindex - true to force reindexation at the end of the rebuild
      progressionTracker - The tracker of the progression
      Throws:
      Exception - if an error occurs.
    • rebuildLive

      public void rebuildLive(Site site, boolean reindex, ContainerProgressionTracker progressionTracker) throws Exception
      Rebuild the live of a site, index all sitemaps and reset cache.
      Parameters:
      site - The site to be rebuilt
      reindex - true to force reindexation at the end of the rebuild
      progressionTracker - A progression tracker
      Throws:
      Exception - if an error occurs.
    • rebuildContentsWithoutSiteWorkspace

      public void rebuildContentsWithoutSiteWorkspace(boolean reindex, ContainerProgressionTracker progressionTracker) throws Exception
      Rebuild the live workspace for contents without site. More precisely, this method will synchronize and reindex all contents located at '/ametys:root/ametys:contents' and '/ametys:root/ametys:plugins/<pluginName>/ametys:contents'
      Parameters:
      reindex - true to force reindexation at the end of the rebuild
      progressionTracker - A progression tracker
      Throws:
      Exception - if an error occurred