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
Component to import a CDM-fr input stream in SCC context.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent
AbstractImportCDMFrComponent.ContentWorkflowDescription
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The collectionIDprotected boolean
True if removal syncprotected boolean
Validate after importFields inherited from class org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent
_catalogsManager, _cdmFrSyncExtensionPoint, _cocoonContext, _contentPrefix, _contentTypeEP, _currentUserProvider, _domParser, _importedContents, _nbCreatedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, _odfLang, _odfRefTableHelper, _resolver, _rootOUProvider, _shareableCourseHelper, _syncFieldsByContentType, _synchroComponent, _synchronizedContents, _TAG_CONTAINER, _TAG_COURSELIST, _TAG_COURSEPART, _TAG_PROGRAM, _TAG_SUBPROGRAM, _updatedContents, _xPathProcessor
Fields inherited from interface org.ametys.plugins.odfsync.cdmfr.components.ImportCDMFrComponent
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
additionalOperationsBeforeSave
(ModifiableDefaultContent content, Logger logger) Additional operation to do on the content before saving it.protected void
additionalParameters
(Map<String, Object> parameters) Additional parameters for specific treatments.getExpressionsList
(String lang, String idValue, String contentType, String catalog) Construct the query to retrieve the content.protected boolean
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
True to validate the contents after importMethods inherited from class org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponent
_getContent, _getIdFromCDMThenCode, _getOrCreateContent, _handleBinaryMetadata, _handleBinaryMetadata, _handleFileMetadata, _handleFileMetadata, _handleGeocodeMetadata, _handleGeocodeMetadata, _handleMetadataValues, _importOrSynchronizeContent, _linkTranslationsIfExist, _saveContentChanges, _setChildren, _setOrgUnitParent, _setRelations, _synchronizeContent, _synchronizeCourseList, _synchronizeMetadata, configure, contextualize, getCatalogName, getContainerWfDescription, getCourseListWfDescription, getCoursePartWfDescription, getCourseWfDescription, getIdField, getLocalAndExternalFields, getOrgUnitWfDescription, getPersonWfDescription, getProgramWfDescription, getSubProgramWfDescription, handleInputStream, ignoreRights, initialize, service, transformDocument
-
Field Details
-
_collectionId
The collectionID -
_validateAfterImport
Validate after import -
_removalSync
True if removal sync
-
-
Constructor Details
-
SCCImportCDMFrComponent
public SCCImportCDMFrComponent()
-
-
Method Details
-
additionalParameters
Description copied from class:AbstractImportCDMFrComponent
Additional parameters for specific treatments.- Specified by:
additionalParameters
in classAbstractImportCDMFrComponent
- Parameters:
parameters
- The parameters map to get
-
additionalOperationsBeforeSave
protected void additionalOperationsBeforeSave(ModifiableDefaultContent content, Logger logger) throws RepositoryException Description copied from class:AbstractImportCDMFrComponent
Additional operation to do on the content before saving it.- Specified by:
additionalOperationsBeforeSave
in classAbstractImportCDMFrComponent
- Parameters:
content
- The contentlogger
- The logger- Throws:
RepositoryException
- if an error occurs
-
getExpressionsList
public List<Expression> getExpressionsList(String lang, String idValue, String contentType, String catalog) Description copied from interface:ImportCDMFrComponent
Construct the query to retrieve the content.- Specified by:
getExpressionsList
in interfaceImportCDMFrComponent
- Overrides:
getExpressionsList
in classAbstractImportCDMFrComponent
- Parameters:
lang
- LangidValue
- Synchronization valuecontentType
- Content typecatalog
- The catalog- Returns:
- The
List
ofExpression
-
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
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.
-