public class DefaultPrintMediaService extends java.lang.Object implements PrintMediaService
PrintMediaService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DOCUMENT_BODY_ENCODING |
| Constructor and Description |
|---|
DefaultPrintMediaService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateHtmlMediaTemplate(MediaModel mediaModel)
Generates an HTML page for the given
MediaModel |
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 given
MediaModel |
protected DocumentGenerationService |
getDocumentGenerationService() |
protected ImpersonationService |
getImpersonationService() |
MediaModel |
getMediaForTemplate(java.lang.String frontendTemplateName,
BusinessProcessModel businessProcessModel)
Generates the
MediaModel for the given ConsignmentModel |
protected MediaService |
getMediaService() |
protected ModelService |
getModelService() |
protected OrderModel |
getOrder(BusinessProcessModel businessProcessModel)
Extracts
OrderModel from the business process |
void |
setDocumentGenerationService(DocumentGenerationService documentGenerationService) |
void |
setImpersonationService(ImpersonationService impersonationService) |
void |
setMediaService(MediaService mediaService) |
void |
setModelService(ModelService modelService) |
public static final java.lang.String DOCUMENT_BODY_ENCODING
public MediaModel getMediaForTemplate(java.lang.String frontendTemplateName, BusinessProcessModel businessProcessModel)
PrintMediaServiceMediaModel for the given ConsignmentModelgetMediaForTemplate in interface PrintMediaServicefrontendTemplateName - the templateName to generate the MediaModelbusinessProcessModel - the BusinessProcessModel for which media needs to be generatedMediaModelpublic java.lang.String generatePopupScriptForMedia(MediaModel mediaModel, java.lang.String width, java.lang.String height, java.lang.String blockedPopupMessage)
MediaModelgeneratePopupScriptForMedia in interface PrintMediaServicemediaModel - the MediaModel for which popup script needs to be generatedwidth - the width of the popupheight - the height of the popupblockedPopupMessage - the localised message if the popups are blockedpublic java.lang.String generateHtmlMediaTemplate(MediaModel mediaModel)
PrintMediaServiceMediaModelgenerateHtmlMediaTemplate in interface PrintMediaServicemediaModel - the MediaModel to be rendered as an HTML pageprotected OrderModel getOrder(BusinessProcessModel businessProcessModel)
OrderModel from the business processbusinessProcessModel - the BusinessProcessModel from which OrderModel needs to be extractedOrderModelprotected ImpersonationService getImpersonationService()
public void setImpersonationService(ImpersonationService impersonationService)
protected DocumentGenerationService getDocumentGenerationService()
public void setDocumentGenerationService(DocumentGenerationService documentGenerationService)
protected MediaService getMediaService()
public void setMediaService(MediaService mediaService)
protected ModelService getModelService()
public void setModelService(ModelService modelService)
Copyright © 2018 SAP SE. All Rights Reserved.