Package org.ametys.plugins.odfsync.cdmfr
Class ImportCDMFrContext
java.lang.Object
org.ametys.plugins.odfsync.cdmfr.ImportCDMFrContext
Context of imported content for CDM-fr
-
Constructor Summary
ConstructorDescriptionImportCDMFrContext
(SynchronizableContentsCollection scc, Document document, String lang, String catalog, Logger logger) Creates a CDM-fr contextImportCDMFrContext
(ImportCDMFrContext context) Creates a CDM-fr context from the given one -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the catalog which will contain the imported contentRetrieves the document that is being importedgetLang()
Retrieves the language of the imported contentRetrieves the loggergetSCC()
Retrieves the synchronizable content collectionvoid
Set the language of the content to import
-
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 collectiondocument
- the document that is being importedlang
- the language of the imported contentcatalog
- the catalog which will contain the imported contentlogger
- 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
Set the language of the content to import- Parameters:
lang
- the language of the content to import
-
getLang
Retrieves the language of the imported content- Returns:
- the language of the imported content
-
getCatalog
Retrieves the catalog which will contain the imported content- Returns:
- the catalog which will contain the imported content
-
getLogger
Retrieves the logger- Returns:
- the logger
-