Class AbstractBlogPostsAction

java.lang.Object
org.apache.struts2.ActionSupport
All Implemented Interfaces:
WebInterface, Spaced, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.action.Action, org.apache.struts2.interceptor.ValidationAware, org.apache.struts2.Validateable
Direct Known Subclasses:
RecentBlogPostsAction, ViewBlogPostsByDateAction

public abstract class AbstractBlogPostsAction extends AbstractSpaceAction
See Also:
  • Field Details

  • Constructor Details

    • AbstractBlogPostsAction

      public AbstractBlogPostsAction()
  • Method Details

    • execute

      public String execute() throws Exception
      Specified by:
      execute in interface org.apache.struts2.action.Action
      Overrides:
      execute in class org.apache.struts2.ActionSupport
      Throws:
      Exception
    • setPageManager

      public void setPageManager(PageManager pageManager)
    • renderBlogPost

      public String renderBlogPost(BlogPost post)
    • getFirstPostInNextMonth

      public BlogPost getFirstPostInNextMonth(Calendar postingDate)
      Returns the first post in the month after the current postingDay
      Parameters:
      postingDate -
      Returns:
      BlogPost for the first post in the next month, null otherwise
    • getLastPostInPreviousMonth

      public BlogPost getLastPostInPreviousMonth(Calendar postingDate)
      Returns the last post in the month before the current postingDay
      Parameters:
      postingDate -
      Returns:
      BlogPost for the last post in the previous month, null otherwise
    • setViewRenderer

      public void setViewRenderer(Renderer viewRenderer)
    • getHasCreatePermission

      public boolean getHasCreatePermission()