code: @Override
      @RequestCache
      public IPermission[] getPermissionsForPrincipal(
              IAuthorizationPrincipal principal, String owner, String activity, String target)
              throws AuthorizationException {
          return primGetPermissionsForPrincipal(principal, owner, activity, target);
      }
docs: Returns the <code>IPermissions</code> owner has granted this <code>Principal</code> for the
  specified activity and target. Null parameters will be ignored, that is, all <code>
  IPermissions</code> matching the non-null parameters are retrieved. So, <code>
  getPermissions(principal,null, null, null)</code> should retrieve all <code>IPermissions
  </code> for a <code>Principal</code>.
  
  @return org.apereo.portal.security.IPermission[]
  @param principal IAuthorizationPrincipal
  @param owner java.lang.String
  @param activity java.lang.String
  @param target java.lang.String
  @exception AuthorizationException indicates authorization information could not be retrieved.