Examples of accept()


Examples of org.exoplatform.web.security.proxy.ProxyFilterService.accept()

                    hresp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Could not access proxy filter service "
                            + ctx.getContextPath());
                } else {
                    try {
                        URI uri = URI.create(url);
                        if (!service.accept(hreq, container, uri)) {
                            hresp.sendError(HttpServletResponse.SC_FORBIDDEN, "Gadget " + url + " is blacklisted");
                        } else {
                            chain.doFilter(req, resp);
                        }
View Full Code Here

Examples of org.geoserver.catalog.CatalogInfo.accept()

        public void handleModifyEvent(CatalogModifyEvent event) {
        }

        public void handlePostModifyEvent(CatalogPostModifyEvent event) {
            CatalogInfo src = event.getSource();
            src.accept(catalogVisitor);
        }

        public void reloaded() {
        }
View Full Code Here

Examples of org.geoserver.catalog.LayerInfo.accept()

    public void testCascadeLayer() {
        String name = getLayerId(MockData.LAKES);
        LayerInfo layer = catalog.getLayerByName(name);
        assertNotNull(layer);
        layer.accept(visitor);
       
        // we expect a layer, a resource and a group
        assertEquals(3, visitor.getObjects(null).size());
       
        // check the layer and resource have been marked to delete (and
View Full Code Here

Examples of org.geoserver.catalog.NamespaceInfo.accept()

       
        StoreInfo s1 = createMock(StoreInfo.class);
        StoreInfo s2 = createMock(StoreInfo.class);
        expect(catalog.getStoresByWorkspace(ws, StoreInfo.class)).andReturn(Arrays.asList(s1, s2)).anyTimes();

        ns.accept((CatalogVisitor)anyObject());
        expectLastCall();

        s1.accept((CatalogVisitor)anyObject());
        expectLastCall();
View Full Code Here

Examples of org.geoserver.catalog.StoreInfo.accept()

                    if(ws != null)
                        ws.accept(deleteVisitor);
                } else if(summary.isStoreNew()) {
                    StoreInfo si = catalog.getStoreByName(project, project, StoreInfo.class);
                    if(si != null)
                        si.accept(deleteVisitor);
                } else {
                    // just remove the layers we created
                    for (LayerSummary layer : summary.getLayers()) {
                        catalog.remove(layer.getLayer());
                        catalog.remove(layer.getLayer().getResource());
View Full Code Here

Examples of org.geoserver.catalog.StyleInfo.accept()

        buildings.getStyles().add(style);
        catalog.save(buildings);
        buildings = catalog.getLayerByName(getLayerId(MockData.BUILDINGS));
        assertTrue(buildings.getStyles().contains(style));
       
        style.accept(visitor);
       
        // test style reset
        assertEquals(style.getId(), visitor.getObjects(StyleInfo.class, ModificationType.DELETE).get(0).getId());
        String lakesId = catalog.getLayerByName(layerName).getId();
        assertEquals(lakesId, visitor.getObjects(LayerInfo.class, ModificationType.STYLE_RESET).get(0).getId());
View Full Code Here

Examples of org.geoserver.catalog.WorkspaceInfo.accept()

                CascadeDeleteVisitor deleteVisitor = new CascadeDeleteVisitor(catalog);
                String project = summary.getProject();
                if(summary.isWorkspaceNew()) {
                    WorkspaceInfo ws = catalog.getWorkspaceByName(project);
                    if(ws != null)
                        ws.accept(deleteVisitor);
                } else if(summary.isStoreNew()) {
                    StoreInfo si = catalog.getStoreByName(project, project, StoreInfo.class);
                    if(si != null)
                        si.accept(deleteVisitor);
                } else {
View Full Code Here

Examples of org.geoserver.importer.Directory.accept()

            throw new RuntimeException("Unable to create directory for file upload");
        }

        // pass off the uploaded file to the importer
        Directory dir = new Directory(uploadDir);
        dir.accept(files.next());

        return doImport(dir, ws);
    }

    @RequestMapping(value = "/{wsName}", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
View Full Code Here

Examples of org.geotools.filter.FunctionImpl.accept()

                    }
                };
                f.setName("lower");
               
                f.setParameters(Arrays.asList(left));
                f.accept(this, Arrays.asList(leftContext));
               
                out.write(" " + type + " ");
               
                f.setParameters(Arrays.asList(right));
                f.accept(this, Arrays.asList(rightContext));
View Full Code Here

Examples of org.geotools.styling.AnchorPoint.accept()

    }

    public void testAnchorPoint() {
        AnchorPoint anchorPoint = sf.createAnchorPoint(ff.literal(1),
                ff.literal(2));
        anchorPoint.accept(visitor);
       
        AnchorPoint clone = (AnchorPoint) visitor.getCopy();
        assertCopy(anchorPoint, clone);

        AnchorPoint other = sf.createAnchorPoint(ff.literal(3), ff
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.