Package org.ametys.web.live
Class SitesLivePopulator
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.web.live.SitesLivePopulator
-
- All Implemented Interfaces:
LivePopulator
,LogEnabled
,Serviceable
public class SitesLivePopulator extends AbstractLogEnabled implements LivePopulator, Serviceable
LivePopulator
for synchronizing sites.
-
-
Field Summary
Fields Modifier and Type Field Description private SiteManager
_siteManager
private SitePopulator
_sitePopulator
private SkinsManager
_skinsManager
-
Constructor Summary
Constructors Constructor Description SitesLivePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private List<String>
_deleteLiveSites(Session liveSession)
List<String>
populate(Session session, Session liveSession)
Populates the live workspace.void
service(ServiceManager manager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_sitePopulator
private SitePopulator _sitePopulator
-
_skinsManager
private SkinsManager _skinsManager
-
_siteManager
private SiteManager _siteManager
-
-
Constructor Detail
-
SitesLivePopulator
public SitesLivePopulator()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
populate
public List<String> populate(Session session, Session liveSession)
Description copied from interface:LivePopulator
Populates the live workspace.- Specified by:
populate
in interfaceLivePopulator
- Parameters:
session
- the session on the default workspace.liveSession
- the session on the live workspace.- Returns:
- A list of error technical messages. A message can use \n for carriage return.
-
_deleteLiveSites
private List<String> _deleteLiveSites(Session liveSession)
-
-