Package org.ametys.plugins.odfsync.cdmfr
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 Summary
Constructors Constructor Description ImportCDMFrContext(SynchronizableContentsCollection scc, Document document, String lang, String catalog, org.slf4j.Logger logger)
Creates a CDM-fr contextImportCDMFrContext(ImportCDMFrContext context)
Creates a CDM-fr context from the given one
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCatalog()
Retrieves the catalog which will contain the imported contentDocument
getDocument()
Retrieves the document that is being importedString
getLang()
Retrieves the language of the imported contentorg.slf4j.Logger
getLogger()
Retrieves the loggerSynchronizableContentsCollection
getSCC()
Retrieves the synchronizable content collectionvoid
setLang(String lang)
Set the language of the content to import
-
-
-
Constructor Detail
-
ImportCDMFrContext
public ImportCDMFrContext(ImportCDMFrContext context)
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, org.slf4j.Logger logger)
Creates a CDM-fr context- Parameters:
scc
- The synchronizable content collectiondocument
- the document that is being importedlang
- the language of the imported contentcatalog
- the catalog which will contain the imported contentlogger
- the logger
-
-
Method Detail
-
getSCC
public SynchronizableContentsCollection getSCC()
Retrieves the synchronizable content collection- Returns:
- the synchronizable content collection
-
getDocument
public Document 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 org.slf4j.Logger getLogger()
Retrieves the logger- Returns:
- the logger
-
-