Class ImportCDMFrContext

java.lang.Object
org.ametys.plugins.odfsync.cdmfr.ImportCDMFrContext

public final class ImportCDMFrContext extends Object
Context of imported content for CDM-fr
  • Constructor Details

    • ImportCDMFrContext

      Creates a CDM-fr context from the given one
      Parameters:
      context - the context to copy
    • ImportCDMFrContext

      public ImportCDMFrContext(SynchronizableContentsCollection scc, Document document, String lang, String catalog, Logger logger)
      Creates a CDM-fr context
      Parameters:
      scc - The synchronizable content collection
      document - the document that is being imported
      lang - the language of the imported content
      catalog - the catalog which will contain the imported content
      logger - the logger
  • Method Details

    • getSCC

      Retrieves the synchronizable content collection
      Returns:
      the synchronizable content collection
    • getDocument

      Retrieves the document that is being imported
      Returns:
      the document that is being imported
    • setLang

      public void setLang(String lang)
      Set the language of the content to import
      Parameters:
      lang - the language of the content to import
    • getLang

      public String getLang()
      Retrieves the language of the imported content
      Returns:
      the language of the imported content
    • getCatalog

      public String getCatalog()
      Retrieves the catalog which will contain the imported content
      Returns:
      the catalog which will contain the imported content
    • getLogger

      public Logger getLogger()
      Retrieves the logger
      Returns:
      the logger