boolean removeFilteredPolicy ( String sec , String ptype , int fieldIndex , String ... fieldValues ) { boolean ruleRemoved = model . removeFilteredPolicy ( sec , ptype , fieldIndex , fieldValues ) ; if ( ! ruleRemoved ) { return false ; } if ( adapter != null && autoSave ) { try { adapter . removeFilteredPolicy ( sec , ptype , fieldIndex , fieldValues ) ; } catch ( Error e ) { if ( ! e . getMessage ( ) . equals ( "not implemented" ) ) { throw e ; } } if ( watcher != null ) { // error intentionally ignored watcher . update ( ) ; } } return true ; }
removeFilteredPolicy removes rules based on field filters from the current policy .