getNamedPolicy method

List<List<String>> getNamedPolicy(
  1. String ptype
)

getNamedPolicy gets all the authorization rules in the named policy.

ptype the policy type, can be "p", "p2", "p3", .. return the "p" policy rules of the specified ptype.

Implementation

List<List<String>> getNamedPolicy(String ptype) {
  return model.getPolicy('p', ptype);
}