|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.index.AuthorIndex
public class AuthorIndex
Keeps an index of all blog entries from a specific author, allowing efficient access at runtime.
Constructor Summary | |
---|---|
AuthorIndex(Blog blog)
|
Method Summary | |
---|---|
void |
clear()
Clears the index. |
java.util.List<java.lang.String> |
getAuthors()
Gets the list of authors associated with this blog. |
java.util.List<java.lang.String> |
getRecentBlogEntries(java.lang.String username)
Gets the blog entries for a given author. |
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 |
---|
public AuthorIndex(Blog blog)
Method Detail |
---|
public void clear()
public void index(java.util.List<BlogEntry> blogEntries)
blogEntries
- a List of BlogEntry instancespublic void index(BlogEntry blogEntry)
blogEntry
- a BlogEntry instancepublic void unindex(BlogEntry blogEntry)
blogEntry
- a BlogEntry instancepublic java.util.List<java.lang.String> getAuthors()
public java.util.List<java.lang.String> getRecentBlogEntries(java.lang.String username)
username
- a username (String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |