| java.lang.Object org.apache.roller.ui.rendering.velocity.deprecated.OldWeblogPageModel
OldWeblogPageModel | public class OldWeblogPageModel (Code) | | Provides Roller page templates with access to Roller domain model objects.
|
Method Summary | |
public Collection | getBookmarks(FolderDataWrapper folder) | public int | getCommentCount(String entryId) | public int | getCommentCount(String entryId, boolean noSpam, boolean approvedOnly) | public List | getComments(WeblogEntryDataWrapper entry) | public List | getComments(WeblogEntryDataWrapper wrapper, boolean noSpam, boolean approvedOnly) | public int | getDayHits() | public boolean | getEmailComments() | public List | getEntryReferers(WeblogEntryDataWrapper entry) | public FolderDataWrapper | getFolder(String folderPath) | public FolderDataWrapper | getFolderByPath(String path) | public int | getIntRequestParameter(String key) | public String | getModelName() | public WeblogEntryDataWrapper | getNextEntry() Get the next occurring Entry. | public TemplateWrapper | getPageByName(String pageName) | public String | getPageIdByName(String pageName) | public Object | getPages() Get collection of user pages. | public WeblogEntryDataWrapper | getPreviousEntry() Get the previous occurring Entry. | public List | getRecentComments(int maxCount) Facade for WeblogManager.getRecentComments(). | public Map | getRecentWeblogEntries(int maxEntries, String catName) Returns a map of up to 100 recent weblog entries for the user and day
specified in the request, filtered by the category specified by the
request, limited by the 'maxEntries' argument, and sorted by reverse
chronological order.
This method will look for a category name in the following places
and in the following order:
- The request via RollerRequest.getWeblogCategory().
- The categoryName argument to this method.
- The default category for the website specified by the request via
RollerRequest.getWebsite().getDefaultCategory().
Parameters: maxEntries - Maximum number of entries to be returned (only applies if specific day not specified). Parameters: catName - Only return entries from this category and it'ssubcategories. | public List | getRecentWeblogEntriesArray(int maxEntries, String categoryName) Returns list of recent weblog entries for the user and day specified in
the request, filtered by the category specified by the request, limited
by the 'maxEntries' argument, and sorted by reverse chronological order.
This method will look for a category name in the same places and
same order as does the getRecentWeblogEntries() method.
Parameters: maxEntries - Maximum number of entries to be returned. Parameters: categoryName - Only return entries from this category and it'ssubcategories. | public List | getReferers(String date) | public String | getRequestParameter(String key) | public List | getTodaysReferers() | public Collection | getTopLevelFolders() Get top level bookmark folders. | public int | getTotalHits() | public static Date | getUpdateTime(ArrayList weblogEntries) Returns most recent update time of collection of weblog entries.
Parameters: weblogEntries - Collection of weblog entries. | public TemplateWrapper | getUsersPageByName(WebsiteDataWrapper wrapper, String pageName) | public List | getWeblogCategories(String categoryName) | public WeblogEntryDataWrapper | getWeblogEntry() | public void | init(HttpServletRequest request, WebsiteData website, WeblogEntryData entry, WeblogCategoryData category, Date date, boolean isDay, boolean isMonth, String locale) Initialize PageModel and allow PageModel to initialized VelocityContext. | public boolean | isUserAuthenticated() | public boolean | isUserAuthorizedToAdmin() | public boolean | isUserAuthorizedToEdit() |
mLogger | protected static Log mLogger(Code) | | |
OldWeblogPageModel | public OldWeblogPageModel()(Code) | | init() must be called to complete construction
|
getBookmarks | public Collection getBookmarks(FolderDataWrapper folder)(Code) | | Encapsulates folder.getBookmarks() & sorting
|
getCommentCount | public int getCommentCount(String entryId)(Code) | | Get number of approved non-spam comments for entry
|
getCommentCount | public int getCommentCount(String entryId, boolean noSpam, boolean approvedOnly)(Code) | | Get number of approved non-spam comments for entry
|
getComments | public List getComments(WeblogEntryDataWrapper entry)(Code) | | Get comments for weblog entry specified by request
|
getComments | public List getComments(WeblogEntryDataWrapper wrapper, boolean noSpam, boolean approvedOnly)(Code) | | Get comments for weblog entry specified by request
|
getDayHits | public int getDayHits()(Code) | | Encapsulates RefererManager
|
getEmailComments | public boolean getEmailComments()(Code) | | |
getEntryReferers | public List getEntryReferers(WeblogEntryDataWrapper entry)(Code) | | Encapsulates RefererManager *
|
getFolder | public FolderDataWrapper getFolder(String folderPath)(Code) | | Encapsulates BookmarkManager.getFolder()
|
getFolderByPath | public FolderDataWrapper getFolderByPath(String path)(Code) | | |
getIntRequestParameter | public int getIntRequestParameter(String key)(Code) | | |
getNextEntry | public WeblogEntryDataWrapper getNextEntry()(Code) | | Get the next occurring Entry.
|
getPageByName | public TemplateWrapper getPageByName(String pageName)(Code) | | Encapsulates UserManager.getPageByName()
|
getPageIdByName | public String getPageIdByName(String pageName)(Code) | | Encapsulates UserManager.getPageByName()
|
getPages | public Object getPages()(Code) | | Get collection of user pages.
|
getPreviousEntry | public WeblogEntryDataWrapper getPreviousEntry()(Code) | | Get the previous occurring Entry.
|
getRecentComments | public List getRecentComments(int maxCount)(Code) | | Facade for WeblogManager.getRecentComments().
Get the most recent (chronologically) posted Comments
for this website, limited to maxCount.
List of Comments. |
getRecentWeblogEntries | public Map getRecentWeblogEntries(int maxEntries, String catName)(Code) | | Returns a map of up to 100 recent weblog entries for the user and day
specified in the request, filtered by the category specified by the
request, limited by the 'maxEntries' argument, and sorted by reverse
chronological order.
This method will look for a category name in the following places
and in the following order:
- The request via RollerRequest.getWeblogCategory().
- The categoryName argument to this method.
- The default category for the website specified by the request via
RollerRequest.getWebsite().getDefaultCategory().
Parameters: maxEntries - Maximum number of entries to be returned (only applies if specific day not specified). Parameters: catName - Only return entries from this category and it'ssubcategories. If null, returns all categories of entry Map of Lists of WeblogEntryData, keyed by 8-char date strings. |
getRecentWeblogEntriesArray | public List getRecentWeblogEntriesArray(int maxEntries, String categoryName)(Code) | | Returns list of recent weblog entries for the user and day specified in
the request, filtered by the category specified by the request, limited
by the 'maxEntries' argument, and sorted by reverse chronological order.
This method will look for a category name in the same places and
same order as does the getRecentWeblogEntries() method.
Parameters: maxEntries - Maximum number of entries to be returned. Parameters: categoryName - Only return entries from this category and it'ssubcategories. If null, returns all categories of entry. List of WeblogEntryData objects in revese chronological order. |
getReferers | public List getReferers(String date)(Code) | | Encapsulates RefererManager *
|
getTodaysReferers | public List getTodaysReferers()(Code) | | Encapsulates RefererManager
|
getTopLevelFolders | public Collection getTopLevelFolders()(Code) | | Get top level bookmark folders.
|
getTotalHits | public int getTotalHits()(Code) | | Encapsulates RefererManager
|
getUpdateTime | public static Date getUpdateTime(ArrayList weblogEntries)(Code) | | Returns most recent update time of collection of weblog entries.
Parameters: weblogEntries - Collection of weblog entries. Most recent update time. |
getUsersPageByName | public TemplateWrapper getUsersPageByName(WebsiteDataWrapper wrapper, String pageName)(Code) | | Encapsulates UserManager.getPageByName()
|
getWeblogCategories | public List getWeblogCategories(String categoryName)(Code) | | Encapsulates WeblogManager.getWeblogCategories()
|
getWeblogEntry | public WeblogEntryDataWrapper getWeblogEntry()(Code) | | Encapsulates RollerRequest.getWeblogEntry()
|
isUserAuthenticated | public boolean isUserAuthenticated()(Code) | | |
isUserAuthorizedToAdmin | public boolean isUserAuthorizedToAdmin()(Code) | | |
isUserAuthorizedToEdit | public boolean isUserAuthorizedToEdit()(Code) | | |
|
|