Class DefaultPrintMediaService
- java.lang.Object
-
- de.hybris.platform.warehousing.labels.service.impl.DefaultPrintMediaService
-
- All Implemented Interfaces:
PrintMediaService
public class DefaultPrintMediaService extends java.lang.Object implements PrintMediaService
Default implementation ofPrintMediaService
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDOCUMENT_BODY_ENCODING
-
Constructor Summary
Constructors Constructor Description DefaultPrintMediaService()
-
Method Summary
All Methods Instance Methods Concrete 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 script of the popup for the givenMediaModelprotected DocumentGenerationServicegetDocumentGenerationService()protected ImpersonationServicegetImpersonationService()MediaModelgetMediaForTemplate(java.lang.String frontendTemplateName, BusinessProcessModel businessProcessModel)Generates theMediaModelfor the givenConsignmentModelprotected MediaServicegetMediaService()protected ModelServicegetModelService()protected OrderModelgetOrder(BusinessProcessModel businessProcessModel)ExtractsOrderModelfrom the business processvoidsetDocumentGenerationService(DocumentGenerationService documentGenerationService)voidsetImpersonationService(ImpersonationService impersonationService)voidsetMediaService(MediaService mediaService)voidsetModelService(ModelService modelService)
-
-
-
Field Detail
-
DOCUMENT_BODY_ENCODING
public static final java.lang.String DOCUMENT_BODY_ENCODING
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMediaForTemplate
public MediaModel getMediaForTemplate(java.lang.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 java.lang.String generatePopupScriptForMedia(MediaModel mediaModel, java.lang.String width, java.lang.String height, java.lang.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
public java.lang.String generateHtmlMediaTemplate(MediaModel mediaModel)
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
protected OrderModel getOrder(BusinessProcessModel businessProcessModel)
ExtractsOrderModelfrom the business process- Parameters:
businessProcessModel- theBusinessProcessModelfrom whichOrderModelneeds to be extracted- Returns:
- the
OrderModel
-
getImpersonationService
protected ImpersonationService getImpersonationService()
-
setImpersonationService
public void setImpersonationService(ImpersonationService impersonationService)
-
getDocumentGenerationService
protected DocumentGenerationService getDocumentGenerationService()
-
setDocumentGenerationService
public void setDocumentGenerationService(DocumentGenerationService documentGenerationService)
-
getMediaService
protected MediaService getMediaService()
-
setMediaService
public void setMediaService(MediaService mediaService)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-