code: public boolean isRuleDefined(final String iResource) {
  		for (ORole r : roles)
  			if (r.hasRule(iResource))
  				return true;
  
  		return false;
  	}
docs: Checks if a rule was defined for the user.
  
  @param iResource
  Requested resource
  @return True is a rule is defined, otherwise false