Package org.ametys.odf.migration
Class MigrateNatureEnseignementComponent
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.migration.MigrateCoursePartComponent
-
- org.ametys.odf.migration.MigrateNatureEnseignementComponent
-
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
public class MigrateNatureEnseignementComponent extends MigrateCoursePartComponent
Component class to migrate nature enseignement
-
-
Field Summary
Fields Modifier and Type Field Description static String
ROLE
The component role.-
Fields inherited from class org.ametys.odf.migration.MigrateCoursePartComponent
_odfRefTableHelper, _resolver, _workflowHelper, _workflowProvider
-
-
Constructor Summary
Constructors Constructor Description MigrateNatureEnseignementComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
migrateNaturesEnseignement()
Migrate the nature enseignementvoid
migrateNaturesEnseignement(Map<String,Pair<String,Long>> natureEnseignementCategories)
Migrate the nature enseignement-
Methods inherited from class org.ametys.odf.migration.MigrateCoursePartComponent
_createCoursePart, _createNatureEnseignementCategories, _createNaturesEnseignement, _doAction, _getNaturesEnseignementCategoryList, _getNaturesEnseignementList, _getOrCreateNatureEnseignement, _migrateCoursePart, _setAdditionalValues, _updateCoursePart, migrateCourseParts, migrateCourseParts, removeExternalizableData, service
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
MigrateNatureEnseignementComponent
public MigrateNatureEnseignementComponent()
-
-
Method Detail
-
migrateNaturesEnseignement
public void migrateNaturesEnseignement() throws AmetysRepositoryException, com.opensymphony.workflow.WorkflowException
Migrate the nature enseignement- Throws:
AmetysRepositoryException
- if an error occurscom.opensymphony.workflow.WorkflowException
- if an error occurs
-
migrateNaturesEnseignement
public void migrateNaturesEnseignement(Map<String,Pair<String,Long>> natureEnseignementCategories) throws AmetysRepositoryException, com.opensymphony.workflow.WorkflowException
Migrate the nature enseignement- Parameters:
natureEnseignementCategories
- the map of nature enseignement categories- Throws:
AmetysRepositoryException
- if an error occurscom.opensymphony.workflow.WorkflowException
- if an error occurs
-
-