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.offer.service.discount.domain;
 
 
 @Service("blPromotableItemFactory")
 public class PromotableItemFactoryImpl implements PromotableItemFactory {
 
     public PromotableOrder createPromotableOrder(Order orderboolean includeOrderAndItemAdjustments) {
         return new PromotableOrderImpl(orderthisincludeOrderAndItemAdjustments);
     }
 
     @Override
         return new PromotableCandidateOrderOfferImpl(promotableOrderoffer);
     }
     
     @Override
             Offer offerMoney potentialSavings) {
         return new PromotableCandidateOrderOfferImpl(promotableOrderofferpotentialSavings);
     }
 
     @Override
             PromotableCandidateOrderOffer promotableCandidateOrderOfferPromotableOrder order) {
         return new PromotableOrderAdjustmentImpl(promotableCandidateOrderOfferorder);
     }
     
     @Override
             PromotableCandidateOrderOffer promotableCandidateOrderOffer,
             PromotableOrder orderMoney adjustmentValue) {
         return new PromotableOrderAdjustmentImpl(promotableCandidateOrderOfferorderadjustmentValue);
     }
 
     @Override
             boolean includeAdjustments) {
         return new PromotableOrderItemImpl(orderItemorderthisincludeAdjustments);
     }
     
     @Override
             int quantity) {
         return new PromotableOrderItemPriceDetailImpl(promotableOrderItemquantity);
     }
 
     @Override
         return new PromotableCandidateItemOfferImpl(promotableOrderoffer);
     }
     
     @Override
             PromotableCandidateItemOffer promotableCandidateItemOffer,
             PromotableOrderItemPriceDetail orderItemPriceDetail) {
         return new PromotableOrderItemPriceDetailAdjustmentImpl(promotableCandidateItemOfferorderItemPriceDetail);
     }
     
     @Override
             FulfillmentGroup fulfillmentGroup,
             PromotableOrder order) {
         return new PromotableFulfillmentGroupImpl(fulfillmentGrouporderthis);
     }
     
     @Override
             PromotableFulfillmentGroup fulfillmentGroupOffer offer) {
         return new PromotableCandidateFulfillmentGroupOfferImpl(fulfillmentGroupoffer);
     }
     
     @Override
             PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer,
            PromotableFulfillmentGroup fulfillmentGroup) {
        return new PromotableFulfillmentGroupAdjustmentImpl(promotableCandidateFulfillmentGroupOfferfulfillmentGroup);
    }
New to GrepCode? Check out our FAQ X