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();
}
protected void initializeDataAccessRules() throws IOException{
/*
* List of namespace:layer in test data