Package org.ametys.web.live
Class SitePopulator
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.web.live.SitePopulator
-
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
public class SitePopulator extends AbstractLogEnabled implements Serviceable, Component
Component for populating the live workspace site by site.
-
-
Constructor Summary
Constructors Constructor Description SitePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_populate(Session liveSession, Node clonedSitemapsNode, Sitemap sitemap, Skin skin)
Populates a sitemap.protected void
_populate(Session liveSession, Site site, Skin skin)
Populates a sitevoid
populate(Site site, Skin skin)
Populates the live workspace.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
SitePopulator
public SitePopulator()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
populate
public void populate(Site site, Skin skin) throws Exception
Populates the live workspace.- Parameters:
site
- the site to populate.skin
- the site skin model- Throws:
Exception
- if an error occurs.
-
_populate
protected void _populate(Session liveSession, Site site, Skin skin) throws RepositoryException
Populates a site- Parameters:
liveSession
- the live workspace session.site
- the site to populate.skin
- the site skin model- Throws:
RepositoryException
- if an error occurs.
-
_populate
protected void _populate(Session liveSession, Node clonedSitemapsNode, Sitemap sitemap, Skin skin) throws RepositoryException
Populates a sitemap.- Parameters:
liveSession
- The live sessionclonedSitemapsNode
- the cloned sitemaps node.sitemap
- the sitemap to populate.skin
- the site skin model- Throws:
RepositoryException
- if an error occurs.
-
-