|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.pebble.index.BlogEntryIndex
public class BlogEntryIndex
Keeps an index of all blog entries, allowing efficient access at runtime.
| Constructor Summary | |
|---|---|
BlogEntryIndex(Blog blog)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clears the index. |
java.util.List<java.lang.String> |
getBlogEntries()
Gets the full list of blog entries. |
int |
getNumberOfBlogEntries()
Gets the number of blog entries for this blog. |
int |
getNumberOfPublishedBlogEntries()
Gets the number of published blog entries for this blog. |
int |
getNumberOfUnpublishedBlogEntries()
Gets the number of unpublished blog entries for this blog. |
java.util.List<java.lang.String> |
getPublishedBlogEntries()
Gets the full list of published blog entries. |
java.util.List<java.lang.String> |
getUnpublishedBlogEntries()
Gets the full list of unpublished blog entries. |
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 BlogEntryIndex(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 int getNumberOfBlogEntries()
public int getNumberOfPublishedBlogEntries()
public int getNumberOfUnpublishedBlogEntries()
public java.util.List<java.lang.String> getBlogEntries()
public java.util.List<java.lang.String> getPublishedBlogEntries()
public java.util.List<java.lang.String> getUnpublishedBlogEntries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||