public class RemoteImportCDMFrComponent extends AbstractImportCDMFrComponent
AbstractImportCDMFrComponent.ContentWorkflowDescription
Modifier and Type | Field and Description |
---|---|
protected String |
_forcedCatalog
Forced catalog
|
protected boolean |
_validateAfterImport
Validate after import
|
static String |
ROLE
Avalon Role
|
_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
Constructor and Description |
---|
RemoteImportCDMFrComponent() |
Modifier and Type | Method and Description |
---|---|
protected 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.
|
protected String |
getCatalogName(Node contentNode)
Get the name of catalog to use for import
|
protected boolean |
ignoreRights()
If true, bypass the rights check during the import process
|
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 Document |
transformDocument(Document document,
Map<String,Object> parameters,
Logger logger)
Transform the document depending of it structure.
|
protected boolean |
validateAfterImport()
True to validate the contents after import
|
_getContent, _getIdFromCDMThenCode, _getOrCreateContent, _handleBinaryMetadata, _handleBinaryMetadata, _handleFileMetadata, _handleFileMetadata, _handleGeocodeMetadata, _handleGeocodeMetadata, _handleMetadataValues, _importOrSynchronizeContent, _linkTranslationsIfExist, _saveContentChanges, _setChildren, _setOrgUnitParent, _setRelations, _synchronizeContent, _synchronizeCourseList, _synchronizeMetadata, configure, contextualize, getContainerWfDescription, getCourseListWfDescription, getCoursePartWfDescription, getCourseWfDescription, getExpressionsList, getIdField, getLocalAndExternalFields, getOrgUnitWfDescription, getPersonWfDescription, getProgramWfDescription, getSubProgramWfDescription, handleInputStream, initialize, service
protected String _forcedCatalog
protected boolean _validateAfterImport
public RemoteImportCDMFrComponent()
protected void additionalParameters(Map<String,Object> parameters)
AbstractImportCDMFrComponent
additionalParameters
in class AbstractImportCDMFrComponent
parameters
- The parameters map to getprotected void additionalOperationsBeforeSave(ModifiableDefaultContent content, Logger logger) throws RepositoryException
AbstractImportCDMFrComponent
additionalOperationsBeforeSave
in class AbstractImportCDMFrComponent
content
- The contentlogger
- The loggerRepositoryException
- if an error occursprotected String getCatalogName(Node contentNode)
AbstractImportCDMFrComponent
getCatalogName
in class AbstractImportCDMFrComponent
contentNode
- The node of programprotected Document transformDocument(Document document, Map<String,Object> parameters, Logger logger) throws IOException, SAXException, ProcessingException
AbstractImportCDMFrComponent
transformDocument
in class AbstractImportCDMFrComponent
document
- Document to transform.parameters
- Optional parameters for transformationlogger
- The loggerIOException
- if an error occurs.SAXException
- if an error occurs.ProcessingException
- if an error occurs.protected boolean validateAfterImport()
AbstractImportCDMFrComponent
validateAfterImport
in class AbstractImportCDMFrComponent
protected boolean removalSync()
AbstractImportCDMFrComponent
removalSync
in class AbstractImportCDMFrComponent
protected boolean ignoreRights()
AbstractImportCDMFrComponent
ignoreRights
in class AbstractImportCDMFrComponent