Package com.changestuffs.shared.dto

Examples of com.changestuffs.shared.dto.IArticlesDto


    }
   
    ArticlesOAM oam = provider.get();
    List<Product> products = oam.getProducts(email);
    for (Product product : products) {
      IArticlesDto dto = oam.getIArticlesDto(product,
          arg0.isFullInfo(), email);
      articles.put(dto.getKeyHash(), dto);
    }
    LookForResult result = new LookForResult(articles);
    return result;
  }
View Full Code Here


    Map<String, IArticlesDto> articles = new HashMap<String, IArticlesDto>();
    if (input.getTag() != null) {
      Tag tag = model.find(Tag.class, input.getTag().name());
      if (tag != null) {
        for (Product product : tag.getProducts()) {
          IArticlesDto dto = getIArticlesDto(product, false, email);
          articles.put(dto.getKeyHash(), dto);
        }
        log.info("Getting " + articles.size() + " articles for tag "
            + input.getTag());
      }
    }
    if (input.getIdKey() != null) {
      Product product = model.find(Product.class, input.getIdKey());
      if (product != null) {
        IArticlesDto dto = getIArticlesDto(product, true, email);
        articles.put(dto.getKeyHash(), dto);
      }
    }
    return articles;
  }
View Full Code Here

    PresenterSlotEvent.fire(this, presenter);
  }

  @Override
  public void onGlobalEvent(AddArticleEvent event) {
    IArticlesDto article = event.getArticle();
    getView().addArticle(article, article.getKeyHash());
  }
View Full Code Here

            GWT.log("Some error", caught);
          }

          @Override
          public void onSuccess(LookForResult result) {
            IArticlesDto dto = result.getArticles().get(article.getKeyHash());
            getView().setFields(dto);
            editorPresenter.setHtml(dto.getDescription());
            keyHash = article.getKeyHash();
          }
        });
  }
View Full Code Here

            GWT.log("Some error", caught);
          }

          @Override
          public void onSuccess(LookForResult result) {
            IArticlesDto article = result.getArticles().get(idHash);
           
            // FIXME think in something to keep facebook url
            if(article != null){
              // Then create social panel
              watchArticle(article);
View Full Code Here

TOP

Related Classes of com.changestuffs.shared.dto.IArticlesDto

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.