net.sourceforge.pebble.index
Class TagIndex

java.lang.Object
  extended by net.sourceforge.pebble.index.TagIndex

public class TagIndex
extends java.lang.Object

Represents the tag index for a blog.

Author:
Simon Brown

Constructor Summary
TagIndex(Blog blog)
           
 
Method Summary
 void clear()
          Clears the index.
 java.util.List<java.lang.String> getRecentBlogEntries(Tag tag)
          Gets the blog entries for a given tag.
 java.util.List<Tag> getTags()
          Gets the list of tags associated with this blog.
 void index(BlogEntry blogEntry)
          Indexes a single blog entry.
 void index(java.util.List<BlogEntry> blogEntries)
          Indexes one or more blog entries.
 void unindex(BlogEntry blogEntry)
          Unindexes a single blog entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagIndex

public TagIndex(Blog blog)
Method Detail

clear

public void clear()
Clears the index.


index

public void index(java.util.List<BlogEntry> blogEntries)
Indexes one or more blog entries.

Parameters:
blogEntries - a List of BlogEntry instances

index

public void index(BlogEntry blogEntry)
Indexes a single blog entry.

Parameters:
blogEntry - a BlogEntry instance

unindex

public void unindex(BlogEntry blogEntry)
Unindexes a single blog entry.

Parameters:
blogEntry - a BlogEntry instance

getTags

public java.util.List<Tag> getTags()
Gets the list of tags associated with this blog.


getRecentBlogEntries

public java.util.List<java.lang.String> getRecentBlogEntries(Tag tag)
Gets the blog entries for a given tag.

Parameters:
tag - a tag
Returns:
a List of blog entry IDs


Copyright © 2003-2006, Simon Brown. All Rights Reserved.