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
FieldsModifier and TypeFieldDescriptionprotected RenderingContextHandlerThe rendering context handler.protected RightManagerThe right managerstatic final StringAvalon ROLE. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisServiceCacheable(ModelAwareRepeater repeater, int nbCustomFeeds, int nbFeeds, int maxFeeds) Determines if the service for feeds is cacheablevoidservice(ServiceManager manager) booleanshowPreferenceForm(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:
servicein 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
-