Class SharedContentCopyUpdater
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.web.repository.content.shared.SharedContentCopyUpdater
-
- All Implemented Interfaces:
CopyUpdater,LogEnabled,Serviceable
public class SharedContentCopyUpdater extends AbstractLogEnabled implements CopyUpdater, Serviceable
Updates copied shared contents, validating it if their initial content is live.
-
-
Field Summary
Fields Modifier and Type Field Description protected SharedContentManager_sharedContentManagerThe shared content manager.
-
Constructor Summary
Constructors Constructor Description SharedContentCopyUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidservice(ServiceManager serviceManager)voidupdateContent(Site initialSite, Site createdSite, Content initialContent, Content createdContent)Update content after copy sitevoidupdatePage(Site initialSite, Site createdSite, Page page)Update page after copy sitevoidupdateSite(Site initialSite, Site createdSite)Update site after copy site-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_sharedContentManager
protected SharedContentManager _sharedContentManager
The shared content manager.
-
-
Constructor Detail
-
SharedContentCopyUpdater
public SharedContentCopyUpdater()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
updateContent
public void updateContent(Site initialSite, Site createdSite, Content initialContent, Content createdContent)
Description copied from interface:CopyUpdaterUpdate content after copy site- Specified by:
updateContentin interfaceCopyUpdater- Parameters:
initialSite- the initial sitecreatedSite- the created siteinitialContent- the initial contentcreatedContent- the new content
-
updatePage
public void updatePage(Site initialSite, Site createdSite, Page page)
Description copied from interface:CopyUpdaterUpdate page after copy site- Specified by:
updatePagein interfaceCopyUpdater- Parameters:
initialSite- the original sitecreatedSite- the created sitepage- the new page
-
updateSite
public void updateSite(Site initialSite, Site createdSite)
Description copied from interface:CopyUpdaterUpdate site after copy site- Specified by:
updateSitein interfaceCopyUpdater- Parameters:
initialSite- the original sitecreatedSite- the created site
-
-