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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FormPage_getCopiedPage(Form createdForm, FormPage originalFormPage) Get the copied pageprotected FormQuestion_getCopiedQuestion(Form createdForm, FormQuestion originalFormQuestion) Get the copied questionvoidservice(ServiceManager manager) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
servicein 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
-