Package org.geoserver.security

Examples of org.geoserver.security.DataAccessManagerAdapter


        return layer;
    }

    protected ResourceAccessManager buildManager(String propertyFile) throws Exception {
        return new DataAccessManagerAdapter(buildLegacyAccessManager(propertyFile));
    }
View Full Code Here


   * Simple extension of org.geoserver.security.SecureCatalogImpl that exposes the constructor that includes a org.geoserver.security.DataAccessManager
   *
   */
  class TestableSecureCatalogImpl extends SecureCatalogImpl {
    public TestableSecureCatalogImpl(Catalog catalog, DataAccessManager manager) {
      super(catalog, new DataAccessManagerAdapter(manager));
    }
View Full Code Here

        populateCatalog();
    }
   
    public void testAccessToLayer() throws Exception {
        DataAccessManager def = buildLegacyAccessManager("wideOpen.properties");
        ResourceAccessManager defAsResourceManager = new DataAccessManagerAdapter(def);
        LocalWorkspaceResourceAccessManager mgr = new LocalWorkspaceResourceAccessManager();
        mgr.setDelegate(defAsResourceManager);
       
        SecureCatalogImpl sc = new SecureCatalogImpl(catalog, mgr) {};
        assertNotNull(sc.getLayerByName("topp:states"));
View Full Code Here

   * Simple extension of org.geoserver.security.SecureCatalogImpl that exposes the constructor that includes a org.geoserver.security.DataAccessManager
   *
   */
  class TestableSecureCatalogImpl extends SecureCatalogImpl {
    public TestableSecureCatalogImpl(Catalog catalog, DataAccessManager manager) {
      super(catalog, new DataAccessManagerAdapter(manager));
    }
View Full Code Here

        replay(layerGroup);
        return layerGroup;
    }
   
    protected ResourceAccessManager buildManager(String propertyFile) throws Exception {
        return new DataAccessManagerAdapter(buildLegacyAccessManager(propertyFile));
    }
View Full Code Here

   
    protected ResourceAccessManager buildManager(String propertyFile) throws Exception {
        return new DataAccessManagerAdapter(buildLegacyAccessManager(propertyFile));
    }
    protected ResourceAccessManager buildManager(String propertyFile, final IAnswer<SecureCatalogImpl> securityWrapper) throws Exception {
        return new DataAccessManagerAdapter(buildLegacyAccessManager(propertyFile)) {

            @Override
            protected SecureCatalogImpl getSecurityWrapper() {
                try {
                    SecureCatalogImpl sc = securityWrapper.answer();
View Full Code Here

        populateCatalog();
    }

    CatalogFilterAccessManager setupAccessManager() throws Exception {
        DataAccessManager def = buildLegacyAccessManager("wideOpen.properties");
        ResourceAccessManager defAsResourceManager = new DataAccessManagerAdapter(def);
        CatalogFilterAccessManager mgr = new CatalogFilterAccessManager();
        mgr.setCatalogFilters(Collections.singletonList(new LocalWorkspaceCatalogFilter(catalog)));
        mgr.setDelegate(defAsResourceManager);
        return mgr;
    }
View Full Code Here

TOP

Related Classes of org.geoserver.security.DataAccessManagerAdapter

Copyright © 2018 www.massapicom. 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.