public class ContentsLivePopulator extends AbstractLogEnabled implements LivePopulator, Serviceable
LivePopulator for synchronizing '/ametys:root/ametys:contents'.| Modifier and Type | Field and Description | 
|---|---|
protected AmetysObjectResolver | 
_resolver
The Ametys resolver 
 | 
protected SynchronizeComponent | 
_synchronizeHelper
The synchronize helper 
 | 
| Constructor and Description | 
|---|
ContentsLivePopulator()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
_cloneContents(Node contentsNode,
              Session liveSession)
Clone contents in live workspace 
 | 
protected AmetysObjectIterable<Content> | 
_getContents(Node contentsNode)
Get the contents of root contents node 
 | 
void | 
populate(Session session,
        Session liveSession)
Populates the live workspace. 
 | 
void | 
service(ServiceManager smanager)  | 
getLogger, setLoggerprotected SynchronizeComponent _synchronizeHelper
protected AmetysObjectResolver _resolver
public ContentsLivePopulator()
public void service(ServiceManager smanager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void populate(Session session, Session liveSession) throws Exception
LivePopulatorpopulate in interface LivePopulatorsession - the session on the default workspace.liveSession - the session on the live workspace.Exception - if an error occurs.protected void _cloneContents(Node contentsNode, Session liveSession) throws RepositoryException
contentsNode - The root contents nodeliveSession - The live sessionRepositoryException - if failed to clone contents in liveprotected AmetysObjectIterable<Content> _getContents(Node contentsNode) throws RepositoryException
contentsNode - The root contents nodeRepositoryException - if failed to get the child contents