Package org.ametys.odf.catalog
Class ProgramItemReferencesCopyUpdater
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.catalog.AbstractProgramItemAttributeCopyUpdater
-
- org.ametys.odf.catalog.ProgramItemReferencesCopyUpdater
-
- All Implemented Interfaces:
CopyCatalogUpdater
,LogEnabled
,Serviceable
public class ProgramItemReferencesCopyUpdater extends AbstractProgramItemAttributeCopyUpdater
The catalog copy updater to update the other ODF content attribute
-
-
Field Summary
-
Fields inherited from class org.ametys.odf.catalog.AbstractProgramItemAttributeCopyUpdater
_ametysResolver
-
-
Constructor Summary
Constructors Constructor Description ProgramItemReferencesCopyUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
updateContent(String initialCatalogName, String newCatalogName, Program initialProgram, Program createdProgram)
Update content during copy of a catalog.void
updateContents(String initialCatalogName, String newCatalogName, Map<String,String> copiedPrograms, Map<String,String> copiedSubPrograms, Map<String,String> copiedContainers, Map<String,String> copiedCourseLists, Map<String,String> copiedCourses, Map<String,String> copiedCourseParts)
Update contents after the full copy of a catalog.-
Methods inherited from class org.ametys.odf.catalog.AbstractProgramItemAttributeCopyUpdater
_updateContentAttribute, _updateMultipleContentAttribute, _updateSingleContentAttribute, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ProgramItemReferencesCopyUpdater
public ProgramItemReferencesCopyUpdater()
-
-
Method Detail
-
updateContent
public void updateContent(String initialCatalogName, String newCatalogName, Program initialProgram, Program createdProgram)
Description copied from interface:CopyCatalogUpdater
Update content during copy of a catalog. Implements this method when you do not need to wait for the full copy of the catalog.- Parameters:
initialCatalogName
- the name of initial catalognewCatalogName
- the name of new cataloginitialProgram
- the initial programcreatedProgram
- the created program
-
updateContents
public void updateContents(String initialCatalogName, String newCatalogName, Map<String,String> copiedPrograms, Map<String,String> copiedSubPrograms, Map<String,String> copiedContainers, Map<String,String> copiedCourseLists, Map<String,String> copiedCourses, Map<String,String> copiedCourseParts)
Description copied from interface:CopyCatalogUpdater
Update contents after the full copy of a catalog. Implements this method when you need to do some stuff when all contents have been copied.- Parameters:
initialCatalogName
- the name of initial catalognewCatalogName
- the name of new catalogcopiedPrograms
- the id of initial programs with their copied contentcopiedSubPrograms
- the id of initial subprograms with their copied contentcopiedContainers
- the id of initial containers with their copied contentcopiedCourseLists
- the id of initial course lists with their copied contentcopiedCourses
- the id of initial courses with their copied contentcopiedCourseParts
- the id of initial course parts with their copied content
-
-