Package org.ametys.plugins.syndication
Class RssFeedUserPrefsComponent
java.lang.Object
org.ametys.plugins.syndication.RssFeedUserPrefsComponent
- All Implemented Interfaces:
Component
,Serviceable
Component for access to the user preferences for feeds
-
Field Summary
Modifier and TypeFieldDescriptionprotected RenderingContextHandler
The rendering context handler.protected RightManager
The right managerstatic final String
Avalon ROLE. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isServiceCacheable
(ModelAwareRepeater repeater, int nbCustomFeeds, int nbFeeds, int maxFeeds) Determines if the service for feeds is cacheablevoid
service
(ServiceManager manager) boolean
showPreferenceForm
(Page page, int nbCustomFeeds, long nbFeeds, long maxFeeds) Determines if the preference forms for RSS Feeds must be displayed
-
Field Details
-
ROLE
Avalon ROLE. -
_rightManager
The right manager -
_renderingContext
The rendering context handler.
-
-
Constructor Details
-
RssFeedUserPrefsComponent
public RssFeedUserPrefsComponent()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
showPreferenceForm
Determines if the preference forms for RSS Feeds must be displayed- Parameters:
page
- The pagenbCustomFeeds
- The number of personal feednbFeeds
- The number of feedsmaxFeeds
- 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 feedsnbCustomFeeds
- The number of personal feednbFeeds
- The number of feedsmaxFeeds
- The max number of feeds- Returns:
- true if the service is cacheable
-