public class DefaultPrintMediaService extends Object implements PrintMediaService
PrintMediaService| Modifier and Type | Field and Description |
|---|---|
static String |
BUSINESS_PROCESS_MUST_NOT_BE_NULL_MSG |
static String |
DOCUMENT_BODY_ENCODING |
| Constructor and Description |
|---|
DefaultPrintMediaService() |
| Modifier and Type | Method and Description |
|---|---|
String |
generatePopupScriptForMedia(MediaModel mediaModel,
String width,
String height,
String blockedPopupMessage)
Generates the script of the popup for the given
MediaModel |
String |
generateTrackingId()
Deprecated.
|
protected DocumentGenerationService |
getDocumentGenerationService() |
protected ImpersonationService |
getImpersonationService() |
MediaModel |
getMediaForTemplate(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 String BUSINESS_PROCESS_MUST_NOT_BE_NULL_MSG
public static final String DOCUMENT_BODY_ENCODING
public MediaModel getMediaForTemplate(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 generatedMediaModelprotected OrderModel getOrder(BusinessProcessModel businessProcessModel)
OrderModel from the business processbusinessProcessModel - the BusinessProcessModel from which OrderModel needs to be extractedOrderModelpublic String generatePopupScriptForMedia(MediaModel mediaModel, String width, String height, 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 blocked@Deprecated public String generateTrackingId()
PrintMediaServicegenerateTrackingId in interface PrintMediaServiceprotected 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 © 2017 SAP SE. All Rights Reserved.