Class OutputTemplateLessCompilerImpl
java.lang.Object
ch.tocco.nice2.reporting.impl.freemarker.utils.OutputTemplateLessCompilerImpl
- All Implemented Interfaces:
OutputTemplateLessCompiler
@Component
public class OutputTemplateLessCompilerImpl
extends Object
implements OutputTemplateLessCompiler
-
Constructor Summary
ConstructorDescriptionOutputTemplateLessCompilerImpl
(Context context, TemplateEngine templateEngine, LessCompiler lessCompiler, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptioncomposeCss
(String corporateDesign, Optional<Entity> outputTemplate) Composes the Report Less using the given Corporate_design unique_id and Output_template entity and compiles it to CSS.void
setStandardLess
(ModelResource standardLess) void
setStandardLessImportDir
(ModelResource standardLessImportDir)
-
Constructor Details
-
OutputTemplateLessCompilerImpl
public OutputTemplateLessCompilerImpl(Context context, TemplateEngine templateEngine, LessCompiler lessCompiler, SecurityManager securityManager)
-
-
Method Details
-
composeCss
Description copied from interface:OutputTemplateLessCompiler
Composes the Report Less using the given Corporate_design unique_id and Output_template entity and compiles it to CSS.- Specified by:
composeCss
in interfaceOutputTemplateLessCompiler
- Parameters:
corporateDesign
- the Corporate_design unique_id.outputTemplate
- If no outputTemplate is given, the corporateDesign css is returned.- Returns:
- the compiled CSS.
-
setStandardLess
-
setStandardLessImportDir
-