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
,LogEnabled
,Serviceable
- Direct Known Subclasses:
EducationalBookletCopyUpdater
,PilotageAttributeCopyUpdater
,ProgramItemReferencesCopyUpdater
public abstract class AbstractProgramItemAttributeCopyUpdater
extends AbstractLogEnabled
implements CopyCatalogUpdater, Serviceable
The abstract class to copy content attribute of program item type.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_updateContentAttribute
(ModifiableModelAwareDataHolder dataHolder, String definitionPath, Map<String, String> copiedContents) Update the program item attribute with the value of the new catalog.protected void
_updateMultipleContentAttribute
(ModifiableModelAwareDataHolder dataHolder, String attributeName, Map<String, String> copiedContents) Update the multiple attribute with the program item value.protected void
_updateSingleContentAttribute
(ModifiableModelAwareDataHolder dataHolder, String attributeName, Map<String, String> copiedContents) Update the single attribute with the content value.void
service
(ServiceManager manager) 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
updateContent, updateContents
-
Field Details
-
_ametysResolver
The Ametys object resolver
-
-
Constructor Details
-
AbstractProgramItemAttributeCopyUpdater
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
_updateContentAttribute
protected void _updateContentAttribute(ModifiableModelAwareDataHolder dataHolder, String definitionPath, Map<String, String> 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<String, String> 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<String, String> 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
-