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
Component for populating the live workspace site by site.
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected void_populate(javax.jcr.Session liveSession, javax.jcr.Node clonedSitemapsNode, Sitemap sitemap, Skin skin, SimpleProgressionTracker progressionTracker) Populates a sitemap.protected void_populate(javax.jcr.Session liveSession, Site site, Skin skin, ContainerProgressionTracker progressionTracker) Populates a sitevoidPopulates the live workspace.voidpopulate(Site site, Skin skin, ContainerProgressionTracker progressionTracker) Populates the live workspace.voidservice(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
- 
Field Details
- 
ROLE
Avalon role. 
 - 
 - 
Constructor Details
- 
SitePopulator
public SitePopulator() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 - 
populate
Populates the live workspace.- Parameters:
 site- the site to populate.skin- the site skin model- Throws:
 Exception- if an error occurs.
 - 
populate
public void populate(Site site, Skin skin, ContainerProgressionTracker progressionTracker) throws Exception Populates the live workspace.- Parameters:
 site- the site to populate.skin- the site skin modelprogressionTracker- The progression tracker- Throws:
 Exception- if an error occurs.
 - 
_populate
protected void _populate(javax.jcr.Session liveSession, Site site, Skin skin, ContainerProgressionTracker progressionTracker) throws javax.jcr.RepositoryException Populates a site- Parameters:
 liveSession- the live workspace session.site- the site to populate.skin- the site skin modelprogressionTracker- The progression tracker- Throws:
 javax.jcr.RepositoryException- if an error occurs.
 - 
_populate
protected void _populate(javax.jcr.Session liveSession, javax.jcr.Node clonedSitemapsNode, Sitemap sitemap, Skin skin, SimpleProgressionTracker progressionTracker) throws javax.jcr.RepositoryException Populates a sitemap.- Parameters:
 liveSession- The live sessionclonedSitemapsNode- the cloned sitemaps node.sitemap- the sitemap to populate.skin- the site skin modelprogressionTracker- The tracker for pages- Throws:
 javax.jcr.RepositoryException- if an error occurs.
 
 -