info.magnolia.module.rssaggregator.importhandler
Class AggregateFeedContentMapper

java.lang.Object
  extended by info.magnolia.module.rssaggregator.importhandler.AggregateFeedContentMapper
All Implemented Interfaces:
ContentMapper<AggregateFeed>

public class AggregateFeedContentMapper
extends Object
implements ContentMapper<AggregateFeed>

Maps a content node defining an aggregate feed to an actual AggregateFeed with its feed channels.

Author:
Rob van der Linden Vooren
See Also:
AggregateFeed, FeedChannel, ContentMapper

Constructor Summary
AggregateFeedContentMapper()
           
 
Method Summary
 AggregateFeed map(javax.jcr.Node aggregateNode)
          Map a content node that defines a type T to an object of that type.
protected  void setFeedChannelContentMapper(FeedChannelContentMapper feedChannelMapper)
          for testing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregateFeedContentMapper

public AggregateFeedContentMapper()
Method Detail

map

public AggregateFeed map(javax.jcr.Node aggregateNode)
                  throws javax.jcr.RepositoryException
Map a content node that defines a type T to an object of that type.

Specified by:
map in interface ContentMapper<AggregateFeed>
Parameters:
aggregateNode - the content node to map
Returns:
the result object of type T
Throws:
javax.jcr.RepositoryException - when a problem occurred accessing the underlying repository

setFeedChannelContentMapper

protected void setFeedChannelContentMapper(FeedChannelContentMapper feedChannelMapper)
for testing.



Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.