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
Component class to migrate nature enseignement
-
Field Summary
Fields inherited from class org.ametys.odf.migration.MigrateCoursePartComponent
_odfRefTableHelper, _resolver, _workflowHelper, _workflowProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Migrate the nature enseignementvoid
Migrate the nature enseignementMethods 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
-
Field Details
-
ROLE
The component role.
-
-
Constructor Details
-
MigrateNatureEnseignementComponent
public MigrateNatureEnseignementComponent()
-
-
Method Details
-
migrateNaturesEnseignement
public void migrateNaturesEnseignement() throws AmetysRepositoryException, com.opensymphony.workflow.WorkflowExceptionMigrate the nature enseignement- Throws:
AmetysRepositoryException
- if an error occurscom.opensymphony.workflow.WorkflowException
- if an error occurs
-
migrateNaturesEnseignement
public void migrateNaturesEnseignement(Map<String, Pair<String, throws AmetysRepositoryException, com.opensymphony.workflow.WorkflowExceptionLong>> natureEnseignementCategories) 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
-