|
Clearspace API (2.5.18) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.ResultFilter
com.jivesoftware.community.ThreadResultFilter
com.jivesoftware.community.TagResultFilter
com.jivesoftware.community.BlogTagResultFilter
public class BlogTagResultFilter
Filters and sorts tags with specific fields for Blogs.
| Field Summary |
|---|
| Fields inherited from class com.jivesoftware.community.ResultFilter |
|---|
AND_MODE, ASCENDING, CONTAINS_MATCH, DESCENDING, EXACT_MATCH, NULL_INT, OR_MODE |
| Constructor Summary | |
|---|---|
BlogTagResultFilter()
|
|
| Method Summary | |
|---|---|
static BlogTagResultFilter |
createDefaultFilter()
Creates a default tag ResultFilter: all tags associated with blog posts that have status = BlogPost#STATUS_PUBLISH, publishDate less than now() (with minute precision)
ordered by tag name in descending order. |
Date |
getPublishDateRangeMax()
Returns a date that represents the upper boundry for tags to be selected by the result filter. |
Date |
getPublishDateRangeMin()
Returns the publish date that represents the lower boundary for blog posts to be filtered on. |
void |
setPublishDateRangeMax(Date publishDateRangeMax)
Sets a date that represents the upper boundry for tags to be selected by the result filter. |
void |
setPublishDateRangeMin(Date publishDateRangeMin)
Sets the date that represents the lower boundary for blog posts to be selected by the result filter. |
| Methods inherited from class com.jivesoftware.community.TagResultFilter |
|---|
equals, getMinimum, hashCode, setMinimum |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlogTagResultFilter()
| Method Detail |
|---|
public static BlogTagResultFilter createDefaultFilter()
BlogPost#STATUS_PUBLISH, publishDate less than now() (with minute precision)
ordered by tag name in descending order.NOTE: The resulting BlogTagResultFilter should not be stored by invoking classes; this filter is the default tag filter at the time this method is invoked.
public Date getPublishDateRangeMin()
public void setPublishDateRangeMin(Date publishDateRangeMin)
Setting a date range for a BlogTagResultFilter is a potential performance bottleneck. For example, if the argument for the date range is "new Date()" then the corresponding database query will map to an accuracy of a particular millesecond in time. This means that the results can't be cached. A better solution is to round dates to the nearest minute, hour, etc (whatever accuracy you need).
publishDateRangeMin - Date representing the filter lowest value of
the publish date to be selected.public Date getPublishDateRangeMax()
public void setPublishDateRangeMax(Date publishDateRangeMax)
publishDateRangeMax - Date representing the filter lowest value of
the publish date range.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||