Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * #%L
  * BroadleafCommerce Framework
  * %%
  * Copyright (C) 2009 - 2013 Broadleaf Commerce
  * %%
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */
package org.broadleafcommerce.core.order.service;
public interface OrderItemService {
    
    public OrderItem readOrderItemById(Long orderItemId);
    public OrderItem saveOrderItem(OrderItem orderItem);
    
    public void delete(OrderItem item);
    
    
    public DiscreteOrderItem createDynamicPriceDiscreteOrderItem(final DiscreteOrderItemRequest itemRequest, @SuppressWarnings("rawtypes"HashMap skuPricingConsiderations);
Used to create "manual" product bundles. Manual product bundles are primarily designed for grouping items in the cart display. Typically ProductBundle will be used to achieve non programmer related bundles.

Parameters:
itemRequest
Returns:
    public BundleOrderItem createBundleOrderItem(ProductBundleOrderItemRequest itemRequestboolean saveItem);

    
Creates an OrderItemRequestDTO object that most closely resembles the given OrderItem. That is, it will copy the SKU and quantity and attempt to copy the product and category if they exist.

Parameters:
item the item to copy
Returns:
the OrderItemRequestDTO that mirrors the item
    public OrderItem updateDiscreteOrderItem(OrderItem orderItemDiscreteOrderItemRequest itemRequest);
    public OrderItem createOrderItem(OrderItemRequest itemRequest);
New to GrepCode? Check out our FAQ X