Examples of Offer


Examples of org.jivesoftware.xmpp.workgroup.Offer

        }
    }

    public void injectRequest(Request request) {
        // Create a new Offer for the request and add it to the list of active offers
        final Offer offer = new Offer(request, queue, getAgentRejectionTimeout());
        offer.setTimeout(info.getOfferTimeout());
        offers.add(offer);
        // Process this offer in another thread
        Thread offerThread = new Thread("Dispatch offer - queue: " + queue.getName()) {
            @Override
      public void run() {
View Full Code Here

Examples of org.nightlabs.jfire.trade.Offer

      Date expiryTimestampUnfinalized, boolean expiryTimestampUnfinalizedAutoManaged,
      Date expiryTimestampFinalized, boolean expiryTimestampFinalizedAutoManaged,
      boolean get, String[] fetchGroups, int maxFetchDepth, ProgressMonitor monitor
  )
  {
    Offer offer;
    monitor.beginTask("Set offer expiry", 100);
    try {
      TradeManagerRemote tm = JFireEjb3Factory.getRemoteBean(TradeManagerRemote.class, SecurityReflector.getInitialContextProperties());
      monitor.worked(20);
      offer = tm.setOfferExpiry(
View Full Code Here

Examples of org.switchyard.quickstarts.demo.txpropagation.Offer

    @Test
    public void creditApproved() throws Exception {
        Application app = new Application();
        app.setName("phil garfield");
        app.setCreditScore(600);
        Offer offer = new Offer();
        offer.setApplication(app);

        Application result = service.operation("checkCredit").sendInOut(offer).getContent(Application.class);

        // validate the results
        Assert.assertTrue(result.isApproved());
View Full Code Here

Examples of pl.com.bottega.ecommerce.sales.domain.offer.Offer

   
    /*
     * Sample pattern: Aggregate generates Value Object using function<br>
     * Higher order function is closured by policy
     */
    Offer newOffer = reservation.calculateOffer(
                  discountFactory.create(loadClient()));
   
    /*
     * Sample pattern: Client Tier sends back old VOs, Server generates new VOs based on Aggregate state<br>
     * Notice that this VO is not stored in Repo, it's stored on the Client Tier.
     */
    if (! newOffer.sameAs(seenOffer, 5))//TODO load delta from conf.
      throw new OfferChangedExcpetion(reservation.getAggregateId(), seenOffer, newOffer);
   
    Client client = loadClient();//create per logged client, not reservation owner         
    Purchase purchase = purchaseFactory.create(reservation.getAggregateId(), client, seenOffer);
       
View Full Code Here

Examples of pl.zgora.uz.wmie.fe.sps.database.classes.Offer

    } else if (DETAILS.equals(method)) {
      try {
        //TODO offerGuardian
       
        //prepareDataForSelect(req);
        Offer offer = offerService.load(Integer.valueOf(req.getParameter("id")));
        OfferGuardianService offerGuardianService=(OfferGuardianService) BusinessUtil
                    .findBusiness("OfferGuardianService");;
        if (offer.getOfferGuardian()!=null) {
          OfferGuardian guardian=offerGuardianService.load(offer.getOfferGuardian().getIdOfferGuardian());
          req.setAttribute("guardian", guardian.getFirstName()+" "+guardian.getLastName());
        } else {
          req.setAttribute("guardian", EMPTY);
        }
        req.setAttribute("id", String.valueOf(offer.getIdOffer()));
        req.setAttribute("appointmentsCount", String.valueOf(offer.getAppointmentsCount()));
        req.setAttribute("dateFrom", offer.getDatefrom().toString());
        req.setAttribute("dateTo", offer.getDateto().toString());
        req.setAttribute("registrationDate", offer.getRegistrationDate().toString());
        req.setAttribute("appointment", offer.getAppointment());
        req.setAttribute("programPlane", offer.getProgramPlane());
        req.setAttribute("hoursNumber", String.valueOf(offer.getHoursNumber()));
        req.setAttribute("description", offer.getDescription());
        if(offer.getPayment()!=null) {
          req.setAttribute("payment", offer.getPayment().toString());
        } else {
          req.setAttribute("payment", EMPTY);
        }
       
      } catch (NumberFormatException e) {
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.