| java.lang.Object org.apache.roller.ui.rendering.model.SiteModel
SiteModel | public class SiteModel implements Model(Code) | | Page model that provides access to site-wide users, weblogs and entries.
|
Method Summary | |
public Pager | getCommentsPager(int sinceDays, int length) | public List | getHotWeblogs(int sinceDays, int length) Get list of WebsiteDisplay objects, ordered by number of hits. | public String | getModelName() | public List | getMostCommentedWeblogEntries(List cats, int sinceDays, int length) Get most commented weblog entries across all weblogs, as StatCount
objects, in descending order by number of comments. | public List | getMostCommentedWeblogs(int sinceDays, int length) Get most collection of most commented websites, as StatCount objects,
in descending order by number of comments. | public List | getNewUsers(int sinceDays, int length) | public List | getNewWeblogs(int sinceDays, int length) | public List | getPinnedWeblogEntries(int length) Get pinned entries. | public List | getPopularTags(int sinceDays, int length) | public UserDataWrapper | getUser(String username) | public Map | getUserNameLetterMap() Get map with 26 entries, one for each letter A-Z and
containing integers reflecting the number of users whose
names start with each letter. | public Pager | getUsersByLetterPager(String letter, int sinceDays, int length) | public List | getUsersWeblogs(String userName) Return list of weblogs that user belongs to. | public WebsiteDataWrapper | getWeblog(String handle) | public Pager | getWeblogEntriesPager(int sinceDays, int length) Get pager ofWeblogEntry objects across all weblogs, in reverse chrono order by pubTime. | public Pager | getWeblogEntriesPager(WebsiteData queryWeblog, int sinceDays, int length) Get pager ofWeblogEntry objects across all weblogs,
in reverse chrono order by pubTime. | public Pager | getWeblogEntriesPager(WebsiteData queryWeblog, UserData user, int sinceDays, int length) Get pager ofWeblogEntry objects across all weblogs,
in reverse chrono order by pubTime. | public Pager | getWeblogEntriesPager(WebsiteData queryWeblog, UserData user, String cat, int sinceDays, int length) Get pager ofWeblogEntry objects across all weblogs,
in reverse chrono order by pubTime. | public Map | getWeblogHandleLetterMap() Get map with 26 entries, one for each letter A-Z and
containing integers reflecting the number of weblogs whose
names start with each letter. | public Pager | getWeblogsByLetterPager(String letter, int sinceDays, int length) | public List | getWeblogsUsers(String handle) Return list of users that belong to website. | public void | init(Map initData) |
getCommentsPager | public Pager getCommentsPager(int sinceDays, int length)(Code) | | |
getHotWeblogs | public List getHotWeblogs(int sinceDays, int length)(Code) | | Get list of WebsiteDisplay objects, ordered by number of hits.
Parameters: sinceDays - Only consider weblogs updated in the last sinceDays Parameters: len - Max number of results to return |
getMostCommentedWeblogEntries | public List getMostCommentedWeblogEntries(List cats, int sinceDays, int length)(Code) | | Get most commented weblog entries across all weblogs, as StatCount
objects, in descending order by number of comments.
Parameters: sinceDays - Only consider weblogs updated in the last sinceDays Parameters: cats - To limit results to list of category names Parameters: len - Max number of results to return |
getMostCommentedWeblogs | public List getMostCommentedWeblogs(int sinceDays, int length)(Code) | | Get most collection of most commented websites, as StatCount objects,
in descending order by number of comments.
Parameters: sinceDays - Only consider weblogs updated in the last sinceDays Parameters: offset - Offset into results (for paging) Parameters: length - Max number of results to return |
getNewUsers | public List getNewUsers(int sinceDays, int length)(Code) | | |
getNewWeblogs | public List getNewWeblogs(int sinceDays, int length)(Code) | | |
getPinnedWeblogEntries | public List getPinnedWeblogEntries(int length)(Code) | | Get pinned entries.
Parameters: sinceDays - Only consider weblogs updated in the last sinceDays Parameters: length - Max number of results to return |
getPopularTags | public List getPopularTags(int sinceDays, int length)(Code) | | Parameters: sinceDays - Parameters: length - |
getUser | public UserDataWrapper getUser(String username)(Code) | | Get User object by username
|
getUserNameLetterMap | public Map getUserNameLetterMap()(Code) | | Get map with 26 entries, one for each letter A-Z and
containing integers reflecting the number of users whose
names start with each letter.
|
getUsersByLetterPager | public Pager getUsersByLetterPager(String letter, int sinceDays, int length)(Code) | | |
getUsersWeblogs | public List getUsersWeblogs(String userName)(Code) | | Return list of weblogs that user belongs to.
|
getWeblog | public WebsiteDataWrapper getWeblog(String handle)(Code) | | Get Website object by handle
|
getWeblogEntriesPager | public Pager getWeblogEntriesPager(int sinceDays, int length)(Code) | | Get pager ofWeblogEntry objects across all weblogs, in reverse chrono order by pubTime.
Parameters: sinceDays - Limit to past X days in past (or -1 for no limit) Parameters: length - Max number of results to return |
getWeblogEntriesPager | public Pager getWeblogEntriesPager(WebsiteData queryWeblog, int sinceDays, int length)(Code) | | Get pager ofWeblogEntry objects across all weblogs,
in reverse chrono order by pubTime.
Parameters: queryWeblog - Restrict to this weblog Parameters: sinceDays - Limit to past X days in past (or -1 for no limit) Parameters: length - Max number of results to return |
getWeblogEntriesPager | public Pager getWeblogEntriesPager(WebsiteData queryWeblog, UserData user, int sinceDays, int length)(Code) | | Get pager ofWeblogEntry objects across all weblogs,
in reverse chrono order by pubTime.
Parameters: queryWeblog - Restrict to this weblog Parameters: user - Restrict to this user Parameters: sinceDays - Limit to past X days in past (or -1 for no limit) Parameters: length - Max number of results to return |
getWeblogEntriesPager | public Pager getWeblogEntriesPager(WebsiteData queryWeblog, UserData user, String cat, int sinceDays, int length)(Code) | | Get pager ofWeblogEntry objects across all weblogs,
in reverse chrono order by pubTime.
Parameters: queryWeblog - Restrict to this weblog Parameters: user - Restrict to this user Parameters: cat - Restrict to this category Parameters: sinceDays - Limit to past X days in past (or -1 for no limit) Parameters: length - Max number of results to return |
getWeblogHandleLetterMap | public Map getWeblogHandleLetterMap()(Code) | | Get map with 26 entries, one for each letter A-Z and
containing integers reflecting the number of weblogs whose
names start with each letter.
|
getWeblogsByLetterPager | public Pager getWeblogsByLetterPager(String letter, int sinceDays, int length)(Code) | | Get pager of weblogs whose handles begin with specified letter
|
getWeblogsUsers | public List getWeblogsUsers(String handle)(Code) | | Return list of users that belong to website.
|
|
|