Search in sources :

Example 1 with SourceDocument

use of de.metas.letters.model.MADBoilerPlate.SourceDocument in project metasfresh-webui-api by metasfresh.

the class DocumentCollection method createBoilerPlateContext.

public BoilerPlateContext createBoilerPlateContext(final DocumentPath documentPath) {
    if (documentPath == null) {
        return BoilerPlateContext.EMPTY;
    }
    final Document document = getDocumentReadonly(documentPath);
    final SourceDocument sourceDocument = new DocumentAsTemplateSourceDocument(document);
    return MADBoilerPlate.createEditorContext(sourceDocument);
}
Also used : SourceDocument(de.metas.letters.model.MADBoilerPlate.SourceDocument) SourceDocument(de.metas.letters.model.MADBoilerPlate.SourceDocument)

Aggregations

SourceDocument (de.metas.letters.model.MADBoilerPlate.SourceDocument)1