Package com.changestuffs.server.persistence.beans

Examples of com.changestuffs.server.persistence.beans.Tag


      throw new IllegalAccessError("Illegal user");
    }
  }

  private Tag getTagBean(Tags tagEnum) {
    Tag tag = model.find(Tag.class, tagEnum.name());

    if (tag == null) {
      log.info("Creating new tag");
      tag = new Tag();
      tag.setTagId(tagEnum.name());
      model.persist(tag);
    }

    return tag;
  }
View Full Code Here


  }

  public Map<String, IArticlesDto> getArticles(LookForAction input, String email) {
    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());
View Full Code Here

TOP

Related Classes of com.changestuffs.server.persistence.beans.Tag

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.