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
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 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidrebuildContentsWithoutSiteWorkspace(ContainerProgressionTracker progressionTracker) Rebuild the live workspace for contents without site.voidrebuildLive(Site site, ContainerProgressionTracker progressionTracker) Rebuild the live of a site, index all sitemaps and reset cache.voidrebuildLiveWorkspace(ContainerProgressionTracker progressionTracker) Rebuild live workspace, index all sitemaps and reset cache.voidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
ROLE
Avalon Role. 
 - 
 - 
Constructor Details
- 
RebuildLiveComponent
public RebuildLiveComponent() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 - 
rebuildLiveWorkspace
Rebuild live workspace, index all sitemaps and reset cache.- Parameters:
 progressionTracker- The tracker of the progression- Throws:
 Exception- if an error occurs.
 - 
rebuildLive
Rebuild the live of a site, index all sitemaps and reset cache.- Parameters:
 site- The site to be rebuiltprogressionTracker- A progression tracker- Throws:
 Exception- if an error occurs.
 - 
rebuildContentsWithoutSiteWorkspace
public void rebuildContentsWithoutSiteWorkspace(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:
 progressionTracker- A progression tracker- Throws:
 Exception- if an error occurred
 
 -