public class RemoteImportCDMFrComponent extends AbstractImportCDMFrComponent
AbstractImportCDMFrComponent.ContentWorkflowDescription
Modifier and Type | Field and Description |
---|---|
protected String |
_forcedCatalog
Forced catalog
|
protected boolean |
_validateAfterImport
Validate after import
|
_catalogsManager, _cdmFrSyncExtensionPoint, _cocoonContext, _contentPrefix, _contentTypeEP, _currentUserProvider, _domParser, _importedContents, _nbCreatedContents, _nbError, _nbNotChangedContents, _nbSynchronizedContents, _observationManager, _odfLang, _odfRefTableHelper, _resolver, _rootOUProvider, _syncFieldsByContentType, _synchroComponent, _synchronizedContents, _TAG_CONTAINER, _TAG_COURSELIST, _TAG_PROGRAM, _TAG_SUBPROGRAM, _updatedContents, _xPathProcessor
ROLE
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
|
void |
initialize() |
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
|
_getIdFromCDMThenCode, _getOrCreateContent, _importOrSynchronizeContent, _linkTranslationsIfExist, _saveContentChanges, _setChildren, _setOrgUnitParent, _setRelations, _synchronizeContent, _synchronizeCourseList, _synchronizeMetadata, configure, contextualize, getContainerWfDescription, getCourseListWfDescription, getCourseWfDescription, getExpressionsList, getIdField, getLocalAndExternalFields, getOrgUnitWfDescription, getPersonWfDescription, getProgramWfDescription, getSubProgramWfDescription, handleInputStream, service
protected String _forcedCatalog
protected boolean _validateAfterImport
public RemoteImportCDMFrComponent()
public void initialize() throws Exception
initialize
in interface Initializable
initialize
in class AbstractImportCDMFrComponent
Exception
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