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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_populate
(javax.jcr.Session liveSession, javax.jcr.Node clonedSitemapsNode, Sitemap sitemap, Skin skin) Populates a sitemap.protected void
Populates a sitevoid
Populates the live workspace.void
service
(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:
service
in 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
protected void _populate(javax.jcr.Session liveSession, Site site, Skin skin) throws javax.jcr.RepositoryException Populates a site- Parameters:
liveSession
- the live workspace session.site
- the site to populate.skin
- the site skin model- Throws:
javax.jcr.RepositoryException
- if an error occurs.
-
_populate
protected void _populate(javax.jcr.Session liveSession, javax.jcr.Node clonedSitemapsNode, Sitemap sitemap, Skin skin) 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 model- Throws:
javax.jcr.RepositoryException
- if an error occurs.
-