Package com.casamind.adware.shared.model

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


    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()));

    for (Resource r : resources) {
View Full Code Here


    calendar.set(Calendar.MINUTE, 0);
    calendar.set(Calendar.SECOND, 0);
    calendar.set(Calendar.MILLISECOND, 0);
    Date today = calendar.getTime();

    CompanySummaryDTO company = null;
    List<Product> products = new ArrayList<Product>();
    List<Slot> slots = new ArrayList<Slot>();
    List<ProductSummaryDTO> productsDTO = new ArrayList<ProductSummaryDTO>();
    List<SlotSummaryDTO> slotsDTO = new ArrayList<SlotSummaryDTO>();
View Full Code Here

    this.display.setEnableButton(this.display.getReclaimButton(), false);

  }

  private void populateCompanyList(final Long companyId, final Long publisherId) {
    this.compList.add(new CompanySummaryDTO(new Long(0), "*"));
    this.display.getCompanyList().addItem("*");
    new RPCCall<List<EntitySummary>>() {
      @Override
      protected void callService(AsyncCallback<List<EntitySummary>> cb) {
        dataService.getCompanies(cb);
View Full Code Here

    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 {
      publisherSummary = Publisher.toSummaryDTO(publisher);
      companySummary = Company.toSummaryDTO(DatastoreProxy.getCompanyById(publisher.getCompanyId()));
    }
View Full Code Here

    }
    this.display.getSlotsGrid().setRowCount(0);
  }

  private void populateCompanyList(final Long companyId, final Long publisherId) {
    this.compList.add(new CompanySummaryDTO(new Long(0), "*"));
    this.display.getCompanyList().addItem("*");
    new RPCCall<List<EntitySummary>>() {
      @Override
      protected void callService(AsyncCallback<List<EntitySummary>> cb) {
        rpcService.getCompanies(cb);
View Full Code Here

  public static CompanySummaryDTO toSummaryDTO(Company entity) {
    if (entity == null) {
      return null;
    }
    return new CompanySummaryDTO(entity.getId(), entity.getLastname());
  }
View Full Code Here

TOP

Related Classes of com.casamind.adware.shared.model.CompanySummaryDTO

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.