org.jboss.weld.examples.permalink
Class Blog
java.lang.Object
org.jboss.weld.examples.permalink.Blog
@Model
public class Blog
- extends Object
- Author:
- Dan Allen
|
Constructor Summary |
Blog()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Blog
public Blog()
getEntryId
public Long getEntryId()
setEntryId
public void setEntryId(Long entryId)
getCategory
public String getCategory()
setCategory
public void setCategory(String category)
getSearchString
public String getSearchString()
setSearchString
public void setSearchString(String searchString)
getPage
public Integer getPage()
setPage
public void setPage(Integer page)
loadCategories
public void loadCategories()
loadLatestEntries
public void loadLatestEntries()
- Init method for the main blog page
loadLatestEntriesInCategory
public void loadLatestEntriesInCategory()
- Init method for a category page
loadEntry
public void loadEntry()
- Init method for an entry page
search
public boolean search()
getCategories
public List<String> getCategories()
- Retrieves the catagories used in this blog. This method references preloaded
data and is intended to be used in the EL value expressions in the view template.
getOtherCategories
public List<String> getOtherCategories()
- Retrieves the categories used in this blog other than the selected one. This
method references preloaded data and is intended to be used in the EL value
expressions in the view template.
getEntriesForPage
public List<BlogEntry> getEntriesForPage()
- Retrieves the entries loaded for this page. This method references preloaded
data and is intended to be used in EL value expressions in the view template.
getEntriesForPageAsSet
public Set<BlogEntry> getEntriesForPageAsSet()
getNumEntriesOnPage
public int getNumEntriesOnPage()
getEntry
public BlogEntry getEntry()
- Retrieves the entry loaded for this page. This method references preloaded
data and is intended to be used in EL value expressions in the view template.
getPreviousPageWithFirstPageAsNumber
public int getPreviousPageWithFirstPageAsNumber()
getPreviousPage
public Integer getPreviousPage()
getPageWithFirstPageAsNumber
public int getPageWithFirstPageAsNumber()
getNextPage
public int getNextPage()
isNextPageAvailable
public boolean isNextPageAvailable()
isPreviousPageAvailable
public boolean isPreviousPageAvailable()
retrieveLatestEntries
protected List<BlogEntry> retrieveLatestEntries()
retrieveSearchResults
protected List<BlogEntry> retrieveSearchResults()
retrieveLatestEntriesInCategory
protected List<BlogEntry> retrieveLatestEntriesInCategory()
retrieveSearchResultsInCategory
protected List<BlogEntry> retrieveSearchResultsInCategory()
retrieveSelectedEntry
protected BlogEntry retrieveSelectedEntry()
retrieveCategories
protected List<String> retrieveCategories()
Copyright © 2008-2011 Seam Framework. All Rights Reserved.