org.jboss.weld.examples.permalink
Class Blog

java.lang.Object
  extended by org.jboss.weld.examples.permalink.Blog

@Model
public class Blog
extends Object

Author:
Dan Allen

Constructor Summary
Blog()
           
 
Method Summary
 List<String> getCategories()
          Retrieves the catagories used in this blog.
 String getCategory()
           
 List<BlogEntry> getEntriesForPage()
          Retrieves the entries loaded for this page.
 Set<BlogEntry> getEntriesForPageAsSet()
           
 BlogEntry getEntry()
          Retrieves the entry loaded for this page.
 Long getEntryId()
           
 int getNextPage()
           
 int getNumEntriesOnPage()
           
 List<String> getOtherCategories()
          Retrieves the categories used in this blog other than the selected one.
 Integer getPage()
           
 int getPageWithFirstPageAsNumber()
           
 Integer getPreviousPage()
           
 int getPreviousPageWithFirstPageAsNumber()
           
 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  List<String> retrieveCategories()
           
protected  List<BlogEntry> retrieveLatestEntries()
           
protected  List<BlogEntry> retrieveLatestEntriesInCategory()
           
protected  List<BlogEntry> retrieveSearchResults()
           
protected  List<BlogEntry> retrieveSearchResultsInCategory()
           
protected  BlogEntry retrieveSelectedEntry()
           
 boolean search()
           
 void setCategory(String category)
           
 void setEntryId(Long entryId)
           
 void setPage(Integer page)
           
 void setSearchString(String searchString)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blog

public Blog()
Method Detail

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-2010 Seam Framework. All Rights Reserved.