|
Jive API (4.5.7.0) 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_DOUBLE, 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. |
boolean |
equals(java.lang.Object o)
|
java.util.Date |
getPublishDateRangeMax()
Returns a date that represents the upper boundry for tags to be selected by the result filter. |
java.util.Date |
getPublishDateRangeMin()
Returns the publish date that represents the lower boundary for blog posts to be filtered on. |
int |
hashCode()
|
void |
setPublishDateRangeMax(java.util.Date publishDateRangeMax)
Sets a date that represents the upper boundry for tags to be selected by the result filter. |
void |
setPublishDateRangeMin(java.util.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 |
|---|
getExcludedGroupTypes, getMinimum, getStartIndex, setExcludedGroupTypes, setMinimum, setStartIndex |
| 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 java.util.Date getPublishDateRangeMin()
public void setPublishDateRangeMin(java.util.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 java.util.Date getPublishDateRangeMax()
public void setPublishDateRangeMax(java.util.Date publishDateRangeMax)
publishDateRangeMax - Date representing the filter lowest value of
the publish date range.public boolean equals(java.lang.Object o)
equals in class TagResultFilterpublic int hashCode()
hashCode in class TagResultFilter
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||