public void setFilterGUIDs ( List < String > filterGUIDs ) { int i = 0 ; for ( String filterGUID : filterGUIDs ) { // Remove filters (we're replacing them) removeFilter ( "Filter_" + i ) ; // Build a new Filter_0 element Element filter = buildFilterElement ( "Filter_" + i , filterGUID ) ; element . addContent ( filter ) ; i ++ ; } }
Set the filter GUID replacing any filter that is currently defined