public void initialize(IDataSource datasource) { if (datasource == null) { datasource = getDataSource(); } if (datasource != null) { CustomRSSFeedDataSource rssFeedDatasource = (CustomRSSFeedDataSource) datasource; feed = new RSSFeed( rssFeedDatasource.getFeedUrl(), rssFeedDatasource.getUserId(), rssFeedDatasource.getPassword(), rssFeedDatasource.getAuthenticationType()); setDataMetaData(getDataMetaData(feed.getAttributeNames(), feed.getAttributeTypes())); } super.initialize(datasource); }
/* * (non-Javadoc) * * @see com.enterprisehorizons.magma.data.IDataDriver#getData() */ public List getData() { setCustomSearchCriteria(); return feed != null ? feed.getRecordsAsList() : null; }