|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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,
DateFormatter formatter)
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<BlogPost> |
getPostsForDay(int dayOfMonth)
Get the posts made on a particular day of the month |
java.util.List<BlogPost> |
getPostsForMonth()
Get all the posts for 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, DateFormatter formatter)
coversDate
- a date falling within the month being calendaredblogPosts
- the blog posts to populate the calendarspaceKey
- the space key to build the calendar forMethod Detail |
---|
public int getDaysInMonth()
public int getStartingDayOfMonth()
public java.util.List<BlogPost> getPostsForDay(int dayOfMonth)
dayOfMonth
- the day of the month to get the posts for (starting at 1)
public java.util.List<BlogPost> getPostsForMonth()
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 | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |