Package org.ametys.plugins.syndication
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 Summary
Fields Modifier and Type Field Description protected RenderingContextHandler
_renderingContext
The rendering context handler.protected RightManager
_rightManager
The right managerstatic String
ROLE
Avalon ROLE.
-
Constructor Summary
Constructors Constructor Description RssFeedUserPrefsComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
_hasCustomsFeeds(int nbCustomFeeds, long nbFeeds, long maxFeeds)
boolean
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 Detail
-
_rightManager
protected RightManager _rightManager
The right manager
-
_renderingContext
protected RenderingContextHandler _renderingContext
The rendering context handler.
-
-
Constructor Detail
-
RssFeedUserPrefsComponent
public RssFeedUserPrefsComponent()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- 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 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
-
_hasCustomsFeeds
private boolean _hasCustomsFeeds(int nbCustomFeeds, long nbFeeds, long maxFeeds)
-
-