@Test public void testIsDiscussionIndependentFilter() { NoteQueryParameters noteQueryParameters = new NoteQueryParameters(); Assert.assertFalse(noteQueryParameters.isFavorites()); Assert.assertFalse(noteQueryParameters.isFollowingFeedAndUnfiltered()); Assert.assertTrue(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertFalse(noteQueryParameters.isNotificationFeed()); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.setDiscussionFilterMode(DiscussionFilterMode.IS_ROOT); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.getTypeSpecificExtension().setBlogId(12L); Assert.assertTrue(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.getTypeSpecificExtension().setBlogAliasFilter(new String[] { "test" }); Assert.assertTrue(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.getTypeSpecificExtension().setBlogFilter(new Long[] { 13L, 14l }); Assert.assertTrue(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.setFavorites(Boolean.TRUE); Assert.assertFalse(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertTrue(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.setFavorites(Boolean.FALSE); Assert.assertTrue(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.setRetrieveOnlyFollowedItems(true); Assert.assertFalse(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertTrue(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.setRetrieveOnlyFollowedItems(false); Assert.assertTrue(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.getTagIds().add(12l); Assert.assertFalse(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertTrue(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.getTagIds().clear(); Assert.assertTrue(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); noteQueryParameters.setLowerTagDate(new Date()); Assert.assertTrue(noteQueryParameters.isDiscussionIndependentFilter()); Assert.assertFalse(noteQueryParameters.isDiscussionDependentRootNotesFilter()); }
public boolean isDiscussionIndependentFilter() { boolean isContinious = !this.isRetrieveOnlyFollowedItems() && !this.isFavorites() && !this.isNotificationFeed(); if (isContinious) { isContinious = !this.isFeedFiltered(true, true, true); } return isContinious; }
NoteQueryParameters extends TimelineQueryParameters { public boolean isDiscussionIndependentFilter() { boolean isContinious = !this.isRetrieveOnlyFollowedItems() && !this.isFavorites() && !this.isNotificationFeed(); if (isContinious) { isContinious = !this.isFeedFiltered(true, true, true); } return isContinious; } }
NoteQueryParameters extends TimelineQueryParameters { public boolean isDiscussionIndependentFilter() { boolean isContinious = !this.isRetrieveOnlyFollowedItems() && !this.isFavorites() && !this.isNotificationFeed(); if (isContinious) { isContinious = !this.isFeedFiltered(true, true, true); } return isContinious; } NoteQueryParameters(); }
NoteQueryParameters extends TimelineQueryParameters { public boolean isDiscussionIndependentFilter() { boolean isContinious = !this.isRetrieveOnlyFollowedItems() && !this.isFavorites() && !this.isNotificationFeed(); if (isContinious) { isContinious = !this.isFeedFiltered(true, true, true); } return isContinious; } NoteQueryParameters(); static NoteQueryParameters clone(NoteQueryParameters parameters); static NoteQueryParameters clone(TimelineQueryParameters queryParameters); @Override DiscussionFilterMode getDiscussionFilterModeForFiltering(); String getOriginalPostId(); @Override Map<String, Object> getParameters(); @Override ResultSpecification getResultSpecification(); Date getRetrieveOnlyNotesAfterDate(); Long getRetrieveOnlyNotesAfterId(); Date getRetrieveOnlyNotesBeforeDate(); Long getRetrieveOnlyNotesBeforeId(); OrderDirection getSortByDate(); OrderDirection getSortById(); NoteStatus getStatus(); boolean isDiscussionDependentRootNotesFilter(); boolean isDiscussionIndependentFilter(); boolean isFavoriteFeedAndUnfiltered(); boolean isFeedFiltered(); boolean isFeedFiltered(boolean allowBlogFilter, boolean allowDateFilter,
            boolean allowDiscussionIdFilter); boolean isFollowingFeedAndUnfiltered(); boolean isNotificationFeed(); boolean isThreadedView(); void setOriginalPostId(String originalPostId); void setRetrieveOnlyNotesAfterDate(Date retrieveOnlyNotesAfterDate); void setRetrieveOnlyNotesAfterId(Long noteId); void setRetrieveOnlyNotesBeforeDate(Date retrieveOnlyNotesBeforeDate); void setRetrieveOnlyNotesBeforeId(Long noteId); void setSortByDate(OrderDirection orderDirection); void setSortById(OrderDirection sortById); void setStatus(NoteStatus status); void setTimelineFilterViewType(TimelineFilterViewType timelineFilterViewType); }
NoteQueryParameters extends TimelineQueryParameters { public boolean isDiscussionIndependentFilter() { boolean isContinious = !this.isRetrieveOnlyFollowedItems() && !this.isFavorites() && !this.isNotificationFeed(); if (isContinious) { isContinious = !this.isFeedFiltered(true, true, true); } return isContinious; } NoteQueryParameters(); static NoteQueryParameters clone(NoteQueryParameters parameters); static NoteQueryParameters clone(TimelineQueryParameters queryParameters); @Override DiscussionFilterMode getDiscussionFilterModeForFiltering(); String getOriginalPostId(); @Override Map<String, Object> getParameters(); @Override ResultSpecification getResultSpecification(); Date getRetrieveOnlyNotesAfterDate(); Long getRetrieveOnlyNotesAfterId(); Date getRetrieveOnlyNotesBeforeDate(); Long getRetrieveOnlyNotesBeforeId(); OrderDirection getSortByDate(); OrderDirection getSortById(); NoteStatus getStatus(); boolean isDiscussionDependentRootNotesFilter(); boolean isDiscussionIndependentFilter(); boolean isFavoriteFeedAndUnfiltered(); boolean isFeedFiltered(); boolean isFeedFiltered(boolean allowBlogFilter, boolean allowDateFilter,
            boolean allowDiscussionIdFilter); boolean isFollowingFeedAndUnfiltered(); boolean isNotificationFeed(); boolean isThreadedView(); void setOriginalPostId(String originalPostId); void setRetrieveOnlyNotesAfterDate(Date retrieveOnlyNotesAfterDate); void setRetrieveOnlyNotesAfterId(Long noteId); void setRetrieveOnlyNotesBeforeDate(Date retrieveOnlyNotesBeforeDate); void setRetrieveOnlyNotesBeforeId(Long noteId); void setSortByDate(OrderDirection orderDirection); void setSortById(OrderDirection sortById); void setStatus(NoteStatus status); void setTimelineFilterViewType(TimelineFilterViewType timelineFilterViewType); static final String PARAM_NOTE_STATUS; }