Interface ImportCDMFrComponent

    • Method Detail

      • getIdField

        String getIdField()
        Return the attribute identifier for CDM-fr synchronization.
        Returns:
        The attribute name (cdmfrSyncCode)
      • getLocalAndExternalFields

        Set<StringgetLocalAndExternalFields​(Map<String,​Object> additionalParameters)
        Get the path of tri-state fields (with local and external values)
        Parameters:
        additionalParameters - Additional parameters
        Returns:
        the synchronized fields
      • getContent

        ModifiableContent getContent​(String contentType,
                                     String syncCode,
                                     ImportCDMFrContext context)
        Get the content from the synchronization code, the content type and the context.
        Parameters:
        contentType - The content type
        syncCode - The synchronization code
        context - the import context
        Returns:
        the retrieved content
      • getCatalogName

        String getCatalogName​(Element contentElement)
        Get the name of catalog to use for import
        Parameters:
        contentElement - Element of the content
        Returns:
        The catalog to used
      • getIdFromCDMThenCode

        String getIdFromCDMThenCode​(String tableRefId,
                                    String cdmCode)
        Get the content ID from the CDM code, if there is no match with the CDM code, then we search with the code. If nothing is found we return null.
        Parameters:
        tableRefId - The reference table ID
        cdmCode - The CDM code
        Returns:
        A content ID or null
      • additionalOperations

        ContentSynchronizationResult additionalOperations​(ModifiableContent content,
                                                          Map<String,​Object> additionalParameters,
                                                          org.slf4j.Logger logger)
        Add specific fields to the content during import or synchronization.
        Parameters:
        content - Content to update
        additionalParameters - Additional parameters
        logger - The logger
        Returns:
        The synchronization result of the additional operations