Interface PrintMediaService
-
- All Known Implementing Classes:
DefaultPrintMediaService
public interface PrintMediaService
Interface defining how to generate the labels. Also, provides api to convert theMediaModel
into popup script
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
generateHtmlMediaTemplate(MediaModel mediaModel)
Generates an HTML page for the givenMediaModel
java.lang.String
generatePopupScriptForMedia(MediaModel mediaModel, java.lang.String width, java.lang.String height, java.lang.String blockedPopupMessage)
Generates the popup script for the givenMediaModel
.MediaModel
getMediaForTemplate(java.lang.String frontendTemplateName, BusinessProcessModel businessProcessModel)
Generates theMediaModel
for the givenConsignmentModel
-
-
-
Method Detail
-
getMediaForTemplate
MediaModel getMediaForTemplate(java.lang.String frontendTemplateName, BusinessProcessModel businessProcessModel)
Generates theMediaModel
for the givenConsignmentModel
- Parameters:
frontendTemplateName
- the templateName to generate theMediaModel
businessProcessModel
- theBusinessProcessModel
for which media needs to be generated- Returns:
- the generated
MediaModel
-
generatePopupScriptForMedia
java.lang.String generatePopupScriptForMedia(MediaModel mediaModel, java.lang.String width, java.lang.String height, java.lang.String blockedPopupMessage)
Generates the popup script for the givenMediaModel
.- Parameters:
mediaModel
- theMediaModel
to 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
java.lang.String generateHtmlMediaTemplate(MediaModel mediaModel)
Generates an HTML page for the givenMediaModel
- Parameters:
mediaModel
- theMediaModel
to be rendered as an HTML page- Returns:
- the generated HTML page
-
-