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 ServiceableServiceExceptionpublic void enableLogging(Logger logger)
enableLogging in interface LogEnabledpublic void updateSite(Site initialSite, Site createdSite)
CopyUpdaterupdateSite in interface CopyUpdaterinitialSite - 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)
CopyUpdaterupdateContent in interface CopyUpdaterinitialSite - the initial sitecreatedSite - the created siteinitialContent - the initial contentcreatedContent - the new contentpublic void updatePage(Site initialSite, Site createdSite, Page page)
CopyUpdaterupdatePage in interface CopyUpdaterinitialSite - the original sitecreatedSite - the created sitepage - the new page