Class SCCCopyUpdater
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.odfsync.catalog.SCCCopyUpdater
- All Implemented Interfaces:
CopyCatalogUpdater,LogEnabled,Serviceable
The catalog copy updater to add the internal scc id if exists
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AmetysObjectResolverThe ametys object resolverprotected SynchronizableContentsCollectionHelperThe SCC helper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void_updateSCCId(Map<String, String> copiedContents) Update the sccvoidservice(ServiceManager manager) voidupdateContent(String initialCatalogName, String newCatalogName, Program initalContent, Program createdContent) Update content during copy of a catalog.voidupdateContents(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.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_resolver
The ametys object resolver -
_sccHelper
The SCC helper
-
-
Constructor Details
-
SCCCopyUpdater
public SCCCopyUpdater()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
updateContent
public void updateContent(String initialCatalogName, String newCatalogName, Program initalContent, Program createdContent) Description copied from interface:CopyCatalogUpdaterUpdate content during copy of a catalog. Implements this method when you do not need to wait for the full copy of the catalog.- Specified by:
updateContentin interfaceCopyCatalogUpdater- Parameters:
initialCatalogName- the name of initial catalognewCatalogName- the name of new cataloginitalContent- the initial programcreatedContent- 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:CopyCatalogUpdaterUpdate contents after the full copy of a catalog. Implements this method when you need to do some stuff when all contents have been copied.- Specified by:
updateContentsin interfaceCopyCatalogUpdater- 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
-
_updateSCCId
Update the scc- Parameters:
copiedContents- contents to update
-