public class DefaultWarehousingConsignmentFacade extends OmsBaseFacade implements WarehousingConsignmentFacade
WarehousingConsignmentFacade.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CAPTURE_PAYMENT_ON_CONSIGNMENT |
protected static java.lang.String |
CONSIGNMENT_ACTION_EVENT_NAME |
protected static java.lang.String |
CONSOLIDATED_PICK_SLIP_DOCUMENT_TEMPLATE |
protected static java.lang.String |
DECLINE_ENTRIES |
protected static java.lang.String |
EXPORT_FORM_DOCUMENT_TEMPLATE |
protected static java.lang.String |
HANDLE_MANUAL_PAYMENT_CAPTURE_CHOICE |
protected static java.lang.String |
HANDLE_MANUAL_TAX_COMMIT_CHOICE |
protected static java.lang.String |
PACK_CONSIGNMENT_CHOICE |
protected static java.lang.String |
PACK_SLIP_DOCUMENT_TEMPLATE |
protected static java.lang.String |
PACKING_TEMPLATE_CODE |
protected static java.lang.String |
PICK_SLIP_DOCUMENT_TEMPLATE |
protected static java.lang.String |
PICKING_TEMPLATE_CODE |
protected static java.lang.String |
REALLOCATE_CONSIGNMENT_CHOICE |
protected static java.lang.String |
RETURN_FORM_DOCUMENT_TEMPLATE |
protected static java.lang.String |
RETURN_SHIPPING_LABEL_DOCUMENT_TEMPLATE |
protected static java.lang.String |
SHIPPING_LABEL_DOCUMENT_TEMPLATE |
| Constructor and Description |
|---|
DefaultWarehousingConsignmentFacade() |
convertSearchPageData, createPaginationData, discardOrderSnapshot, getModelService, getOrderGenericDao, getOrderModelForCode, setModelService, setOrderGenericDaoprotected static final java.lang.String CONSIGNMENT_ACTION_EVENT_NAME
protected static final java.lang.String REALLOCATE_CONSIGNMENT_CHOICE
protected static final java.lang.String DECLINE_ENTRIES
protected static final java.lang.String PICK_SLIP_DOCUMENT_TEMPLATE
protected static final java.lang.String PICKING_TEMPLATE_CODE
protected static final java.lang.String CONSOLIDATED_PICK_SLIP_DOCUMENT_TEMPLATE
protected static final java.lang.String PACK_SLIP_DOCUMENT_TEMPLATE
protected static final java.lang.String PACKING_TEMPLATE_CODE
protected static final java.lang.String PACK_CONSIGNMENT_CHOICE
protected static final java.lang.String EXPORT_FORM_DOCUMENT_TEMPLATE
protected static final java.lang.String SHIPPING_LABEL_DOCUMENT_TEMPLATE
protected static final java.lang.String RETURN_SHIPPING_LABEL_DOCUMENT_TEMPLATE
protected static final java.lang.String RETURN_FORM_DOCUMENT_TEMPLATE
protected static final java.lang.String CAPTURE_PAYMENT_ON_CONSIGNMENT
protected static final java.lang.String HANDLE_MANUAL_PAYMENT_CAPTURE_CHOICE
protected static final java.lang.String HANDLE_MANUAL_TAX_COMMIT_CHOICE
public SearchPageData<ConsignmentData> getConsignments(PageableData pageableData)
WarehousingConsignmentFacadegetConsignments in interface WarehousingConsignmentFacadepageableData - pageable object that contains info on the number or pages and how many items in each page
in addition the sorting infopublic SearchPageData<ConsignmentData> getConsignmentsByStatuses(PageableData pageableData, java.util.Set<ConsignmentStatus> consignmentStatusSet)
WarehousingConsignmentFacadegetConsignmentsByStatuses in interface WarehousingConsignmentFacadepageableData - pageable object that contains info on the number or pages and how many items in each page
in addition the sorting infoconsignmentStatusSet - set of ConsignmentStatus, in which we want to get list of consignments forpublic SearchPageData<ConsignmentEntryData> getConsignmentEntriesForConsignmentCode(java.lang.String code, PageableData pageableData)
WarehousingConsignmentFacadeConsignmentModel.CODEgetConsignmentEntriesForConsignmentCode in interface WarehousingConsignmentFacadecode - the consignment's codepageableData - pageable object that contains info on the number or pages and how many items in each page in addition
the sorting infopublic ConsignmentData getConsignmentForCode(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModel.CODE.getConsignmentForCode in interface WarehousingConsignmentFacadecode - the consignment's code.public java.util.List<ConsignmentStatus> getConsignmentStatuses()
WarehousingConsignmentFacadegetConsignmentStatuses in interface WarehousingConsignmentFacadeConsignmentStatuspublic java.util.List<DeclineReason> getDeclineReasons()
WarehousingConsignmentFacadegetDeclineReasons in interface WarehousingConsignmentFacadeDeclineReasonpublic SearchPageData<WarehouseData> getSourcingLocationsForConsignmentCode(java.lang.String code, PageableData pageableData)
WarehousingConsignmentFacadeConsignmentModel.CODE.getSourcingLocationsForConsignmentCode in interface WarehousingConsignmentFacadecode - the consignment codepageableData - pageable object that contains info on the number or pages and how many items in each page
in addition the sorting infopublic void confirmShipConsignment(java.lang.String code)
WarehousingConsignmentFacadeconfirmShipConsignment in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODE for the ConsignmentModel to be shippedpublic void confirmPickupConsignment(java.lang.String code)
WarehousingConsignmentFacadeconfirmPickupConsignment in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODE for the ConsignmentModel to be picked uppublic boolean isConsignmentConfirmable(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModel.CODEisConsignmentConfirmable in interface WarehousingConsignmentFacadecode - the code for the consignment to be confirmedpublic PackagingInfoData getConsignmentPackagingInformation(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModel.CODE.getConsignmentPackagingInformation in interface WarehousingConsignmentFacadecode - the consignment code for which to retrieve the packaging informationPackagingInfoDatapublic ConsignmentData updateConsignmentPackagingInformation(java.lang.String code, PackagingInfoData packagingInfoData)
WarehousingConsignmentFacadeConsignmentModel.CODE.updateConsignmentPackagingInformation in interface WarehousingConsignmentFacadecode - the consignment code for which the packaging information will be updatedpackagingInfoData - the new packaging information with which to update the consignmentConsignmentDatapublic void reallocateConsignment(java.lang.String consignmentCode,
ConsignmentReallocationData consignmentReallocationData)
WarehousingConsignmentFacadeConsignmentReallocationDatareallocateConsignment in interface WarehousingConsignmentFacadeconsignmentCode - the ConsignmentData.code which needs to be reallocatedconsignmentReallocationData - the ConsignmentReallocationData containing the DeclineEntryDatapublic java.lang.String pickConsignment(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModel and return its pick slippickConsignment in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEpublic java.lang.String pickConsignment(java.lang.String code,
boolean printSlip)
WarehousingConsignmentFacadeConsignmentModel and optionally return its pick slippickConsignment in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEprintSlip - flag used to check if the pick slip should be returnedpublic java.lang.String consolidatedPickSlip(ConsignmentCodeDataList consignmentCodeDataList)
WarehousingConsignmentFacadeConsignmentCodeDataList.
The API also performs the Pick operation on each ConsignmentModel in the listconsolidatedPickSlip in interface WarehousingConsignmentFacadeconsignmentCodeDataList - the ConsignmentCodeDataList containing mulitple ConsignmentModel.CODEpublic java.lang.String packConsignment(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModel and its pack labelpackConsignment in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEpublic java.lang.String packConsignment(java.lang.String code,
boolean printSlip)
WarehousingConsignmentFacadeConsignmentModel and optionally return its pack labelpackConsignment in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEprintSlip - flag used to check if the pack label should be returnedpublic java.lang.String getExportForm(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModelgetExportForm in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEpublic java.lang.String getShippingLabel(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModelgetShippingLabel in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEpublic java.lang.String getReturnShippingLabel(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModelgetReturnShippingLabel in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEpublic java.lang.String getReturnForm(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModelgetReturnForm in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEpublic PaymentTransactionEntryData takePayment(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModeltakePayment in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEPaymentTransactionEntryData with the recorded transactionpublic void manuallyReleasePaymentCapture(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModel after a payment capture failuremanuallyReleasePaymentCapture in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEpublic void manuallyReleaseTaxCommit(java.lang.String code)
WarehousingConsignmentFacadeConsignmentModel after a tax commit failuremanuallyReleaseTaxCommit in interface WarehousingConsignmentFacadecode - the ConsignmentModel.CODEprotected PaymentTransactionEntryModel performPaymentCapture(ConsignmentModel consignmentModel)
ConsignmentModelconsignmentModel - the ConsignmentModel whose amount is to be capturedPaymentTransactionEntryModel for the transactionprotected java.lang.String packConsignment(ConsignmentModel consignmentModel, boolean printSlip)
ConsignmentModelconsignmentModel - the ConsignmentModel to be packedprintSlip - whether or not the generate the pack slipjava.lang.IllegalStateException - throw an IllegalStateException if the ConsignmentModel has already been
packed and if the slip should not be generatedprotected ConsignmentModel getConsignmentModelForCode(java.lang.String code)
ConsignmentModel for the given ConsignmentModel.CODEcode - the consignment's codeprotected java.util.List<WarehouseModel> getSublistOfSourcingLocations(PageableData pageableData, java.util.List<WarehouseModel> locations)
pageableData - the object which will filter the list with its page related informationlocations - contains all available sourcing locations.protected DeclineEntry populateDeclineEntry(DeclineEntryData declineEntryData, ConsignmentReallocationData consignmentReallocationData, ConsignmentEntryModel consignmentEntryModel)
DeclineEntry from given DeclineEntryDatadeclineEntryData - the given DeclineEntryData to prepare DeclineEntryconsignmentReallocationData - the ConsignmentReallocationData to check if ConsignmentReallocationData.globalComment, ConsignmentReallocationData.globalReallocationWarehouseCode and ConsignmentReallocationData.getGlobalReason() are presentconsignmentEntryModel - the ConsignmentEntryModelDeclineEntry populated from the given paramsprotected void validateDeclineEntryDataToReallocate(ConsignmentReallocationData consignmentReallocationData, DeclineEntryData declineEntryData, ConsignmentEntryModel consignmentEntry)
DeclineEntryData to be reallocated against given ConsignmentEntryModel.consignmentReallocationData - the ConsignmentReallocationData to be validateddeclineEntryData - the DeclineEntryData to be validatedconsignmentEntry - the ConsignmentEntryModel, against which given declineEntryData needs to be validatedprotected void buildDeclineParam(ConsignmentProcessModel processModel, java.util.List<DeclineEntry> entriesToReallocate)
processModel - the process model for which the context parameters has to be registerentriesToReallocate - the entries to be reallocatedprotected void cleanDeclineParam(ConsignmentProcessModel processModel)
BusinessProcessModel.CONTEXTPARAMETERS(if any exists), before attempting to declineprocessModel - the ConsignmentProcessModel for the consignment to be declinedprotected void performPickWorkflowAction(ConsignmentModel consignmentModel, boolean printSlip)
WorkflowActionModel for the given ConsignmentModel if the action has not been performed yet.
Throws an IllegalStateException if the slip should not be generated and if the consignment was already pickedconsignmentModel - the ConsignmentModel for which the action will potentially be performedjava.lang.IllegalStateException - throw an IllegalStateException in either of the following 2 cases:
1. If the ConsignmentModel has already been picked and if the slip should not be generated
2. If the WorkflowActionModel is null and if the slip should not be generatedprotected void performPickWorkflowAction(ConsignmentModel consignmentModel)
WorkflowActionModel for the given ConsignmentModel if the action has not been performed yet.consignmentModel - the ConsignmentModel for which the action will potentially be performedprotected BusinessProcessModel generateBusinessProcess(java.util.List<ConsignmentModel> consignmentModels)
BusinessProcessModel with a List so that it can be passed to the PrintMediaServiceconsignmentModels - the List which will be passed to the new business processBusinessProcessModelprotected java.lang.String generateMediaTemplate(java.lang.String code,
java.lang.String template)
ConsignmentModel.CODE and velocity templatecode - the ConsignmentModel.CODE for which to generate a templatetemplate - the template with which the media will be generatedprotected EnumerationService getEnumerationService()
public void setEnumerationService(EnumerationService enumerationService)
protected GenericDao<ConsignmentModel> getConsignmentGenericDao()
public void setConsignmentGenericDao(GenericDao<ConsignmentModel> consignmentGenericDao)
protected PagedGenericDao<ConsignmentModel> getConsignmentPagedGenericDao()
public void setConsignmentPagedGenericDao(PagedGenericDao<ConsignmentModel> consignmentPagedGenericDao)
protected Converter<ConsignmentModel,ConsignmentData> getConsignmentConverter()
public void setConsignmentConverter(Converter<ConsignmentModel,ConsignmentData> consignmentConverter)
protected Converter<WarehouseModel,WarehouseData> getWarehouseConverter()
public void setWarehouseConverter(Converter<WarehouseModel,WarehouseData> warehouseConverter)
protected Converter<PackagingInfoModel,PackagingInfoData> getPackagingInfoConverter()
public void setPackagingInfoConverter(Converter<PackagingInfoModel,PackagingInfoData> packagingInfoConverter)
protected Converter<PackagingInfoData,PackagingInfoModel> getReversePackagingInfoConverter()
public void setReversePackagingInfoConverter(Converter<PackagingInfoData,PackagingInfoModel> reversePackagingInfoConverter)
protected SearchByStatusPagedGenericDao<ConsignmentModel> getConsignmentSearchByStatusPagedDao()
public void setConsignmentSearchByStatusPagedDao(SearchByStatusPagedGenericDao<ConsignmentModel> consignmentSearchByStatusPagedDao)
protected PagedGenericDao getConsignmentEntryPagedDao()
public void setConsignmentEntryPagedDao(PagedGenericDao consignmentEntryPagedDao)
protected Converter<ConsignmentEntryModel,ConsignmentEntryData> getConsignmentEntryConverter()
public void setConsignmentEntryConverter(Converter<ConsignmentEntryModel,ConsignmentEntryData> consignmentEntryConverter)
protected WarehousingShippingService getWarehousingShippingService()
public void setWarehousingShippingService(WarehousingShippingService warehousingShippingService)
protected SourcingFilterProcessor getSourcingFilterProcessor()
public void setSourcingFilterProcessor(SourcingFilterProcessor sourcingFilterProcessor)
public WarehouseService getWarehouseService()
public void setWarehouseService(WarehouseService warehouseService)
protected WarehousingBusinessProcessService<ConsignmentModel> getConsignmentBusinessProcessService()
public void setConsignmentBusinessProcessService(WarehousingBusinessProcessService<ConsignmentModel> consignmentBusinessProcessService)
protected WarehouseStockService getWarehouseStockService()
public void setWarehouseStockService(WarehouseStockService warehouseStockService)
protected java.util.List<ConsignmentStatus> getReallocableConsignmentStatusList()
public void setReallocableConsignmentStatusList(java.util.List<ConsignmentStatus> reallocableConsignmentStatusList)
protected PrintMediaService getPrintMediaService()
public void setPrintMediaService(PrintMediaService printMediaService)
protected WarehousingConsignmentWorkflowService getWarehousingConsignmentWorkflowService()
public void setWarehousingConsignmentWorkflowService(WarehousingConsignmentWorkflowService warehousingConsignmentWorkflowService)
protected Converter<PaymentTransactionEntryModel,PaymentTransactionEntryData> getPaymentTransactionEntryConverter()
public void setPaymentTransactionEntryConverter(Converter<PaymentTransactionEntryModel,PaymentTransactionEntryData> paymentTransactionEntryConverter)
protected ConsignmentAmountCalculationStrategy getConsignmentAmountCalculationStrategy()
public void setConsignmentAmountCalculationStrategy(ConsignmentAmountCalculationStrategy consignmentAmountCalculationStrategy)
protected PaymentService getPaymentService()
public void setPaymentService(PaymentService paymentService)
protected ConfigurationService getConfigurationService()
public void setConfigurationService(ConfigurationService configurationService)
Copyright © 2018 SAP SE. All Rights Reserved.