public ITopicNode initialiseFromPool ( final ITopicNode topicNode ) { if ( initialised ) { if ( newTopicPool != null && ! newTopicPool . isEmpty ( ) ) { for ( final TopicWrapper topic : newTopicPool . getItems ( ) ) { if ( topic . getProperty ( cspIdPropertyTagId ) != null ) { if ( topic . getProperty ( cspIdPropertyTagId ) . getValue ( ) . equals ( topicNode . getUniqueId ( ) ) ) { topicNode . setId ( Integer . toString ( topic . getId ( ) ) ) ; return topicNode ; } } } } if ( updatedTopicPool != null && ! updatedTopicPool . isEmpty ( ) ) { for ( final TopicWrapper topic : updatedTopicPool . getItems ( ) ) { if ( topic . getProperty ( cspIdPropertyTagId ) != null ) { if ( topic . getProperty ( cspIdPropertyTagId ) . getValue ( ) . equals ( topicNode . getUniqueId ( ) ) ) { topicNode . setId ( Integer . toString ( topic . getId ( ) ) ) ; return topicNode ; } } } } } return topicNode ; }
Initialises a content spec topic using the REST topics that exist within this pool . The topic pool must be saved and initialised before this call will work .