public void populateTableByDistributionSet ( final DistributionSet distributionSet ) { removeAllItems ( ) ; if ( distributionSet == null ) { return ; } final Container dataSource = getContainerDataSource ( ) ; final List < TargetFilterQuery > filters = distributionSet . getAutoAssignFilters ( ) ; filters . forEach ( query -> { final Object itemId = dataSource . addItem ( ) ; final Item item = dataSource . getItem ( itemId ) ; item . getItemProperty ( TFQ_NAME ) . setValue ( query . getName ( ) ) ; item . getItemProperty ( TFQ_QUERY ) . setValue ( query . getQuery ( ) ) ; } ) ; }
Populate software module metadata .