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);
}
Aggregations