Class DefaultPrintMediaService
java.lang.Object
de.hybris.platform.warehousing.labels.service.impl.DefaultPrintMediaService
- All Implemented Interfaces:
PrintMediaService
Default implementation of
PrintMediaService-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateHtmlMediaTemplate(MediaModel mediaModel) Generates an HTML page for the givenMediaModelgeneratePopupScriptForMedia(MediaModel mediaModel, String width, String height, String blockedPopupMessage) Generates the script of the popup for the givenMediaModelprotected DocumentGenerationServiceprotected ImpersonationServicegetMediaForTemplate(String frontendTemplateName, BusinessProcessModel businessProcessModel) Generates theMediaModelfor the givenConsignmentModelprotected MediaServiceprotected ModelServiceprotected OrderModelgetOrder(BusinessProcessModel businessProcessModel) ExtractsOrderModelfrom the business processvoidsetDocumentGenerationService(DocumentGenerationService documentGenerationService) voidsetImpersonationService(ImpersonationService impersonationService) voidsetMediaService(MediaService mediaService) voidsetModelService(ModelService modelService)
-
Field Details
-
DOCUMENT_BODY_ENCODING
- See Also:
-
-
Constructor Details
-
DefaultPrintMediaService
public DefaultPrintMediaService()
-
-
Method Details
-
getMediaForTemplate
public MediaModel getMediaForTemplate(String frontendTemplateName, BusinessProcessModel businessProcessModel) Description copied from interface:PrintMediaServiceGenerates theMediaModelfor the givenConsignmentModel- Specified by:
getMediaForTemplatein interfacePrintMediaService- Parameters:
frontendTemplateName- the templateName to generate theMediaModelbusinessProcessModel- theBusinessProcessModelfor which media needs to be generated- Returns:
- the generated
MediaModel
-
generatePopupScriptForMedia
public String generatePopupScriptForMedia(MediaModel mediaModel, String width, String height, String blockedPopupMessage) Generates the script of the popup for the givenMediaModel- Specified by:
generatePopupScriptForMediain interfacePrintMediaService- Parameters:
mediaModel- theMediaModelfor which popup script needs to be generatedwidth- the width of the popupheight- the height of the popupblockedPopupMessage- the localised message if the popups are blocked- Returns:
- the script of the popup
-
generateHtmlMediaTemplate
Description copied from interface:PrintMediaServiceGenerates an HTML page for the givenMediaModel- Specified by:
generateHtmlMediaTemplatein interfacePrintMediaService- Parameters:
mediaModel- theMediaModelto be rendered as an HTML page- Returns:
- the generated HTML page
-
getOrder
ExtractsOrderModelfrom the business process- Parameters:
businessProcessModel- theBusinessProcessModelfrom whichOrderModelneeds to be extracted- Returns:
- the
OrderModel
-
getImpersonationService
-
setImpersonationService
-
getDocumentGenerationService
-
setDocumentGenerationService
-
getMediaService
-
setMediaService
-
getModelService
-
setModelService
-