Class RssFeedUserPrefsComponent

    • Method Detail

      • showPreferenceForm

        public boolean showPreferenceForm​(Page page,
                                          int nbCustomFeeds,
                                          long nbFeeds,
                                          long maxFeeds)
        Determines if the preference forms for RSS Feeds must be displayed
        Parameters:
        page - The page
        nbCustomFeeds - The number of personal feed
        nbFeeds - The number of feeds
        maxFeeds - The max number of feeds
        Returns:
        true if the preference forms for RSS Feeds must be displayed
      • isServiceCacheable

        public boolean isServiceCacheable​(ModelAwareRepeater repeater,
                                          int nbCustomFeeds,
                                          int nbFeeds,
                                          int maxFeeds)
        Determines if the service for feeds is cacheable
        Parameters:
        repeater - The repeater feeds
        nbCustomFeeds - The number of personal feed
        nbFeeds - The number of feeds
        maxFeeds - The max number of feeds
        Returns:
        true if the service is cacheable
      • _hasCustomsFeeds

        private boolean _hasCustomsFeeds​(int nbCustomFeeds,
                                         long nbFeeds,
                                         long maxFeeds)