public class FeedsGenerator extends ServiceableGenerator
Modifier and Type | Field and Description |
---|---|
protected RssFeedUserPrefsComponent |
_confAccess
Conf access component
|
protected CurrentUserProvider |
_currentUserProvider
The current user provider
|
protected FeedCache |
_feedCache
The feed cache
|
protected GroupManager |
_groupManager
The group manager
|
private JSONUtils |
_jsonUtils |
private static HashMap<String,Integer> |
_lifeTimes |
protected RenderingContextHandler |
_renderingContext
The rendering context handler.
|
protected SourceResolver |
_resolver
The source resolver
|
protected RightManager |
_rightManager
The right manager
|
protected UserPreferencesManager |
_userPrefManager
The user preferences manager.
|
static String |
USER_PREF_RSS_ID_KEY
User pref key for positions
|
static String |
USER_PREF_RSS_URL_KEY
User pref key for urls
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
FeedsGenerator() |
Modifier and Type | Method and Description |
---|---|
private boolean |
_checkUserAccessRSS(ModelAwareRepeaterEntry rssFeed) |
private Map<String,String> |
_getContextVars(String siteName,
String language) |
private List<String> |
_getListId(UserIdentity user,
String storageContext,
Map<String,String> contextVars) |
private List<String> |
_getListUrl(UserIdentity user,
String storageContext,
Map<String,String> contextVars) |
private void |
_saxAllFeed(Request request,
ZoneItem zoneItem,
ModelAwareDataHolder serviceParameters,
List<String> urlList,
List<String> userSelectedFeedsId) |
private void |
_saxFeed(long length,
String url,
String name,
String lifeTime,
Boolean isCustom,
Boolean isSelected) |
private void |
_saxFeeds(int nbMaxUser,
List<ModelAwareRepeaterEntry> listFeeds,
List<String> urlList,
long nbMaxFeedFullSaxed,
long defaultLength,
String defaultLifeTime,
ModelAwareDataHolder serviceParameters,
List<String> userSelectedFeedsId) |
private void |
_saxFeedsConfig(long nbMaxUser,
List<ModelAwareRepeaterEntry> listFeeds,
List<String> urlList,
List<String> userSelectedFeedsId) |
private void |
_saxFullInfoFeed(ModelAwareRepeaterEntry rssFeed,
boolean isSelected,
long defaultLength,
String defaultLifeTime) |
private void |
_saxFullInfoFeedCustom(ModelAwareDataHolder serviceParameters,
String url,
long defaultLength,
boolean isSelected) |
private void |
_saxInfoFeed(String url,
String name,
String feedId,
boolean isCustom,
boolean isSelected) |
void |
generate() |
void |
service(ServiceManager serviceManager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
public static final String USER_PREF_RSS_URL_KEY
public static final String USER_PREF_RSS_ID_KEY
private static HashMap<String,Integer> _lifeTimes
protected RssFeedUserPrefsComponent _confAccess
protected RightManager _rightManager
protected GroupManager _groupManager
protected FeedCache _feedCache
protected SourceResolver _resolver
protected UserPreferencesManager _userPrefManager
protected RenderingContextHandler _renderingContext
protected CurrentUserProvider _currentUserProvider
private JSONUtils _jsonUtils
public FeedsGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
private void _saxAllFeed(Request request, ZoneItem zoneItem, ModelAwareDataHolder serviceParameters, List<String> urlList, List<String> userSelectedFeedsId) throws SAXException
SAXException
private void _saxFeedsConfig(long nbMaxUser, List<ModelAwareRepeaterEntry> listFeeds, List<String> urlList, List<String> userSelectedFeedsId) throws SAXException
SAXException
private void _saxFeeds(int nbMaxUser, List<ModelAwareRepeaterEntry> listFeeds, List<String> urlList, long nbMaxFeedFullSaxed, long defaultLength, String defaultLifeTime, ModelAwareDataHolder serviceParameters, List<String> userSelectedFeedsId)
private void _saxInfoFeed(String url, String name, String feedId, boolean isCustom, boolean isSelected) throws SAXException
SAXException
private void _saxFullInfoFeed(ModelAwareRepeaterEntry rssFeed, boolean isSelected, long defaultLength, String defaultLifeTime)
private void _saxFullInfoFeedCustom(ModelAwareDataHolder serviceParameters, String url, long defaultLength, boolean isSelected)
private void _saxFeed(long length, String url, String name, String lifeTime, Boolean isCustom, Boolean isSelected)
private List<String> _getListUrl(UserIdentity user, String storageContext, Map<String,String> contextVars) throws UserPreferencesException, UnsupportedEncodingException
private List<String> _getListId(UserIdentity user, String storageContext, Map<String,String> contextVars) throws UserPreferencesException
UserPreferencesException
private boolean _checkUserAccessRSS(ModelAwareRepeaterEntry rssFeed)