}
}
}
protected void initializeServiceRules() throws IOException {
ServiceAccessRuleDAO dao = ServiceAccessRuleDAO.get();
dao.getRules();
dao.addRule(new ServiceAccessRule("wms", "GetMap", "ROLE_AUTHENTICATED"));
dao.addRule(new ServiceAccessRule("wms", "*", "ROLE_WMS"));
dao.addRule(new ServiceAccessRule("wfs", "GetFeature", "ROLE_AUTHENTICATED"));
dao.addRule(new ServiceAccessRule("wfs", "*", "ROLE_WFS"));
dao.addRule(new ServiceAccessRule("*", "*", GeoServerRole.ADMIN_ROLE.getAuthority()));
dao.storeRules();
}