|
Clearspace API (2.0.15) Web Services Client Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.webservices.WSResultFilter
com.jivesoftware.community.webservices.WSBlogPostResultFilter
public class WSBlogPostResultFilter
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jivesoftware.community.webservices.WSResultFilter |
|---|
WSResultFilter.ResolutionState |
| Field Summary | |
|---|---|
static int |
PUBLISH_DATE
Sort on the publish date. |
| Fields inherited from class com.jivesoftware.community.webservices.WSResultFilter |
|---|
ASCENDING, DESCENDING, NULL_INT |
| Constructor Summary | |
|---|---|
WSBlogPostResultFilter()
|
|
| Method Summary | |
|---|---|
static WSBlogPostResultFilter |
createDefaultFilter()
Creates a default blog post ResultFilter: only blog posts that have status = com.jivesoftware.community.BlogPost#STATUS_PUBLISH with results sorted
on the blog post publish date (newest blog posts first). |
long |
getBlogID()
Returns the blogID that results will be filtered on. |
java.util.Date |
getPublishDateRangeMax()
Returns a date that represents the upper boundry for blog posts 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. |
boolean |
isOnlyPublished()
Returns whether the result to be selected by the result filter should include published blog posts. |
void |
setBlogID(long blogID)
Sets the blogID that results will be filtered on. |
void |
setOnlyPublished(boolean onlyPublished)
Sets whether the result to be selected by the result filter should include published blog posts. |
void |
setPublishDateRangeMax(java.util.Date publishDateRangeMax)
Sets a date that represents the upper boundry for blog posts 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PUBLISH_DATE
| Constructor Detail |
|---|
public WSBlogPostResultFilter()
| Method Detail |
|---|
public static WSBlogPostResultFilter createDefaultFilter()
com.jivesoftware.community.BlogPost#STATUS_PUBLISH with results sorted
on the blog post publish date (newest blog posts first). NOTE: The resulting BlogPostResultFilter should not be stored by invoking classes; this filter is the default blog post filter at the time it's being invoked.
public boolean isOnlyPublished()
NOTE: This method only looks at the blog post publish status value and NOT the publish date. Under most circumstances, you'll want to use this method in conjunction with the publish date max and min methods.
public void setOnlyPublished(boolean onlyPublished)
NOTE: This method only looks at the blog post publish status value and NOT the publish date. Under most circumstances, you'll want to use this method in conjunction with the publish date max and min methods.
public java.util.Date getPublishDateRangeMin()
public void setPublishDateRangeMin(java.util.Date publishDateRangeMin)
Setting a date range for a BlogPostResultFilter 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 long getBlogID()
public void setBlogID(long blogID)
blogID - the blog ID to filter on.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||