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