Class SitePopulator

All Implemented Interfaces:
LogEnabled, Component, Serviceable

public class SitePopulator extends AbstractLogEnabled implements Serviceable, Component
Component for populating the live workspace site by site.
  • Field Details

    • ROLE

      public static final String ROLE
      Avalon role.
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      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(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 session
      clonedSitemapsNode - the cloned sitemaps node.
      sitemap - the sitemap to populate.
      skin - the site skin model
      Throws:
      javax.jcr.RepositoryException - if an error occurs.