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.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.ametys.plugins.odfsync.cdmfr.components.AbstractImportCDMFrComponentAbstractImportCDMFrComponent.ContentWorkflowDescription
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected String_collectionIdThe collectionIDprotected boolean_removalSyncTrue if removal syncprotected boolean_validateAfterImportValidate after import- 
Fields 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.ImportCDMFrComponentROLE
 
- 
 - 
Constructor SummaryConstructors Constructor Description SCCImportCDMFrComponent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadditionalOperationsBeforeSave(ModifiableDefaultContent content, org.slf4j.Logger logger)Additional operation to do on the content before saving it.protected voidadditionalParameters(Map<String,Object> parameters)Additional parameters for specific treatments.List<Expression>getExpressionsList(String lang, String idValue, String contentType, String catalog)Construct the query to retrieve the content.protected booleanremovalSync()When returns true, a content created by a previous synchro will be removed if it does not exist anymore during the current synchro.protected booleanvalidateAfterImport()True to validate the contents after import- 
Methods 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 Detail- 
_collectionIdprotected String _collectionId The collectionID
 - 
_validateAfterImportprotected boolean _validateAfterImport Validate after import
 - 
_removalSyncprotected boolean _removalSync True if removal sync
 
- 
 - 
Constructor Detail- 
SCCImportCDMFrComponentpublic SCCImportCDMFrComponent() 
 
- 
 - 
Method Detail- 
additionalParametersprotected void additionalParameters(Map<String,Object> parameters) Description copied from class:AbstractImportCDMFrComponentAdditional parameters for specific treatments.- Specified by:
- additionalParametersin class- AbstractImportCDMFrComponent
- Parameters:
- parameters- The parameters map to get
 
 - 
additionalOperationsBeforeSaveprotected void additionalOperationsBeforeSave(ModifiableDefaultContent content, org.slf4j.Logger logger) throws RepositoryException Description copied from class:AbstractImportCDMFrComponentAdditional operation to do on the content before saving it.- Specified by:
- additionalOperationsBeforeSavein class- AbstractImportCDMFrComponent
- Parameters:
- content- The content
- logger- The logger
- Throws:
- RepositoryException- if an error occurs
 
 - 
getExpressionsListpublic List<Expression> getExpressionsList(String lang, String idValue, String contentType, String catalog) Description copied from interface:ImportCDMFrComponentConstruct the query to retrieve the content.- Specified by:
- getExpressionsListin interface- ImportCDMFrComponent
- Overrides:
- getExpressionsListin class- AbstractImportCDMFrComponent
- Parameters:
- lang- Lang
- idValue- Synchronization value
- contentType- Content type
- catalog- The catalog
- Returns:
- The ListofExpression
 
 - 
validateAfterImportprotected boolean validateAfterImport() Description copied from class:AbstractImportCDMFrComponentTrue to validate the contents after import- Specified by:
- validateAfterImportin class- AbstractImportCDMFrComponent
- Returns:
- True to validate the contents after import
 
 - 
removalSyncprotected boolean removalSync() Description copied from class:AbstractImportCDMFrComponentWhen returns true, a content created by a previous synchro will be removed if it does not exist anymore during the current synchro.- Specified by:
- removalSyncin class- AbstractImportCDMFrComponent
- Returns:
- true if a content created by a previous synchro has to be removed if it does not exist anymore during the current synchro.
 
 
- 
 
-