public class TranslationUpdater extends Object implements CopyCatalogUpdater, Serviceable
Modifier and Type | Field and Description |
---|---|
private AmetysObjectResolver |
_resolver |
Constructor and Description |
---|
TranslationUpdater() |
Modifier and Type | Method and Description |
---|---|
protected void |
_setTranslations(Map<String,String> copiedContents)
Set the translations
|
void |
service(ServiceManager manager) |
void |
updateContent(String initialCatalogName,
String newCatalogName,
Program initalContent,
Program createdContent)
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)
Update contents after the full copy of a catalog.
|
private AmetysObjectResolver _resolver
public TranslationUpdater()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void updateContent(String initialCatalogName, String newCatalogName, Program initalContent, Program createdContent)
CopyCatalogUpdater
updateContent
in interface CopyCatalogUpdater
initialCatalogName
- the name of initial catalognewCatalogName
- the name of new cataloginitalContent
- the initial programcreatedContent
- the created programpublic 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)
CopyCatalogUpdater
updateContents
in interface CopyCatalogUpdater
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 contentprotected void _setTranslations(Map<String,String> copiedContents)
copiedContents
- Contents to update