public void rollbackPool ( ) { if ( newTopicPool == null || newTopicPool . isEmpty ( ) ) return ; final List < Integer > topicIds = new ArrayList < Integer > ( ) ; for ( final TopicWrapper topic : newTopicPool . getItems ( ) ) { topicIds . add ( topic . getTopicId ( ) ) ; } try { topicProvider . deleteTopics ( topicIds ) ; initialised = false ; } catch ( Exception e ) { log . error ( "An error occurred while trying to rollback the Topic Pool" , e ) ; } }
Rolls back any new topics that were created . Since existing topics are stored in revision data when edited we can t roll back that data properly .