Interface PrintMediaService
- All Known Implementing Classes:
DefaultPrintMediaService
public interface PrintMediaService
Interface defining how to generate the labels.
Also, provides api to convert the
MediaModel into popup script-
Method Summary
Modifier and TypeMethodDescriptiongenerateHtmlMediaTemplate(MediaModel mediaModel) Generates an HTML page for the givenMediaModelgeneratePopupScriptForMedia(MediaModel mediaModel, String width, String height, String blockedPopupMessage) Generates the popup script for the givenMediaModel.getMediaForTemplate(String frontendTemplateName, BusinessProcessModel businessProcessModel) Generates theMediaModelfor the givenConsignmentModel
-
Method Details
-
getMediaForTemplate
MediaModel getMediaForTemplate(String frontendTemplateName, BusinessProcessModel businessProcessModel) Generates theMediaModelfor the givenConsignmentModel- Parameters:
frontendTemplateName- the templateName to generate theMediaModelbusinessProcessModel- theBusinessProcessModelfor which media needs to be generated- Returns:
- the generated
MediaModel
-
generatePopupScriptForMedia
String generatePopupScriptForMedia(MediaModel mediaModel, String width, String height, String blockedPopupMessage) Generates the popup script for the givenMediaModel.- Parameters:
mediaModel- theMediaModelto be rendered as html in popupwidth- the width of the popup windowheight- the height of the popup heightblockedPopupMessage- the localised error message if popups are not allowed to be open- Returns:
- the popup script to open a popup window with the rendered html equivalent of the given media object
-
generateHtmlMediaTemplate
Generates an HTML page for the givenMediaModel- Parameters:
mediaModel- theMediaModelto be rendered as an HTML page- Returns:
- the generated HTML page
-