|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.pages.BlogPostsCalendar
Helper bean that turns a list of blog posts into a monthly calendar.
Constructor Summary | |
BlogPostsCalendar(Date coversDate,
List blogPosts,
String spaceKey)
Construct a new calendar. |
Method Summary | |
String |
formatMonthYear()
|
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()
|
String |
getNextMonth()
Get the next year/month in the form yyyy/MM |
List |
getPostsForDay(int dayOfMonth)
Get the posts made on a particular day of the month |
String |
getPreviousMonth()
Get the previous year/month in the form yyyy/MM |
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(Date coversDate, List blogPosts, 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 List getPostsForDay(int dayOfMonth)
dayOfMonth
- the day of the month to get the posts for (starting at 1)
public String formatMonthYear()
public String getSpaceKey()
public String getPreviousMonth()
public String getNextMonth()
public 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 | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |