.getBean("testResourceAccessManager");
Catalog catalog = getCatalog();
CoverageInfo world = catalog.getCoverageByName(getLayerId(MockData.WORLD));
// limits for mr cite_noworld: can't access the world layer
tam.putLimits("cite_noworld", world, new CoverageAccessLimits(CatalogMode.HIDE,
Filter.EXCLUDE, null, null));
// limits for mr cite_noworld: can't access the world layer
tam.putLimits("cite_noworld_challenge", world, new CoverageAccessLimits(
CatalogMode.CHALLENGE, Filter.EXCLUDE, null, null));
// limits the area to north america
MultiPolygon rasterFilter = (MultiPolygon) new WKTReader()
.read("MULTIPOLYGON(((-120 30, -120 60, -60 60, -60 30, -120 30)))");
tam.putLimits("cite_usa", world, new CoverageAccessLimits(CatalogMode.HIDE, null,
rasterFilter, null));
}