Package com.changestuffs.shared.actions

Examples of com.changestuffs.shared.actions.LookForAction


    builder.append("<changefreq>monthly</changefreq>");
    builder.append("</url>");
  }
 
  private Map<String, IArticlesDto> getAllArticles(ArticlesOAM oam, Tags tag){
    LookForAction input = new LookForAction(tag, null);
    return oam.getArticles(input, null);
  }
View Full Code Here


    super.onReveal();
    setInSlot(TYPE_SetContent, editorPresenter);
  }

  public void setFields(final IArticlesDto article) {
    dispatcher.execute(new LookForAction(null, article.getKeyHash()),
        new AsyncCallback<LookForResult>() {

          @Override
          public void onFailure(Throwable caught) {
            GWT.log("Some error", caught);
View Full Code Here

    placeManager.updateHistory(request, true);
    placeManager.revealPlace(request, false);
  }
 
  public void retireveFromServer(final Tags tag) {
    dispatcher.execute(new LookForAction(tag, null),
        new AsyncCallback<LookForResult>() {

          @Override
          public void onFailure(Throwable caught) {
            GWT.log("Some error", caught);
View Full Code Here

    offersPresenter.setOffers(dto);
    setInSlot(TYPE_OffersContent, offersPresenter);
  }

  private void retireveFromServer(final String idHash) {
    dispatcher.execute(new LookForAction(null, idHash),
        new AsyncCallback<LookForResult>() {

          @Override
          public void onFailure(Throwable caught) {
            GWT.log("Some error", caught);
View Full Code Here

    Product product1 = oam.insertArticle(dto1, userId);
   
    ArticlesAddAction dto2 = createArticlesDtoIn(Tags.entertainment);
    Product product2 = oam.insertArticle(dto2, userId);
   
    LookForAction action1 = new LookForAction(dto1.getTag(), null);
    Map<String, IArticlesDto> articles1 = oam.getArticles(action1, null);
    assertEquals(1, articles1.size());
    String key1 = KeyFactory.keyToString(product1.getKey());
    assertTrue(articles1.containsKey(key1));
    assertEquals(dto1.getTag(), articles1.get(key1).getTag());
   
    LookForAction action2 = new LookForAction(null, KeyFactory.keyToString(product2.getKey()));
    Map<String, IArticlesDto> articles2 = oam.getArticles(action2, null);
    assertEquals(1, articles2.size());
    String key2 = KeyFactory.keyToString(product2.getKey());
    assertTrue(articles2.containsKey(key2));
    assertEquals(dto2.getTag(), articles2.get(key2).getTag());
View Full Code Here

TOP

Related Classes of com.changestuffs.shared.actions.LookForAction

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.