Package org.ametys.plugins.newsletter
Class NewsletterCopyUpdater
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.plugins.newsletter.NewsletterCopyUpdater
-
- All Implemented Interfaces:
CopyUpdater
,LogEnabled
,Serviceable
,ThreadSafe
public class NewsletterCopyUpdater extends AbstractLogEnabled implements CopyUpdater, ThreadSafe, Serviceable
Copy updater for newsletters content
-
-
Field Summary
Fields Modifier and Type Field Description private AmetysObjectResolver
_resolver
-
Constructor Summary
Constructors Constructor Description NewsletterCopyUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
service(ServiceManager smanager)
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 site-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
-
-
Constructor Detail
-
NewsletterCopyUpdater
public NewsletterCopyUpdater()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- 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
public void updatePage(Site initialSite, Site createdSite, Page page)
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
public void updateSite(Site initialSite, Site createdSite)
Description copied from interface:CopyUpdater
Update site after copy site- Specified by:
updateSite
in interfaceCopyUpdater
- Parameters:
initialSite
- the original sitecreatedSite
- the created site
-
-