Class OrderLogic
java.lang.Object
com.echothree.util.server.control.BaseLogic
com.echothree.model.control.order.server.logic.OrderLogic
- Direct Known Subclasses:
PurchaseOrderLogic
,SalesOrderLogic
,SalesOrderPaymentPreferenceLogic
,SalesOrderShipmentGroupLogic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkItemAgainstOrderPaymentPreferences
(Session session, ExecutionErrorAccumulator eea, Order order, Item item, BasePK evaluatedBy) void
checkItemAgainstShippingMethod
(Session session, ExecutionErrorAccumulator eea, OrderShipmentGroup orderShipmentGroup, Item item, BasePK evaluatedBy) createOrder
(ExecutionErrorAccumulator eea, OrderType orderType, Sequence sequence, OrderPriority orderPriority, Currency currency, Boolean holdUntilComplete, Boolean allowBackorders, Boolean allowSubstitutions, Boolean allowCombiningShipments, Term term, FreeOnBoard freeOnBoard, String reference, String description, CancellationPolicy cancellationPolicy, ReturnPolicy returnPolicy, Boolean taxable, BasePK createdBy) createOrderPaymentPreference
(Session session, ExecutionErrorAccumulator eea, Order order, Integer orderPaymentPreferenceSequence, PaymentMethod paymentMethod, PartyPaymentMethod partyPaymentMethod, Boolean wasPresent, Long maximumAmount, Integer sortOrder, BasePK createdBy) createOrderShipmentGroup
(ExecutionErrorAccumulator eea, Order order, Integer orderShipmentGroupSequence, ItemDeliveryType itemDeliveryType, Boolean isDefault, PartyContactMechanism partyContactMechanism, ShippingMethod shippingMethod, Boolean holdUntilComplete, BasePK createdBy) getDefaultOrderShipmentGroup
(Order order, ItemDeliveryType itemDeliveryType) static OrderLogic
getItemsFromOrder
(Order order) getOrderAliasTypeByName
(ExecutionErrorAccumulator eea, OrderType orderType, String orderAliasTypeName) getOrderByName
(ExecutionErrorAccumulator eea, String orderTypeName, String orderName) getOrderByNameForUpdate
(ExecutionErrorAccumulator eea, String orderTypeName, String orderName) getOrderCurrency
(Order order) getOrderName
(ExecutionErrorAccumulator eea, OrderType orderType, Sequence sequence) getOrderPaymentPreferenceByName
(ExecutionErrorAccumulator eea, String orderTypeName, String orderName, String orderPaymentPreferenceSequence) getOrderPaymentPreferenceByNameForUpdate
(ExecutionErrorAccumulator eea, String orderTypeName, String orderName, String orderPaymentPreferenceSequence) getOrderPriorityByName
(ExecutionErrorAccumulator eea, String orderTypeName, String orderPriorityName) getOrderPriorityByNameForUpdate
(ExecutionErrorAccumulator eea, String orderTypeName, String orderPriorityName) getOrderRoleTypeByName
(ExecutionErrorAccumulator eea, String orderRoleTypeName) getOrderSequence
(ExecutionErrorAccumulator eea, OrderType orderType) getOrderSequenceType
(ExecutionErrorAccumulator eea, OrderType orderType) getOrderTypeByName
(ExecutionErrorAccumulator eea, String orderTypeName) Methods inherited from class com.echothree.util.server.control.BaseLogic
addExecutionError, addSecurityMessage, getEntityInstanceByBaseEntity, getEntityInstanceByBasePK, getSession, handleExecutionError, handleSecurityMessage, hasExecutionErrors
-
Constructor Details
-
OrderLogic
protected OrderLogic()
-
-
Method Details
-
getInstance
-
getOrderCurrency
-
getOrderTypeByName
-
getOrderRoleTypeByName
public OrderRoleType getOrderRoleTypeByName(ExecutionErrorAccumulator eea, String orderRoleTypeName) -
getOrderSequenceType
-
getOrderSequence
-
getOrderName
-
createOrder
public Order createOrder(ExecutionErrorAccumulator eea, OrderType orderType, Sequence sequence, OrderPriority orderPriority, Currency currency, Boolean holdUntilComplete, Boolean allowBackorders, Boolean allowSubstitutions, Boolean allowCombiningShipments, Term term, FreeOnBoard freeOnBoard, String reference, String description, CancellationPolicy cancellationPolicy, ReturnPolicy returnPolicy, Boolean taxable, BasePK createdBy) -
getOrderAliasTypeByName
public OrderAliasType getOrderAliasTypeByName(ExecutionErrorAccumulator eea, OrderType orderType, String orderAliasTypeName) -
getOrderByName
-
getOrderByNameForUpdate
public Order getOrderByNameForUpdate(ExecutionErrorAccumulator eea, String orderTypeName, String orderName) -
getOrderPriorityByName
public OrderPriority getOrderPriorityByName(ExecutionErrorAccumulator eea, String orderTypeName, String orderPriorityName) -
getOrderPriorityByNameForUpdate
public OrderPriority getOrderPriorityByNameForUpdate(ExecutionErrorAccumulator eea, String orderTypeName, String orderPriorityName) -
createOrderShipmentGroup
public OrderShipmentGroup createOrderShipmentGroup(ExecutionErrorAccumulator eea, Order order, Integer orderShipmentGroupSequence, ItemDeliveryType itemDeliveryType, Boolean isDefault, PartyContactMechanism partyContactMechanism, ShippingMethod shippingMethod, Boolean holdUntilComplete, BasePK createdBy) -
getDefaultOrderShipmentGroup
public OrderShipmentGroup getDefaultOrderShipmentGroup(Order order, ItemDeliveryType itemDeliveryType) -
getItemsFromOrder
-
createOrderPaymentPreference
public OrderPaymentPreference createOrderPaymentPreference(Session session, ExecutionErrorAccumulator eea, Order order, Integer orderPaymentPreferenceSequence, PaymentMethod paymentMethod, PartyPaymentMethod partyPaymentMethod, Boolean wasPresent, Long maximumAmount, Integer sortOrder, BasePK createdBy) -
getOrderPaymentPreferenceByName
public OrderPaymentPreference getOrderPaymentPreferenceByName(ExecutionErrorAccumulator eea, String orderTypeName, String orderName, String orderPaymentPreferenceSequence) -
getOrderPaymentPreferenceByNameForUpdate
public OrderPaymentPreference getOrderPaymentPreferenceByNameForUpdate(ExecutionErrorAccumulator eea, String orderTypeName, String orderName, String orderPaymentPreferenceSequence) -
checkItemAgainstOrderPaymentPreferences
public void checkItemAgainstOrderPaymentPreferences(Session session, ExecutionErrorAccumulator eea, Order order, Item item, BasePK evaluatedBy) -
checkItemAgainstShippingMethod
public void checkItemAgainstShippingMethod(Session session, ExecutionErrorAccumulator eea, OrderShipmentGroup orderShipmentGroup, Item item, BasePK evaluatedBy)
-