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
LivePopulator
for synchronizing sites.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
A readable label of the populatorReturn a logger for the progression trackerpopulate
(javax.jcr.Session session, javax.jcr.Session liveSession, ContainerProgressionTracker progressionTracker) Populates the live workspace.void
service
(ServiceManager manager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.live.LivePopulator
populate
-
Constructor Details
-
SitesLivePopulator
public SitesLivePopulator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getLabel
Description copied from interface:LivePopulator
A readable label of the populator- Specified by:
getLabel
in interfaceLivePopulator
- Returns:
- A non null value
-
getProgressionTrackerLogger
Description copied from interface:LivePopulator
Return a logger for the progression tracker- Specified by:
getProgressionTrackerLogger
in interfaceLivePopulator
- Returns:
- The logger
-
populate
public List<String> populate(javax.jcr.Session session, javax.jcr.Session liveSession, ContainerProgressionTracker progressionTracker) 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.progressionTracker
- The static progression tracker- Returns:
- A list of error technical messages. A message can use \n for carriage return.
-