public static Set < Pair < Integer , Integer > > getTopicIdsFromContentSpec ( final ContentSpec contentSpec ) { // Add the topics at this level to the database final Set < Pair < Integer , Integer > > topicIds = new HashSet < Pair < Integer , Integer > > ( ) ; final List < SpecTopic > specTopics = contentSpec . getSpecTopics ( ) ; for ( final SpecTopic specTopic : specTopics ) { if ( specTopic . getDBId ( ) != 0 ) { topicIds . add ( new Pair < Integer , Integer > ( specTopic . getDBId ( ) , specTopic . getRevision ( ) ) ) ; } } return topicIds ; }
Gets a Set of Topic ID s to Revisions from the content specification for each Spec Topic .