Package org.ametys.web.live
Class RebuildLiveComponent
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.live.RebuildLiveComponent
-
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
public class RebuildLiveComponent extends AbstractLogEnabled implements 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 Summary
Fields Modifier and Type Field Description private PageElementCache
_inputDataCache
private LivePopulatorExtensionPoint
_livePopulatorExtensionPoint
private Repository
_repository
private SiteIndexer
_siteIndexer
private SiteManager
_siteManager
private SitePopulator
_sitePopulator
private SkinsManager
_skinsManager
private WorkspaceIndexer
_workspaceIndexer
private PageElementCache
_zoneItemCache
static String
ROLE
Avalon Role.
-
Constructor Summary
Constructors Constructor Description RebuildLiveComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_clearSiteCache(Site site)
private List<String>
_populateLiveWorkspace()
private void
_populateSite(Site site, Skin skin)
private List<String>
_reindexLiveWorkspace()
private void
_reindexSite(Site site)
void
rebuildLive(Site site)
Rebuild the live of a site, index all sitemaps and reset cache.void
rebuildLiveWorkspace()
Rebuild live workspace, index all sitemaps and reset cache.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_repository
private Repository _repository
-
_livePopulatorExtensionPoint
private LivePopulatorExtensionPoint _livePopulatorExtensionPoint
-
_sitePopulator
private SitePopulator _sitePopulator
-
_siteIndexer
private SiteIndexer _siteIndexer
-
_workspaceIndexer
private WorkspaceIndexer _workspaceIndexer
-
_siteManager
private SiteManager _siteManager
-
_skinsManager
private SkinsManager _skinsManager
-
_inputDataCache
private PageElementCache _inputDataCache
-
_zoneItemCache
private PageElementCache _zoneItemCache
-
-
Constructor Detail
-
RebuildLiveComponent
public RebuildLiveComponent()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
rebuildLiveWorkspace
public void rebuildLiveWorkspace() throws Exception
Rebuild live workspace, index all sitemaps and reset cache.- Throws:
Exception
- if an error occurs.
-
_populateLiveWorkspace
private List<String> _populateLiveWorkspace()
-
_reindexLiveWorkspace
private List<String> _reindexLiveWorkspace()
-
rebuildLive
public void rebuildLive(Site site) throws Exception
Rebuild the live of a site, index all sitemaps and reset cache.- Parameters:
site
- The site to be rebuilt- Throws:
Exception
- if an error occurs.
-
_populateSite
private void _populateSite(Site site, Skin skin) throws Exception
- Throws:
Exception
-
_reindexSite
private void _reindexSite(Site site) throws Exception
- Throws:
Exception
-
_clearSiteCache
private void _clearSiteCache(Site site) throws Exception
- Throws:
Exception
-
-