Codota Logo
SecureCatalogImpl.getStyles
Code IndexAdd Codota to your IDE (free)

How to use
getStyles
method
in
org.geoserver.security.SecureCatalogImpl

Best Java code snippets using org.geoserver.security.SecureCatalogImpl.getStyles (Showing top 2 results out of 315)

origin: geoserver/geoserver

public List<StyleInfo> getStyles() {
  return catalog.getStyles();
}
origin: org.geoserver.security/gs-security-tests

@Test
public void testAccessToStyle() throws Exception {
  CatalogFilterAccessManager mgr = setupAccessManager();
  SecureCatalogImpl sc = new SecureCatalogImpl(catalog, mgr) {};
  assertEquals(2, sc.getStyles().size());
  WorkspaceInfo ws = sc.getWorkspaceByName("topp");
  LocalWorkspace.set(ws);
  assertEquals(2, sc.getStyles().size());
  LocalWorkspace.remove();
  ws = sc.getWorkspaceByName("nurc");
  LocalWorkspace.set(ws);
  assertEquals(1, sc.getStyles().size());
}
org.geoserver.securitySecureCatalogImplgetStyles

Popular methods of SecureCatalogImpl

  • unwrap
  • getCoverageByName
  • getCoverageStoreByName
  • getCoverages
  • getDataStoreByName
  • getFeatureTypeByName
  • getFeatureTypes
  • getLayerByName
  • getLayerGroupByName
  • getLayerGroups
  • getLayers
  • getResourceByName
  • getLayers,
  • getResourceByName,
  • getWorkspaceByName,
  • getWorkspaces,
  • list,
  • <init>,
  • buildDefaultResourceAccessManager,
  • buildWrapperPolicy,
  • checkAccess

Popular in Java

  • Creating JSON documents from java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • addToBackStack (FragmentTransaction)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • JButton (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now