Examples of BlogEntry


Examples of net.sourceforge.pebble.domain.BlogEntry

   * Called when a blog entry has been unpublished.
   *
   * @param event a BlogEntryEvent instance
   */
  public void blogEntryUnpublished(BlogEntryEvent event) {
    BlogEntry blogEntry = event.getBlogEntry();

    blogEntry.getBlog().getSearchIndex().unindex(blogEntry);
  }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

    authenticate(blog, username, password);

    Vector posts = new Vector();
    Collection coll = blog.getRecentPublishedBlogEntries(numberOfPosts);
    Iterator it = coll.iterator();
    BlogEntry entry;
    while (it.hasNext()) {
      entry = (BlogEntry)it.next();
      posts.add(adaptBlogEntry(entry));
    }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

   * Called when a blog entry has been added.
   *
   * @param event a BlogEntryEvent instance
   */
  public void blogEntryAdded(BlogEntryEvent event) {
    BlogEntry blogEntry = event.getBlogEntry();
    blogEntry.getBlog().getAuthorIndex().index(blogEntry);
  }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

   * Called when a blog entry has been removed.
   *
   * @param event a BlogEntryEvent instance
   */
  public void blogEntryRemoved(BlogEntryEvent event) {
    BlogEntry blogEntry = event.getBlogEntry();
    blogEntry.getBlog().getAuthorIndex().unindex(blogEntry);
  }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

   * Called when a blog entry has been published.
   *
   * @param event a BlogEntryEvent instance
   */
  public void blogEntryPublished(BlogEntryEvent event) {
    BlogEntry blogEntry = event.getBlogEntry();
    blogEntry.getBlog().getAuthorIndex().unindex(blogEntry);
    blogEntry.getBlog().getAuthorIndex().index(blogEntry);
  }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

   * Called when a blog entry has been unpublished.
   *
   * @param event a BlogEntryEvent instance
   */
  public void blogEntryUnpublished(BlogEntryEvent event) {
    BlogEntry blogEntry = event.getBlogEntry();
    blogEntry.getBlog().getAuthorIndex().unindex(blogEntry);
    blogEntry.getBlog().getAuthorIndex().index(blogEntry);
  }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

   * Called when a blog entry has been added.
   *
   * @param event a BlogEntryEvent instance
   */
  public void blogEntryAdded(BlogEntryEvent event) {
    BlogEntry blogEntry = event.getBlogEntry();
    blogEntry.getBlog().getBlogEntryIndex().index(blogEntry);
  }
View Full Code Here

Examples of org.apache.aries.samples.blog.api.BlogEntry

    out.println("<div class=\"links\"><a href=\"CreateBlogEntryForm\">Create New Post</a> <a href=\"EditAuthorForm\">Create Author</a></div>");
   
    Date currentDate = null;

    for (int i = 0; posts.hasNext(); i++) {
      BlogEntry post = posts.next();
     
      if (doesNotMatch(post.getPublishDate(), currentDate)) {
        currentDate = post.getPublishDate();
        out.print("<div class=\"postDate\">");
        //out.print(DateFormat.getDateInstance(DateFormat.FULL).format(currentDate));
        if (currentDate != null) {
           out.print(DateFormat.getDateInstance(DateFormat.FULL).format(currentDate));         
        }

        out.println("</div>");
      }
     
      out.print("\t\t<div class=\"post\" id=\"");
      out.print(i);
      out.println("\">");

      out.print("\t\t\t<div class=\"postTitle\">");
      out.print(post.getTitle());
      out.print("</div>");
      out.print("\t\t\t<div class=\"postBody\">");
      out.print(post.getBody());
      out.println("</div>");
      out.print("\t\t\t<div class=\"postAuthor\"><a href=\"ViewAuthor?email=");
      out.print(post.getAuthorEmail());
      out.print("\">");
      out.print(post.getAuthor().getFullName());
      out.println("</a></div>");
     
      if (service.isCommentingAvailable()) {

      out.print("<div class=\"links\"><a href=\"AddCommentForm?postId=");
      out.print(post.getId());
      out.print("\">Add Comment</a></div>");

      List<? extends BlogComment> comments = service
          .getCommentsForEntry(post);
      int size = comments.size();
      out.print("<div class=\"commentTitle\"");
      if (size > 0) {
        out.print("onclick=\"expand(");
        out.print(post.getId());
        out.print(")\"");
      }
      out.print(" style=\"cursor: pointer;\">Comments (");
      out.print(size);
      out.println(")</div>");

      if (size > 0) {

        out.print("<div id=\"comments");
        out.print(post.getId());
        out.println("\">");

        for (BlogComment comment : comments) {
          out.println("<div class=\"comment\">");
View Full Code Here

Examples of talkfeed.data.BlogEntry

      if (pubDate == null) pubDate = Calendar.getInstance().getTime();
     
      //date
      if(recentDate.after(pubDate)) continue;

      BlogEntry entry = (BlogEntry) queryBlogEntry.execute(item.getGuid());
     
      if (entry == null){
        //new item
        entry = new BlogEntry();
        entry.setBlogKey(blog.getKey());
        entry.setCreaDate(new Date());
        entry.setPubDate(pubDate);
        entry.setGuid(item.getGuid());
        entry.setLink(TextTools.limitText(item.getLink(),500));
        entry.setTitle(TextTools.limitText(item.getTitle(),500));
        entry.setBlogTitle(TextTools.limitText(chan.getTitle(),500));
        pm.makePersistent(entry);
        result.setUpdate(true);
        result.checkEntryDate(pubDate);
      }
View Full Code Here

Examples of talkfeed.data.BlogEntry

          Logger.getLogger("UserService").info(
              "user " + user.getId() + " present. Try notify : "
                  + blog.getTitle());

          // find next entry
          BlogEntry nextEntry = this.findNextEntry(sub);

          if (nextEntry == null) {
            // subscription is up to date
          } else {
            // notify user
            this.sendBlogEntry(jid, nextEntry);
            // set modification is done
            updateDone = true;
            // set current subscription mark to entry date
            sub.setLatestEntryNotifiedDate(nextEntry.getPubDate());
          }
        }

        // Update subscription process
        // last analyze date
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.