public class SurveyCopyUpdater extends Object implements CopyUpdater, ThreadSafe, Serviceable, LogEnabled
Modifier and Type | Field and Description |
---|---|
private Logger |
_logger |
private AmetysObjectResolver |
_resolver |
Constructor and Description |
---|
SurveyCopyUpdater() |
Modifier and Type | Method and Description |
---|---|
private void |
_updateRulesAfterCopy(Survey cSurvey,
SurveyPage cPage) |
private void |
_updateRulesAfterCopy(Survey cSurvey,
SurveyQuestion cQuestion) |
void |
enableLogging(Logger logger) |
void |
service(ServiceManager manager) |
void |
updateContent(Site initialSite,
Site createdSite,
Content initialContent,
Content createdContent)
Update content after copy site
|
void |
updatePage(Site initialSite,
Site createdSite,
Page page)
Update page after copy site
|
void |
updateSite(Site initialSite,
Site createdSite)
Update site after copy site
|
private AmetysObjectResolver _resolver
public SurveyCopyUpdater()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
public void updateSite(Site initialSite, Site createdSite)
CopyUpdater
updateSite
in interface CopyUpdater
initialSite
- the original sitecreatedSite
- the created siteprivate void _updateRulesAfterCopy(Survey cSurvey, SurveyPage cPage)
private void _updateRulesAfterCopy(Survey cSurvey, SurveyQuestion cQuestion)
public void updateContent(Site initialSite, Site createdSite, Content initialContent, Content createdContent)
CopyUpdater
updateContent
in interface CopyUpdater
initialSite
- the initial sitecreatedSite
- the created siteinitialContent
- the initial contentcreatedContent
- the new contentpublic void updatePage(Site initialSite, Site createdSite, Page page)
CopyUpdater
updatePage
in interface CopyUpdater
initialSite
- the original sitecreatedSite
- the created sitepage
- the new page