Examples of Order


Examples of org.archfirst.bfoms.domain.account.brokerage.order.Order

    }
   
    public void processOrderCancelReject(Long orderId, OrderStatus newStatus) {
       
        // Get the order
        Order order = this.findOrder(orderId);
        if (order == null) {
            logger.error("OrderCancelReject: order {} not found", orderId);
        }

        // Send the new status to the order
        order.cancelRequestRejected(newStatus, orderEventPublisher);
    }
View Full Code Here

Examples of org.books.domain.Order

    public void onMessage(Message message) {
        try {
            String id = ((TextMessage) message).getText();

            Order order = entityManager.find(Order.class, Long.parseLong(id));
            order.setStatus(Order.Status.InProgress);

            //timerService.createTimer(500, id); // 20100102, jb: Timer works, but embedded container is not shut down properly
        } catch (JMSException e) {
            throw new EJBException(e);
        }
View Full Code Here

Examples of org.broadleafcommerce.core.order.domain.Order

    @Override
    public int doStartTag() throws JspException {
        WebApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(pageContext.getServletContext());
        Customer customer = CustomerState.getCustomer((HttpServletRequest) pageContext.getRequest());
        LegacyCartService cartService = (LegacyCartService) applicationContext.getBean("blOrderService");
        Order order = null;
        if (orderName != null && orderId != null) {
            throw new IllegalArgumentException("Only orderName or orderId attribute may be specified on orderLookup tag");
        } else if (orderId != null) {
            order = cartService.findOrderById(orderId);
        } else if (orderName != null) {
            order = cartService.findNamedOrderForCustomer(orderName, customer);
        } else if (customer != null){
            order = cartService.findCartForCustomer(customer);
        }
        if (orderVar != null) {
            pageContext.setAttribute(orderVar, order);
        }
        if (totalQuantityVar != null) {
            int orderItemsCount = 0;
            if (order != null && order.getOrderItems() != null) {
                for (OrderItem orderItem : order.getOrderItems()) {
                    orderItemsCount += orderItem.getQuantity();
                }
            }
            pageContext.setAttribute(totalQuantityVar, orderItemsCount);
        } else if (totalQuantityVar != null) {
View Full Code Here

Examples of org.candlepin.json.model.Order

        return toReturn;
    }

    public Order createOrder(Pool pool) {
        SimpleDateFormat iso8601DateFormat = Util.getUTCDateFormat();
        Order toReturn = new Order();

        toReturn.setNumber(pool.getOrderNumber());
        toReturn.setQuantity(pool.getQuantity());
        toReturn.setStart(iso8601DateFormat.format(pool.getStartDate()));
        toReturn.setEnd(iso8601DateFormat.format(pool.getEndDate()));

        if (pool.getContractNumber() != null &&
            !pool.getContractNumber().trim().equals("")) {
            toReturn.setContract(pool.getContractNumber());
        }

        if (pool.getAccountNumber() != null &&
            !pool.getAccountNumber().trim().equals("")) {
            toReturn.setAccount(pool.getAccountNumber());
        }

        return toReturn;
    }
View Full Code Here

Examples of org.company.recordshop.domain.Order

  /**
   * {@inheritDoc}
   */
  public OrderDto readOrder(Long id) {
    Order result = customerServiceModelDomainService.readOrder(id);
    return (result == null) ? null : orderDtoTranslator.toDto(result);
  }
View Full Code Here

Examples of org.conserve.sort.Order

        {
          Clause[] subClauses = where.getSubclauses();
          // handle LIMIT and OFFSET clauses
          if (where instanceof Order)
          {
            Order order = (Order) where;
            if (order.getLimit() != null)
            {
              if (sp.getLimit() == null)
              {
                sp.setLimit(order.getLimit());
                if (order.getOffset() != null)
                {
                  if (sp.getOffset() == null)
                  {
                    sp.setOffset(order.getOffset());
                  }
                  else
                  {
                    throw new IllegalArgumentException("Multiple offsets defined.");
                  }
View Full Code Here

Examples of org.drools.Order

        final List list = new ArrayList();
        workingMemory.setGlobal( "results",
                                 list );
       
        Order order = new Order();
       
        OrderItem item1 = new OrderItem(order, 1, "Adventure Guide Brazil", OrderItem.TYPE_BOOK, 24);
        order.addItem(item1);
        workingMemory.insert(item1);
       
        OrderItem item2 = new OrderItem(order, 2, "Prehistoric Britain", OrderItem.TYPE_BOOK, 15);
        order.addItem(item2);
        workingMemory.insert(item2);
       
        OrderItem item3 = new OrderItem(order, 3, "Holiday Music", OrderItem.TYPE_CD, 9);
        order.addItem(item3);
        workingMemory.insert(item3);
       
        OrderItem item4 = new OrderItem(order, 4, "Very Best of Mick Jagger", OrderItem.TYPE_CD, 11);
        order.addItem(item4);
        workingMemory.insert(item4);
       
        workingMemory.insert(order);

        assertEquals( 11,
View Full Code Here

Examples of org.drools.compiler.Order

        final List results = new ArrayList();
        ksession.setGlobal( "results",
                            results );

        final Order order = new Order( 10,
                                       "Bob" );
        final OrderItem item1 = new OrderItem( order,
                                               1 );
        final OrderItem item2 = new OrderItem( order,
                                               2 );
View Full Code Here

Examples of org.exolab.castor.xml.schema.Order

            Group group = (Group) component.getAnnotated();
            processContentModel(group, state);
            component.setView(group);

            //-- Check Group Type
            Order order = group.getOrder();
            GroupInfo groupInfo = new XMLInfoNature(classInfo).getGroupInfo();
            if (order == Order.choice) {
                groupInfo.setAsChoice();
            } else if (order == Order.sequence) {
                groupInfo.setAsSequence();
View Full Code Here

Examples of org.freerealm.unit.Order

     * @param realm Realm to execute the command
     * @return CommandResult
     */
    public CommandResult execute(Realm realm) {
        if (unit != null) {
            Order order = unit.getNextOrder();
            if (order != null) {
                order.execute(realm);
                if (order.isComplete()) {
                    unit.removeOrder(order);
                    if (unit.getNextOrder() != null) {
                        unit.getNextOrder().setTurnGiven(realm.getNumberOfTurns());
                    }
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.