public class ConsolidatedPickSlipContext extends AbstractDocumentContext<BusinessProcessModel>
DOCUMENT_LANGUAGEBASE_SITE, BASE_THEME_URL, BASE_URL, MEDIA_BASE_URL, MEDIA_SECURE_BASE_URL, SECURE_BASE_URL, THEME| Constructor and Description |
|---|
ConsolidatedPickSlipContext() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<ConsolidatedPickSlipFormEntry> |
createPickSlipFormEntries(java.util.List<ConsignmentEntryModel> consignmentEntries)
Creates a list of
ConsignmentEntryModel. |
java.lang.String |
escapeHtml(java.lang.String stringToEscape)
Escapes String to generate safe HTML
|
protected java.util.Collection<AllocationEventModel> |
extractAllocationEvents(ConsignmentEntryModel consignmentEntryModel)
Extracts the bin location of the product for the selected
ConsignmentEntryModel |
protected java.lang.String |
extractBin(AllocationEventModel allocationEventModel)
Extracts the bin out of the
StockLevelModel in the AllocationEventModel |
protected java.util.List<ConsignmentModel> |
extractConsignments(BusinessProcessModel businessProcessModel)
|
java.util.List<ConsignmentModel> |
getConsignmentList() |
protected java.util.Comparator<ConsolidatedPickSlipFormEntry> |
getConsolidatedPickSlipComparator() |
DateTool |
getDate() |
protected LanguageModel |
getDocumentLanguage(BusinessProcessModel businessProcessModel) |
java.util.List<ConsolidatedPickSlipFormEntry> |
getFormEntries() |
protected InventoryEventService |
getInventoryEventService() |
java.lang.String |
getProductImageURL(ProductModel productModel)
Extracts the image url for the thumbnail of a
ProductModel |
int |
getRowQuantity(int columns)
Returns the quantity of row for the amount of column based on the list of
ConsignmentModel |
protected BaseSiteModel |
getSite(BusinessProcessModel businessProcessModel) |
void |
init(BusinessProcessModel businessProcessModel,
DocumentPageModel documentPageModel) |
void |
setConsignmentList(java.util.List<ConsignmentModel> consignmentList) |
void |
setConsolidatedPickSlipComparator(java.util.Comparator<ConsolidatedPickSlipFormEntry> consolidatedPickSlipComparator) |
void |
setFormEntries(java.util.List<ConsolidatedPickSlipFormEntry> formEntries) |
void |
setInventoryEventService(InventoryEventService inventoryEventService) |
getDocumentLanguagegetBaseSite, getBaseThemeUrl, getBaseUrl, getCmsSlotContents, getMediaBaseUrl, getMediaSecureBaseUrl, getMessage, getMessages, getSecureBaseUrl, getSiteBaseUrlResolutionService, getTheme, getUrlEncoderService, getUrlEncodingAttributes, init, setBaseSite, setCmsSlotContents, setMessages, setSiteBaseUrlResolutionService, setUrlEncoderService, setUrlEncodingAttributespublic void init(BusinessProcessModel businessProcessModel, DocumentPageModel documentPageModel)
init in class AbstractDocumentContext<BusinessProcessModel>public java.lang.String escapeHtml(java.lang.String stringToEscape)
stringToEscape - String to escapeprotected java.util.List<ConsolidatedPickSlipFormEntry> createPickSlipFormEntries(java.util.List<ConsignmentEntryModel> consignmentEntries)
ConsignmentEntryModel. Groups by product and bin and sorts using a comparator.consignmentEntries - Consignment Entriesprotected java.lang.String extractBin(AllocationEventModel allocationEventModel)
StockLevelModel in the AllocationEventModelallocationEventModel - the AllocationEventModelprotected java.util.List<ConsignmentModel> extractConsignments(BusinessProcessModel businessProcessModel)
businessProcessModel - the businessProcess containing the consignmentsConsignmentModelprotected BaseSiteModel getSite(BusinessProcessModel businessProcessModel)
getSite in class AbstractDocumentContext<BusinessProcessModel>protected LanguageModel getDocumentLanguage(BusinessProcessModel businessProcessModel)
getDocumentLanguage in class AbstractDocumentContext<BusinessProcessModel>protected java.util.Collection<AllocationEventModel> extractAllocationEvents(ConsignmentEntryModel consignmentEntryModel)
ConsignmentEntryModelconsignmentEntryModel - the ConsignmentEntryModel for which we request the Consolidated Pick Slip labelpublic java.lang.String getProductImageURL(ProductModel productModel)
ProductModelproductModel - the ProductModel for which we request Product Imagepublic int getRowQuantity(int columns)
ConsignmentModelcolumns - amount of columns neededpublic DateTool getDate()
public java.util.List<ConsolidatedPickSlipFormEntry> getFormEntries()
public void setFormEntries(java.util.List<ConsolidatedPickSlipFormEntry> formEntries)
public java.util.List<ConsignmentModel> getConsignmentList()
public void setConsignmentList(java.util.List<ConsignmentModel> consignmentList)
protected java.util.Comparator<ConsolidatedPickSlipFormEntry> getConsolidatedPickSlipComparator()
public void setConsolidatedPickSlipComparator(java.util.Comparator<ConsolidatedPickSlipFormEntry> consolidatedPickSlipComparator)
protected InventoryEventService getInventoryEventService()
public void setInventoryEventService(InventoryEventService inventoryEventService)
Copyright © 2018 SAP SE. All Rights Reserved.