@Model public class Blog extends java.lang.Object
| Constructor and Description |
|---|
Blog() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getCategories()
Retrieves the catagories used in this blog.
|
java.lang.String |
getCategory() |
java.util.List<BlogEntry> |
getEntriesForPage()
Retrieves the entries loaded for this page.
|
java.util.Set<BlogEntry> |
getEntriesForPageAsSet() |
BlogEntry |
getEntry()
Retrieves the entry loaded for this page.
|
java.lang.Long |
getEntryId() |
int |
getNextPage() |
int |
getNumEntriesOnPage() |
java.util.List<java.lang.String> |
getOtherCategories()
Retrieves the categories used in this blog other than the selected one.
|
java.lang.Integer |
getPage() |
int |
getPageWithFirstPageAsNumber() |
java.lang.Integer |
getPreviousPage() |
int |
getPreviousPageWithFirstPageAsNumber() |
java.lang.String |
getSearchString() |
boolean |
isNextPageAvailable() |
boolean |
isPreviousPageAvailable() |
void |
loadCategories() |
void |
loadEntry()
Init method for an entry page
|
void |
loadLatestEntries()
Init method for the main blog page
|
void |
loadLatestEntriesInCategory()
Init method for a category page
|
protected java.util.List<java.lang.String> |
retrieveCategories() |
protected java.util.List<BlogEntry> |
retrieveLatestEntries() |
protected java.util.List<BlogEntry> |
retrieveLatestEntriesInCategory() |
protected java.util.List<BlogEntry> |
retrieveSearchResults() |
protected java.util.List<BlogEntry> |
retrieveSearchResultsInCategory() |
protected BlogEntry |
retrieveSelectedEntry() |
boolean |
search() |
void |
setCategory(java.lang.String category) |
void |
setEntryId(java.lang.Long entryId) |
void |
setPage(java.lang.Integer page) |
void |
setSearchString(java.lang.String searchString) |
public java.lang.Long getEntryId()
public void setEntryId(java.lang.Long entryId)
public java.lang.String getCategory()
public void setCategory(java.lang.String category)
public java.lang.String getSearchString()
public void setSearchString(java.lang.String searchString)
public java.lang.Integer getPage()
public void setPage(java.lang.Integer page)
public void loadCategories()
public void loadLatestEntries()
public void loadLatestEntriesInCategory()
public void loadEntry()
public boolean search()
public java.util.List<java.lang.String> getCategories()
public java.util.List<java.lang.String> getOtherCategories()
public java.util.List<BlogEntry> getEntriesForPage()
public java.util.Set<BlogEntry> getEntriesForPageAsSet()
public int getNumEntriesOnPage()
public BlogEntry getEntry()
public int getPreviousPageWithFirstPageAsNumber()
public java.lang.Integer getPreviousPage()
public int getPageWithFirstPageAsNumber()
public int getNextPage()
public boolean isNextPageAvailable()
public boolean isPreviousPageAvailable()
protected java.util.List<BlogEntry> retrieveLatestEntries()
protected java.util.List<BlogEntry> retrieveSearchResults()
protected java.util.List<BlogEntry> retrieveLatestEntriesInCategory()
protected java.util.List<BlogEntry> retrieveSearchResultsInCategory()
protected BlogEntry retrieveSelectedEntry()
protected java.util.List<java.lang.String> retrieveCategories()
Copyright © 2008-2015. All Rights Reserved.