Class RssFeedUserPrefsComponent

java.lang.Object
org.ametys.plugins.syndication.RssFeedUserPrefsComponent
All Implemented Interfaces:
Component, Serviceable

public class RssFeedUserPrefsComponent extends Object implements Component, Serviceable
Component for access to the user preferences for feeds
  • Field Details

  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • 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