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;
 
 
 import java.util.List;
 
 public interface FulfillmentGroupService {
 
     public FulfillmentGroup save(FulfillmentGroup fulfillmentGroup);
 
 
     public FulfillmentGroup findFulfillmentGroupById(Long fulfillmentGroupId);
 
     public void delete(FulfillmentGroup fulfillmentGroup);
     
     public FulfillmentGroup addFulfillmentGroupToOrder(FulfillmentGroupRequest fulfillmentGroupRequestboolean priceOrderthrows PricingException;
     
     public FulfillmentGroup addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequestboolean priceOrderthrows PricingException;
 
     public FulfillmentGroup addItemToFulfillmentGroup(FulfillmentGroupItemRequest fulfillmentGroupItemRequestboolean priceOrderboolean savethrows PricingException;
     
     public Order removeAllFulfillmentGroupsFromOrder(Order orderboolean priceOrderthrows PricingException;

    
Removes every fulfillment group item in every fulfillment group in the order that is associated with the given orderItem. Note that it does not save the changes made - instead, the caller is responsible for saving the order further down.

Parameters:
order
orderItem
 
     public void removeOrderItemFromFullfillmentGroups(Order orderOrderItem orderItem);
     
     public FulfillmentGroupFee createFulfillmentGroupFee();

    
Associates shippable FulfillmentGroupItems in the given Order such that they match the structure of the OrderMultishipOptions associated with the given Order.

 
     public Order matchFulfillmentGroupsToMultishipOptions(Order orderboolean priceOrderthrows PricingException;

    
Collapses all of the shippable fulfillment groups in the given order to the first shippable fulfillment group in the order.

 
     public Order collapseToOneShippableFulfillmentGroup(Order orderboolean priceOrderthrows PricingException;


    
Reads FulfillmentGroups whose status is not FULFILLED or DELIVERED.

Parameters:
start
maxResults
Returns:
 
     public List<FulfillmentGroupfindUnfulfilledFulfillmentGroups(int startint maxResults);
    
    
Reads FulfillmentGroups whose status is PARTIALLY_FULFILLED or PARTIALLY_DELIVERED.

Parameters:
start
maxResults
Returns:
    public List<FulfillmentGroupfindPartiallyFulfilledFulfillmentGroups(int startint maxResults);
    
    
Returns FulfillmentGroups whose status is null, or where no processing has yet occured. Default returns in ascending order according to date that the order was created.

Parameters:
start
maxResults
Returns:
    public List<FulfillmentGroupfindUnprocessedFulfillmentGroups(int startint maxResults);
    
    
Reads FulfillmentGroups by status, either ascending or descending according to the date that the order was created.

Parameters:
status
start
maxResults
ascending
Returns:
    public List<FulfillmentGroupfindFulfillmentGroupsByStatus(FulfillmentGroupStatusType statusint startint maxResultsboolean ascending);
    
    
Reads FulfillmentGroups by status, ascending according to the date that the order was created.

Parameters:
status
start
maxResults
Returns:
    public List<FulfillmentGroupfindFulfillmentGroupsByStatus(FulfillmentGroupStatusType statusint startint maxResults);

    
Determines if a fulfillment group is shippable based on its fulfillment type.

Parameters:
fulfillmentType
Returns:
    public boolean isShippable(FulfillmentType fulfillmentType);
    
    
Returns the first shippable fulfillment group from an order.

Parameters:
order
Finds all FulfillmentGroupItems in the given Order that reference the given OrderItem.

Parameters:
order
orderItem
Returns:
the list of related FulfillmentGroupItems
New to GrepCode? Check out our FAQ X