Package org.ametys.odf.catalog
Class AbstractProgramItemAttributeCopyUpdater
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.odf.catalog.AbstractProgramItemAttributeCopyUpdater
- All Implemented Interfaces:
CopyCatalogUpdater
,CopyODFUpdater
,LogEnabled
- Direct Known Subclasses:
EducationalBookletCopyUpdater
,MCCCopyUpdater
,PilotageAttributeCopyUpdater
,ProgramItemReferencesCopyUpdater
public abstract class AbstractProgramItemAttributeCopyUpdater
extends AbstractLogEnabled
implements CopyCatalogUpdater
The abstract class to copy content attribute of program item type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_updateContentAttribute
(ModifiableModelAwareDataHolder dataHolder, String definitionPath, Map<Content, Content> copiedContents) Update the program item attribute with the value of the new catalog.protected void
_updateMultipleContentAttribute
(ModifiableModelAwareDataHolder dataHolder, String attributeName, Map<Content, Content> copiedContents) Update the multiple attribute with the program item value.protected void
_updateSingleContentAttribute
(ModifiableModelAwareDataHolder dataHolder, String attributeName, Map<Content, Content> copiedContents) Update the single attribute with the content value.Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.odf.catalog.CopyCatalogUpdater
copyAdditionalContents, getAdditionalContents
Methods inherited from interface org.ametys.odf.CopyODFUpdater
updateContents
-
Constructor Details
-
AbstractProgramItemAttributeCopyUpdater
-
-
Method Details
-
_updateContentAttribute
protected void _updateContentAttribute(ModifiableModelAwareDataHolder dataHolder, String definitionPath, Map<Content, Content> copiedContents) Update the program item attribute with the value of the new catalog.- Parameters:
dataHolder
- The data holderdefinitionPath
- The definition pathcopiedContents
- The copied contents for the referenced attribute
-
_updateSingleContentAttribute
protected void _updateSingleContentAttribute(ModifiableModelAwareDataHolder dataHolder, String attributeName, Map<Content, Content> copiedContents) Update the single attribute with the content value.- Parameters:
dataHolder
- The data holderattributeName
- The attribute namecopiedContents
- The copied contents for the referenced attribute
-
_updateMultipleContentAttribute
protected void _updateMultipleContentAttribute(ModifiableModelAwareDataHolder dataHolder, String attributeName, Map<Content, Content> copiedContents) Update the multiple attribute with the program item value.- Parameters:
dataHolder
- The data holderattributeName
- The attribute namecopiedContents
- The copied contents for the referenced attribute
-