Package models

Examples of models.Tag


     
    for(User receiver : receivers)  {
      InboxMessage inbox = new InboxMessage(receiver, message);
      inbox.save();
     
       Tag sharedTag = Tag.findOrCreateByName("shared", receiver);
        for(SharedContent sharedContent : sharedContents) {
          if(Content.ContentType.PHOTO == sharedContent.type) {
            ContentTag contentTag = new ContentTag(sharedContent.id, Content.ContentType.PHOTO, sharedTag);
            contentTag.save();
          }
View Full Code Here


            addFacet(facetBuilder).
            execute().actionGet();

        TermsFacet facetResult = searchResponse.facets().facet(TermsFacet.class, "tags");
        for (TermsFacet.Entry entry : facetResult.entries()) {
            tags.add(new Tag(entry.term(), entry.count()));
        }

        return tags;
    }
View Full Code Here

TOP

Related Classes of models.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.