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.
-
-
Constructor Summary
Constructors Constructor Description RebuildLiveComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrebuildLive(Site site)Rebuild the live of a site, index all sitemaps and reset cache.voidrebuildLiveWorkspace()Rebuild live workspace, index all sitemaps and reset cache.voidservice(ServiceManager manager)-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
RebuildLiveComponent
public RebuildLiveComponent()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
rebuildLiveWorkspace
public void rebuildLiveWorkspace() throws Exception
Rebuild live workspace, index all sitemaps and reset cache.- Throws:
Exception- if an error occurs.
-
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.
-
-