Examples of BlogEntry


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();
    if (blogEntry.isPublished()) {
      blogEntry.getBlog().getCategoryIndex().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();
    if (blogEntry.isPublished()) {
      blogEntry.getBlog().getCategoryIndex().unindex(blogEntry);
    }
  }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

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

    if (blogEntry.isPublished()) {
      List propertyChangeEvents = event.getPropertyChangeEvents();
      Iterator it = propertyChangeEvents.iterator();
      while (it.hasNext()) {
        PropertyChangeEvent pce = (PropertyChangeEvent)it.next();
        String property = pce.getPropertyName();

        // only if the tags or categories change do we need to reindex the tags
        if (property.equals(BlogEntry.CATEGORIES_PROPERTY)) {
          blogEntry.getBlog().getCategoryIndex().unindex(blogEntry);
          blogEntry.getBlog().getCategoryIndex().index(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().getCategoryIndex().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().getCategoryIndex().unindex(blogEntry);
  }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

        date = sdf.parse((n.getAttributes().getNamedItem("value").getNodeValue()).substring(4));
        System.out.println("Date : " + date);
      }
    }

    BlogEntry entry = new BlogEntry(blog);
    entry.setTitle(title);
    entry.setBody(body);
    entry.setDate(date);

    BlogService service = new BlogService();
    service.putBlogEntry(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();

    if (blogEntry.isPublished()) {
      updateSearchIndex(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().getSearchIndex().unindex(blogEntry);
  }
View Full Code Here

Examples of net.sourceforge.pebble.domain.BlogEntry

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

    if (blogEntry.isPublished()) {
      updateSearchIndex(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();
    updateSearchIndex(blogEntry);
  }
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.