public class CoAccreditedRemoteImportCDMFrComponent extends RemoteImportCDMFrComponent
AbstractImportCDMFrComponent.ContentWorkflowDescription
Modifier and Type | Field and Description |
---|---|
private Map<String,String> |
_degree2MentionMap |
private String |
_mention |
private ContentType |
_mentionContentType |
protected Set<String> |
_mentionMetadataPaths
The list of metadata to copy for mention program
|
private String |
_programToLinkCode |
_forcedCatalog, _validateAfterImport
_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 |
---|
CoAccreditedRemoteImportCDMFrComponent() |
Modifier and Type | Method and Description |
---|---|
private ModifiableDefaultContent |
_createMention(Document doc,
Node contentNode,
String mentionId,
String catalog,
String lang,
Logger logger) |
private ModifiableDefaultContent |
_getMention(String mentionCode,
String degreeCode,
String lang,
String catalog) |
private String |
_getOrCreateMention(Document doc,
Node contentNode,
String mentionCode,
String lang,
String catalog,
Logger logger) |
protected ModifiableDefaultContent |
_importOrSynchronizeContent(Document doc,
Node contentNode,
AbstractImportCDMFrComponent.ContentWorkflowDescription wfDescription,
String title,
String lang,
String catalog,
String syncCode,
Logger logger)
Import or synchronize the content.
|
private boolean |
_synchronizeMentionMetadata(Document doc,
Node contentNode,
ModifiableDefaultContent mention,
String metadataPath,
String lang,
Logger logger) |
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.
|
void |
configure(Configuration configuration) |
void |
initialize() |
getCatalogName, removalSync, transformDocument, validateAfterImport
_getIdFromCDMThenCode, _getOrCreateContent, _linkTranslationsIfExist, _saveContentChanges, _setChildren, _setOrgUnitParent, _setRelations, _synchronizeContent, _synchronizeCourseList, _synchronizeMetadata, contextualize, getContainerWfDescription, getCourseListWfDescription, getCourseWfDescription, getExpressionsList, getIdField, getLocalAndExternalFields, getOrgUnitWfDescription, getPersonWfDescription, getProgramWfDescription, getSubProgramWfDescription, handleInputStream, service
protected Set<String> _mentionMetadataPaths
private Map<String,String> _degree2MentionMap
private ContentType _mentionContentType
private String _programToLinkCode
public CoAccreditedRemoteImportCDMFrComponent()
public void initialize() throws Exception
initialize
in interface Initializable
initialize
in class RemoteImportCDMFrComponent
Exception
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
configure
in class AbstractImportCDMFrComponent
ConfigurationException
protected void additionalParameters(Map<String,Object> parameters)
AbstractImportCDMFrComponent
additionalParameters
in class RemoteImportCDMFrComponent
parameters
- The parameters map to getprotected ModifiableDefaultContent _importOrSynchronizeContent(Document doc, Node contentNode, AbstractImportCDMFrComponent.ContentWorkflowDescription wfDescription, String title, String lang, String catalog, String syncCode, Logger logger)
AbstractImportCDMFrComponent
_importOrSynchronizeContent
in class AbstractImportCDMFrComponent
doc
- XML documentcontentNode
- Node of the contentwfDescription
- The workflow descriptiontitle
- The titlelang
- The langcatalog
- The catalogsyncCode
- The synchronization codelogger
- The loggerprivate String _getOrCreateMention(Document doc, Node contentNode, String mentionCode, String lang, String catalog, Logger logger)
private ModifiableDefaultContent _createMention(Document doc, Node contentNode, String mentionId, String catalog, String lang, Logger logger)
private ModifiableDefaultContent _getMention(String mentionCode, String degreeCode, String lang, String catalog)
protected void additionalOperationsBeforeSave(ModifiableDefaultContent content, Logger logger) throws RepositoryException
AbstractImportCDMFrComponent
additionalOperationsBeforeSave
in class RemoteImportCDMFrComponent
content
- The contentlogger
- The loggerRepositoryException
- if an error occursprivate boolean _synchronizeMentionMetadata(Document doc, Node contentNode, ModifiableDefaultContent mention, String metadataPath, String lang, Logger logger)