public Collection < AlertChannel > list ( String name ) { List < AlertChannel > ret = new ArrayList < AlertChannel > ( ) ; Collection < AlertChannel > channels = list ( ) ; for ( AlertChannel channel : channels ) { if ( channel . getName ( ) . equals ( name ) ) ret . add ( channel ) ; } return ret ; }
Returns the set of alert channels with the given name .