Class ExtractionExecutionContext
java.lang.Object
org.ametys.plugins.extraction.execution.ExtractionExecutionContext
Context of extraction components execution
-
Constructor Summary
ConstructorDescriptionDefault constructorCreates a context by copy -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the variables to use in queriesGet the default locale for this context of extractionRetrieves the variables controlling display of optional columnsRetrieves the parents elements of the contextvoid
setClauseVariables
(Map<String, List<String>> clauseVariables) Sets the variables to use in queriesvoid
setDefaultLocale
(Locale defaultLocale) Set the default locale for this context of extraction The default locale is used for export of localized values such as multilingual strings or contents.void
setDisplayOptionalColumns
(Map<String, Boolean> displayOptionalColumns) Sets the variables controlling display of optional columnsvoid
setHierarchyElements
(List<ExtractionExecutionContextHierarchyElement> hierarchyElements) Sets the parents elements of the context
-
Constructor Details
-
ExtractionExecutionContext
public ExtractionExecutionContext()Default constructor -
ExtractionExecutionContext
Creates a context by copy- Parameters:
context
- context to copy
-
-
Method Details
-
setDefaultLocale
Set the default locale for this context of extraction The default locale is used for export of localized values such as multilingual strings or contents.- Parameters:
defaultLocale
- the default locale
-
getDefaultLocale
Get the default locale for this context of extraction- Returns:
- the default locale. Can be null.
-
getDisplayOptionalColumns
Retrieves the variables controlling display of optional columns- Returns:
- The variables controlling display of optional columns
-
setDisplayOptionalColumns
Sets the variables controlling display of optional columns- Parameters:
displayOptionalColumns
- The variables to set
-
getClauseVariables
Retrieves the variables to use in queries- Returns:
- the variables to use in queries
-
setClauseVariables
Sets the variables to use in queries- Parameters:
clauseVariables
- the variables to set
-
getHierarchyElements
Retrieves the parents elements of the context- Returns:
- the elements of the context
-
setHierarchyElements
public void setHierarchyElements(List<ExtractionExecutionContextHierarchyElement> hierarchyElements) Sets the parents elements of the context- Parameters:
hierarchyElements
- the hierarchy elements to set
-