info.magnolia.module.rssaggregator.importhandler
Class FeedChannelContentMapper

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

public class FeedChannelContentMapper
extends Object
implements ContentMapper<FeedChannel>

Maps a content node defining a feed channel to an actual FeedChannel.

Author:
Rob van der Linden Vooren

Constructor Summary
FeedChannelContentMapper()
           
 
Method Summary
 FeedChannel map(javax.jcr.Node feedChannelNode)
          Map a content node defining a feed channel to an actual FeedChannel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedChannelContentMapper

public FeedChannelContentMapper()
Method Detail

map

public FeedChannel map(javax.jcr.Node feedChannelNode)
                throws javax.jcr.RepositoryException
Map a content node defining a feed channel to an actual FeedChannel. If the content node does not have link node data, null is returned.

Furthermore, trimming occurs on the link and title node data values.

Specified by:
map in interface ContentMapper<FeedChannel>
Parameters:
feedChannelNode - the content node defining a feed channel
Returns:
a feed channel mapped from the given feedNode when mapped succesful, null if the content node does not have link node data
Throws:
javax.jcr.RepositoryException - when an exception occurs
IllegalArgumentException - when link or title node data are blank


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