Package org.ametys.plugins.survey
Class SurveyCopyUpdater
- java.lang.Object
-
- org.ametys.plugins.survey.SurveyCopyUpdater
-
- All Implemented Interfaces:
CopyUpdater,LogEnabled,Serviceable,ThreadSafe
public class SurveyCopyUpdater extends Object implements CopyUpdater, ThreadSafe, Serviceable, LogEnabled
Updates copied surveys, updating the rules.
-
-
Field Summary
Fields Modifier and Type Field Description private Logger_loggerprivate AmetysObjectResolver_resolver
-
Constructor Summary
Constructors Constructor Description SurveyCopyUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void_updateRulesAfterCopy(Survey cSurvey, SurveyPage cPage)private void_updateRulesAfterCopy(Survey cSurvey, SurveyQuestion cQuestion)voidenableLogging(Logger logger)voidservice(ServiceManager manager)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
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
-
-
Constructor Detail
-
SurveyCopyUpdater
public SurveyCopyUpdater()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
enableLogging
public void enableLogging(Logger logger)
- Specified by:
enableLoggingin interfaceLogEnabled
-
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
-
_updateRulesAfterCopy
private void _updateRulesAfterCopy(Survey cSurvey, SurveyPage cPage)
-
_updateRulesAfterCopy
private void _updateRulesAfterCopy(Survey cSurvey, SurveyQuestion cQuestion)
-
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
-
-