Examples of PublisherSummaryDTO


Examples of com.casamind.adware.shared.model.PublisherSummaryDTO

  private void populatePublisherList(final Long companyId, final Long publisherId) {
    this.display.getPublisherList().clear();
    this.pubList.clear();
    display.getPublisherList().addItem("*");
    pubList.add(new PublisherSummaryDTO(new Long(0), "*", "", new Long(0)));
    new RPCCall<List<PublisherSummaryDTO>>() {
      @Override
      protected void callService(AsyncCallback<List<PublisherSummaryDTO>> cb) {
        dataService.getPublisherSummariesByCompanyId(companyId, cb);
      }
View Full Code Here

Examples of com.casamind.adware.shared.model.PublisherSummaryDTO

    List<Slot> slots = new ArrayList<Slot>();
    List<ResourceSummaryDTO> resourcesDTO = new ArrayList<ResourceSummaryDTO>();
    List<SlotSummaryDTO> schedulesDTO = new ArrayList<SlotSummaryDTO>();

    Publisher publisher = DatastoreProxy.getPublisherById(entity.getPublisherId());
    PublisherSummaryDTO publisherSummary = Publisher.toSummaryDTO(publisher);
    CompanySummaryDTO companySummary = Company.toSummaryDTO(DatastoreProxy.getCompanyById(publisher.getCompanyId()));

    resources.addAll(DatastoreProxy.getResourcesByProductId(entity.getId()));
    slots.addAll(DatastoreProxy.getSlotsByProductId(entity.getId()));
View Full Code Here

Examples of com.casamind.adware.shared.model.PublisherSummaryDTO

  }

  public static PublisherSummaryDTO toSummaryDTO(Publisher entity) {
    if (entity == null)
      return null;
    return new PublisherSummaryDTO(entity.getId(), entity.getFirstname(), entity.getLastname(), entity.getGroupId());
  }
View Full Code Here

Examples of com.casamind.adware.shared.model.PublisherSummaryDTO

        Long id = AdminSlotsPresenter.this.compList.get(index).getId();
        if (id == 0) {
          display.getPublisherList().clear();
          pubList.clear();
          display.getPublisherList().addItem("*");
          pubList.add(new PublisherSummaryDTO(new Long(0), "*", "", new Long(0)));
        } else {
          populatePublisherList(id, null);
        }
      }
    });
View Full Code Here

Examples of com.casamind.adware.shared.model.PublisherSummaryDTO

  private void populatePublisherList(final Long companyId, final Long publisherId) {
    this.display.getPublisherList().clear();
    this.pubList.clear();
    display.getPublisherList().addItem("*");
    pubList.add(new PublisherSummaryDTO(new Long(0), "*", "", new Long(0)));
    new RPCCall<List<PublisherSummaryDTO>>() {
      @Override
      protected void callService(AsyncCallback<List<PublisherSummaryDTO>> cb) {
        dataService.getPublisherSummariesByCompanyId(companyId, cb);
      }
View Full Code Here

Examples of com.casamind.adware.shared.model.PublisherSummaryDTO

  public static SlotDTO toDTO(Slot entity) {
    if (entity == null)
      return null;
    List<ProductSummaryDTO> products = new ArrayList<ProductSummaryDTO>();
    Publisher publisher = null;
    PublisherSummaryDTO publisherSummary = null;
    CompanySummaryDTO companySummary = null;
    for (Long id : entity.getProductIds()) {
      products.add(Product.toSummaryDTO(DatastoreProxy.getProductById(id)));
    }
    publisher = DatastoreProxy.getPublisherById(entity.getOwnerId());
    if (publisher == null) {
      // Slot has been booked by company
      companySummary = Company.toSummaryDTO(DatastoreProxy.getCompanyById(entity.getOwnerId()));
      publisherSummary = new PublisherSummaryDTO();
      if (companySummary == null) {
        // should not happen
        companySummary = new CompanySummaryDTO();
      }
    } else {
View Full Code Here

Examples of com.casamind.adware.shared.model.PublisherSummaryDTO

        Long id = ConsolePresenter.this.compList.get(index).getId();
        if (id == 0) {
          display.getPublisherList().clear();
          pubList.clear();
          display.getPublisherList().addItem("*");
          pubList.add(new PublisherSummaryDTO(new Long(0), "*", "", new Long(0)));
        } else {
          populatePublisherList(id, null);
        }
      }
    });
View Full Code Here

Examples of com.casamind.adware.shared.model.PublisherSummaryDTO

  private void populatePublisherList(final Long companyId, final Long publisherId) {
    this.display.getPublisherList().clear();
    this.pubList.clear();
    display.getPublisherList().addItem("*");
    pubList.add(new PublisherSummaryDTO(new Long(0), "*", "", new Long(0)));
    new RPCCall<List<PublisherSummaryDTO>>() {
      @Override
      protected void callService(AsyncCallback<List<PublisherSummaryDTO>> cb) {
        rpcService.getPublisherSummariesByCompanyId(companyId, cb);
      }
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.