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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
service
(ServiceManager serviceManager) void
updateContent
(Site initialSite, Site createdSite, Content initialContent, Content createdContent) Update content after copy sitevoid
updatePage
(Site initialSite, Site createdSite, Page page) Update page after copy sitevoid
updateSite
(Site initialSite, Site createdSite) Update site after copy siteMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
Constructor Details
-
SharedContentCopyUpdater
public SharedContentCopyUpdater()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
updateContent
public void updateContent(Site initialSite, Site createdSite, Content initialContent, Content createdContent) Description copied from interface:CopyUpdater
Update content after copy site- Specified by:
updateContent
in interfaceCopyUpdater
- Parameters:
initialSite
- the initial sitecreatedSite
- the created siteinitialContent
- the initial contentcreatedContent
- the new content
-
updatePage
Description copied from interface:CopyUpdater
Update page after copy site- Specified by:
updatePage
in interfaceCopyUpdater
- Parameters:
initialSite
- the original sitecreatedSite
- the created sitepage
- the new page
-
updateSite
Description copied from interface:CopyUpdater
Update site after copy site- Specified by:
updateSite
in interfaceCopyUpdater
- Parameters:
initialSite
- the original sitecreatedSite
- the created site
-