Package com.jbidwatcher.auction

Examples of com.jbidwatcher.auction.AuctionEntry


    String aucId = AuctionServerManager.getInstance().getServer().stripId(auctionURL);

    if(EntryFactory.isInvalid(interactive, aucId)) return;

    //  Create an auction entry from the id.
    AuctionEntry aeNew = EntryFactory.getInstance().conditionallyAddEntry(interactive, aucId, label);
    if(aeNew == null) {
      if (lastSeen == null || !aucId.equals(lastSeen)) {
        JConfig.log().logDebug("Not loaded (" + aucId + ").");
        lastSeen = aucId;
      }
    } else {
      lastSeen = aeNew.getIdentifier();
    }
  }
View Full Code Here


  }

  private void removeAuctionsFromTab(final boolean deleteFirst, final AuctionListHolder holder) {
    holder.getList().each(new Task() {
      public void execute(Object o) {
        AuctionEntry ae = (AuctionEntry) o;

        if (deleteFirst) {
          holder.getUI().delEntry(ae);
        } else {
          ae.setCategory(null);
          MQFactory.getConcrete("redraw").enqueue(ae.getIdentifier());
        }
      }
    });
  }
View Full Code Here

    int rowPoint = rowAtPoint(point);
    String result = null;
    int colPoint = columnAtPoint(point);

    if(rowPoint != -1) {
      AuctionEntry ae = (AuctionEntry) getValueAt(rowPoint, -1);
      boolean showThumbnail = true;

      if(getRowHeight() == Constants.MICROTHUMBNAIL_ROW_HEIGHT) {
        showThumbnail = getColumnName(colPoint).equals("Thumbnail");
      }

      result = ae.getPresenter().buildComment(showThumbnail);
    }

    return result == null ? super.getToolTipText(event) : result;
  }
View Full Code Here

    SuperQueue.getInstance().preQueue("ACCOUNT", "my_account", System.currentTimeMillis(), Constants.ONE_DAY);

    MQFactory.getConcrete("upload").registerListener(new MessageQueue.Listener() {
      public void messageAction(Object deQ) {
        if(JConfig.queryConfiguration("my.jbidwatcher.id") != null && mSyncQueueURL != null && canSync()) {
          AuctionEntry ae = EntryCorral.getInstance().takeForRead((String) deQ);
          uploadSync(ae);
          uploadThumbnail(ae);
          uploadAuctionHTML(ae, "uploadhtml");
        }
      }
    });

    if(JConfig.queryConfiguration("my.jbidwatcher.id") != null) {
      MQFactory.getConcrete("report").registerListener(new MessageQueue.Listener() {
        public void messageAction(Object deQ) {
          AuctionEntry ae = EntryCorral.getInstance().takeForRead((String)deQ);
          uploadAuctionHTML(ae, "report");
        }
      });
    }
View Full Code Here

           JConfig.queryConfiguration("my.jbidwatcher." + type, "false").equals("true");
  }

  private void doGixen(String identifier, boolean cancel) {
    if(canSendSnipeToGixen() && mGixenQueueURL != null) {
      AuctionEntry ae = EntryCorral.getInstance().takeForRead(identifier);

      //  If we're being asked to set a snipe, and one isn't assigned to the entry, punt.
      if(!cancel && !ae.isSniped()) {
        JConfig.log().logMessage("Submitted auction " + identifier + " to snipe on Gixen, but doesn't have any snipe information set!");
        return;
      }

      //  If we've already submitted a snipe for this listing, don't send it again.
      My status = My.findByIdentifier(identifier);
      if (status != null && ae.getSnipeAmount().equals(status.getMonetary("snipe_amount"))) return;
      if (status == null) status = new My(identifier);

      XMLElement gixen = generateGixenXML(identifier, cancel, ae);
      if (gixen == null) return;
      postXML(mGixenQueueURL, gixen);
      if (cancel) {
        status.setDate("snipe_submitted_at", null);
        status.setMonetary("snipe_amount", null);
      } else {
        status.setDate("snipe_submitted_at", new Date());
        status.setMonetary("snipe_amount", ae.getSnipeAmount());
      }
      status.saveDB();
    }
  }
View Full Code Here

TOP

Related Classes of com.jbidwatcher.auction.AuctionEntry

Copyright © 2018 www.massapicom. 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.