public boolean hasPolicy ( String sec , String ptype , List < String > rule ) { for ( List < String > r : model . get ( sec ) . get ( ptype ) . policy ) { if ( Util . arrayEquals ( rule , r ) ) { return true ; } } return false ; }
hasPolicy determines whether a model has the specified policy rule .