protected boolean processTopicSourceUrls ( final TopicSourceURLProvider topicSourceURLProvider , final SpecTopic specTopic , final TopicWrapper topic ) { LOG . debug ( "Processing topic source urls" ) ; boolean changed = false ; // Save the new Source Urls final List < String > urls = specTopic . getSourceUrls ( true ) ; if ( urls != null && ! urls . isEmpty ( ) ) { final UpdateableCollectionWrapper < TopicSourceURLWrapper > sourceUrls = topic . getSourceURLs ( ) == null ? topicSourceURLProvider . newTopicSourceURLCollection ( topic ) : topic . getSourceURLs ( ) ; // Iterate over the spec topic urls and add them for ( final String url : urls ) { final TopicSourceURLWrapper sourceUrl = topicSourceURLProvider . newTopicSourceURL ( topic ) ; sourceUrl . setUrl ( url ) ; sourceUrls . addNewItem ( sourceUrl ) ; } topic . setSourceURLs ( sourceUrls ) ; changed = true ; } return changed ; }
Processes a Spec Topic and adds any new Source Urls to the topic it represents .