Class AbstractFormCopyUpdater
java.lang.Object
org.ametys.plugins.forms.repository.AbstractFormCopyUpdater
- All Implemented Interfaces:
CopyFormUpdater
,Serviceable
- Direct Known Subclasses:
FormPageRuleCopyUpdater
,FormQuestionRuleCopyUpdater
public abstract class AbstractFormCopyUpdater
extends Object
implements CopyFormUpdater, Serviceable
Updates copied form's internal attributes
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FormPage
_getCopiedPage
(Form createdForm, FormPage originalFormPage) Get the copied pageprotected FormQuestion
_getCopiedQuestion
(Form createdForm, FormQuestion originalFormQuestion) Get the copied questionvoid
service
(ServiceManager manager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.plugins.forms.repository.CopyFormUpdater
updateForm, updateFormPage, updateFormQuestion
-
Field Details
-
_resolver
The Ametys object resolver
-
-
Constructor Details
-
AbstractFormCopyUpdater
public AbstractFormCopyUpdater()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
_getCopiedPage
Get the copied page- Parameters:
createdForm
- the form copyoriginalFormPage
- the original page- Returns:
- the page copy
-
_getCopiedQuestion
Get the copied question- Parameters:
createdForm
- the form copyoriginalFormQuestion
- the original question- Returns:
- the question copy
-