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
Fields Modifier and Type Field Description protected AmetysObjectResolver_ametysResolverThe Ametys object resolver 
- 
Constructor Summary
Constructors Constructor Description AbstractProgramItemAttributeCopyUpdater() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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.voidservice(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 Detail
- 
_ametysResolver
protected AmetysObjectResolver _ametysResolver
The Ametys object resolver 
 - 
 
- 
Constructor Detail
- 
AbstractProgramItemAttributeCopyUpdater
public AbstractProgramItemAttributeCopyUpdater()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
 servicein 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
 
 - 
 
 -