public class RssFeedUserPrefsComponent extends Object implements Component, Serviceable
Modifier and Type | Field and Description |
---|---|
protected RenderingContextHandler |
_renderingContext
The rendering context handler.
|
protected RightManager |
_rightManager
The right manager
|
static String |
ROLE
Avalon ROLE.
|
Constructor and Description |
---|
RssFeedUserPrefsComponent() |
Modifier and Type | Method and 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 cacheable
|
void |
service(ServiceManager manager) |
boolean |
showPreferenceForm(Page page,
int nbCustomFeeds,
long nbFeeds,
long maxFeeds)
Determines if the preference forms for RSS Feeds must be displayed
|
protected RightManager _rightManager
protected RenderingContextHandler _renderingContext
public RssFeedUserPrefsComponent()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public boolean showPreferenceForm(Page page, int nbCustomFeeds, long nbFeeds, long maxFeeds)
page
- The pagenbCustomFeeds
- The number of personal feednbFeeds
- The number of feedsmaxFeeds
- The max number of feedspublic boolean isServiceCacheable(ModelAwareRepeater repeater, int nbCustomFeeds, int nbFeeds, int maxFeeds)
repeater
- The repeater feedsnbCustomFeeds
- The number of personal feednbFeeds
- The number of feedsmaxFeeds
- The max number of feedsprivate boolean _hasCustomsFeeds(int nbCustomFeeds, long nbFeeds, long maxFeeds)