Class SCCImportCDMFrComponent
- java.lang.Object
-
- org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent
-
- org.ametys.plugins.odfsync.cdmfr.components.impl.SCCImportCDMFrComponent
-
- All Implemented Interfaces:
ImportCDMFrComponent
,Initializable
,Component
,Configurable
,Contextualizable
,Serviceable
public class SCCImportCDMFrComponent extends AbstractImportCDMFrComponent
Component to import a CDM-fr input stream in SCC context.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_collectionId
The collectionIDprotected boolean
_removalSync
True if removal syncprotected boolean
_validateAfterImport
Validate after import-
Fields inherited from class org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent
_catalogsManager, _cdmFrSyncExtensionPoint, _cocoonContext, _contentPrefix, _contentTypeEP, _contentWorkflowHelper, _currentUserProvider, _domParser, _importedContents, _nbError, _observationManager, _odfHelper, _odfLang, _odfRefTableHelper, _resolver, _rootOUProvider, _sccHelper, _shareableCourseHelper, _syncFieldsByContentType, _SYNCHRONIZE_WORKFLOW_ACTION_ID, _synchronizedContents, _TAG_CONTAINER, _TAG_COURSELIST, _TAG_COURSEPART, _TAG_PROGRAM, _TAG_SUBPROGRAM, _valuesExtractorFactory, _xPathProcessor
-
Fields inherited from interface org.ametys.plugins.odfsync.cdmfr.components.ImportCDMFrComponent
ROLE
-
-
Constructor Summary
Constructors Constructor Description SCCImportCDMFrComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Expression>
_getExpressionsList(String contentType, String idValue, ImportCDMFrContext context)
Construct the query to retrieve the content.protected void
additionalParameters(Map<String,Object> parameters)
Additional parameters for specific treatments.protected boolean
removalSync()
When returns true, a content created by a previous synchro will be removed if it does not exist anymore during the current synchro.protected boolean
validateAfterImport()
True to validate the contents after import-
Methods inherited from class org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent
_createContent, _editContent, _getAdditionalValuesToSynchronize, _getInputsForContentCreation, _getNotSynchronizedRelatedContentIds, _getOrCreateContent, _initializeShareableCoursesFields, _linkTranslationsIfExist, _setOrgUnitParent, _synchronizeContent, additionalOperations, configure, contextualize, getCatalogName, getContent, getIdField, getIdFromCDMThenCode, getLocalAndExternalFields, handleInputStream, ignoreRights, importOrSynchronizeContent, initialize, service, transformDocument, validateContent
-
-
-
-
Field Detail
-
_collectionId
protected String _collectionId
The collectionID
-
_validateAfterImport
protected boolean _validateAfterImport
Validate after import
-
_removalSync
protected boolean _removalSync
True if removal sync
-
-
Constructor Detail
-
SCCImportCDMFrComponent
public SCCImportCDMFrComponent()
-
-
Method Detail
-
additionalParameters
protected void additionalParameters(Map<String,Object> parameters)
Description copied from class:AbstractImportCDMFrComponent
Additional parameters for specific treatments.- Specified by:
additionalParameters
in classAbstractImportCDMFrComponent
- Parameters:
parameters
- The parameters map to get
-
_getExpressionsList
public List<Expression> _getExpressionsList(String contentType, String idValue, ImportCDMFrContext context)
Description copied from class:AbstractImportCDMFrComponent
Construct the query to retrieve the content.- Overrides:
_getExpressionsList
in classAbstractImportCDMFrComponent
- Parameters:
contentType
- The content typeidValue
- The synchronization codecontext
- the import context- Returns:
- The
List
ofExpression
-
validateAfterImport
protected boolean validateAfterImport()
Description copied from class:AbstractImportCDMFrComponent
True to validate the contents after import- Specified by:
validateAfterImport
in classAbstractImportCDMFrComponent
- Returns:
- True to validate the contents after import
-
removalSync
protected boolean removalSync()
Description copied from class:AbstractImportCDMFrComponent
When returns true, a content created by a previous synchro will be removed if it does not exist anymore during the current synchro.- Specified by:
removalSync
in classAbstractImportCDMFrComponent
- Returns:
- true if a content created by a previous synchro has to be removed if it does not exist anymore during the current synchro.
-
-