|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.pages.BlogPostsCalendar
public class BlogPostsCalendar
Helper bean that turns a list of blog posts into a monthly calendar.
Constructor Summary | |
---|---|
BlogPostsCalendar(java.util.Date coversDate,
java.util.List blogPosts,
java.lang.String spaceKey)
Construct a new calendar. |
Method Summary | |
---|---|
java.lang.String |
formatMonthYear()
|
java.lang.String |
getCurrentMonth()
Get the next year/month in the form yyyy/MM |
int |
getDaysInMonth()
Gets the total number of days in the month being calendared. |
BlogPost |
getFirstPostInNextMonth()
|
BlogPost |
getLastPostInPreviousMonth()
|
java.lang.String |
getNextMonth()
Get the next year/month in the form yyyy/MM |
java.util.List |
getPostsForDay(int dayOfMonth)
Get the posts made on a particular day of the month |
java.lang.String |
getPreviousMonth()
Get the previous year/month in the form yyyy/MM |
java.lang.String |
getSpaceKey()
|
int |
getStartingDayOfMonth()
Get the starting day of the month as an offset from Sunday (i.e. |
void |
setFirstPostInNextMonth(BlogPost firstPostInNextMonth)
|
void |
setLastPostInPreviousMonth(BlogPost lastPostInPreviousMonth)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlogPostsCalendar(java.util.Date coversDate, java.util.List blogPosts, java.lang.String spaceKey)
coversDate
- a date falling within the month being calendaredblogPosts
- the blog posts to populate the calendarMethod Detail |
---|
public int getDaysInMonth()
public int getStartingDayOfMonth()
public java.util.List getPostsForDay(int dayOfMonth)
dayOfMonth
- the day of the month to get the posts for (starting at 1)
public java.lang.String formatMonthYear()
public java.lang.String getSpaceKey()
public java.lang.String getPreviousMonth()
public java.lang.String getNextMonth()
public java.lang.String getCurrentMonth()
public void setLastPostInPreviousMonth(BlogPost lastPostInPreviousMonth)
public void setFirstPostInNextMonth(BlogPost firstPostInNextMonth)
public BlogPost getLastPostInPreviousMonth()
public BlogPost getFirstPostInNextMonth()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |