Codota Logo
GeoServerApplication.get
Code IndexAdd Codota to your IDE (free)

How to use
get
method
in
org.geoserver.web.GeoServerApplication

Best Java code snippets using org.geoserver.web.GeoServerApplication.get (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.geoserver.web/web-security

/**
 * accessors for security manager
*/
public GeoServerSecurityManager getSecurityManager() {
  return GeoServerApplication.get().getSecurityManager();
}
origin: org.geoserver.web/gs-web-core

/** Returns the application singleton. */
protected GeoServerApplication getApplication() {
  return GeoServerApplication.get();
}
/**
origin: org.geoserver.web/gs-web-core

public PublishedInfo getLayer() {
  if (layerGroupId != null) {
    return GeoServerApplication.get().getCatalog().getLayerGroup(layerGroupId);
  } else if (layerId != null) {
    return GeoServerApplication.get().getCatalog().getLayer(layerId);
  } else {
    return null;
  }
}
origin: org.geoserver.web/gs-web-core

  @Override
  protected ServiceInfo load() {
    return GeoServerApplication.get()
        .getGeoServer()
        .getService(wsModel.getObject(), serviceClass);
  }
}
origin: org.geoserver.web/web-core

public void setObject(Object object) {
  GeoServerApplication app = GeoServerApplication.get();
  for (Object filter : app.getRequestCycleSettings().getResponseFilters()) {
    if(filter instanceof GeoServerHTMLValidatorResponseFilter) {
      ((GeoServerHTMLValidatorResponseFilter) filter).enabled = (Boolean) object;
    }
  }
  
}
origin: org.geoserver.web/gs-web-core

@Override
public Object getObject() {
  String nsUri = (String) super.getObject();
  NamespaceInfo namespaceInfo =
      GeoServerApplication.get().getCatalog().getNamespaceByURI(nsUri);
  return namespaceInfo;
}
origin: org.geoserver.web/gs-web-sec-core

  @Override
  protected SecurityManagerConfig load() {
    return GeoServerApplication.get().getSecurityManager().getSecurityConfig();
  }
}
origin: org.geoserver.web/gs-web-core

  @Override
  protected SettingsInfo load() {
    GeoServer gs = GeoServerApplication.get().getGeoServer();
    return gs.getSettings(wsModel.getObject());
  }
}
origin: org.geoserver.web/gs-web-demo

  @Override
  protected Object load() {
    if (group) {
      return new PreviewLayer(GeoServerApplication.get().getCatalog().getLayerGroup(id));
    } else {
      return new PreviewLayer(GeoServerApplication.get().getCatalog().getLayer(id));
    }
  }
}
origin: org.geoserver.web/gs-web-sec-core

protected GeoServerUserGroupService getService() {
  try {
    return GeoServerApplication.get()
        .getSecurityManager()
        .loadUserGroupService(serviceName);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}
origin: org.geoserver.web/gs-web-core

@Override
protected List<WorkspaceInfo> load() {
  Catalog catalog = GeoServerApplication.get().getCatalog();
  List<WorkspaceInfo> workspaces = new ArrayList<WorkspaceInfo>(catalog.getWorkspaces());
  Collections.sort(workspaces, new WorkspaceComparator());
  return workspaces;
}
origin: org.geoserver.web/web-sec-core

MasterPasswordProviderNamesModel() {
  try {
    providerNames = new ArrayList(GeoServerApplication.get().getSecurityManager()
      .listMasterPasswordProviders());
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}
origin: org.geoserver.web/gs-web-core

@Override
protected StyleInfo load() {
  StyleInfo style = GeoServerApplication.get().getCatalog().getStyle(id);
  // Make sure the legend object isn't null
  if (null == style.getLegend()) {
    style.setLegend(GeoServerApplication.get().getCatalog().getFactory().createLegend());
  }
  return style;
}
origin: org.geoserver.web/gs-web-sec-core

@Override
public Component getPageBodyComponent(String id) {
  // do a check that the root password is not set
  GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager();
  if (secMgr.checkAuthenticationForAdminRole()) {
    return new SecurityWarningsPanel(id);
  }
  return null;
}
origin: org.geoserver.web/gs-web-core

@Override
protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
  LOGGER.log(Level.FINE, "Computing bounds from native CRS");
  ResourceInfo resource =
      (ResourceInfo) BasicResourceConfig.this.getDefaultModelObject();
  CatalogBuilder cb = new CatalogBuilder(GeoServerApplication.get().getCatalog());
  ReferencedEnvelope nativeBBox = cb.getBoundsFromCRS(resource);
  if (nativeBBox != null) {
    nativeBoundsPanel.setModelObject(nativeBBox);
  }
  target.add(nativeBoundsPanel);
}
origin: org.geoserver.web/gs-web-sec-core

RoleServiceNamesModel() {
  try {
    this.serviceNames =
        new ArrayList(
            GeoServerApplication.get().getSecurityManager().listRoleServices());
  } catch (IOException e) {
    throw new WicketRuntimeException(e);
  }
}
origin: org.geoserver.web/web-security

@Override
protected Collection<GeoServerRole> load() {
  GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager();
  try {
    return new ArrayList(secMgr.getRolesForAccessControl());
  }
  catch(IOException e) {
    throw new WicketRuntimeException(e);
  }
}
origin: org.geoserver.web/web-security

UserGroupServiceNamesModel() {
  try {
    this.serviceNames = new ArrayList(
      GeoServerApplication.get().getSecurityManager().listUserGroupServices());
  } catch (IOException e) {
    throw new WicketRuntimeException(e);
  }
}
origin: org.geoserver.web/web-sec-core

UserGroupServiceNamesModel() {
  try {
    this.serviceNames = new ArrayList(
      GeoServerApplication.get().getSecurityManager().listUserGroupServices());
  } catch (IOException e) {
    throw new WicketRuntimeException(e);
  }
}
origin: org.geoserver.web/web-sec-core

@Override
public Component getPageBodyComponent(String id) {
  //do a check that the root password is not set
  GeoServerSecurityManager secMgr = GeoServerApplication.get().getSecurityManager();
  if (secMgr.checkAuthenticationForAdminRole()) {
    return new SecurityWarningsPanel(id);
  }
  return null;
}
org.geoserver.webGeoServerApplicationget

Javadoc

Returns the spring application context.

Popular methods of GeoServerApplication

  • getCatalog
  • getGeoServer
    Returns the geoserver configuration instance.
  • getBeanOfType
    Loads a bean from the spring application context of a specific type.If there are multiple beans of t
  • getBeansOfType
    Loads beans from the spring application context of a specific type.
  • getSecurityManager
    Returns the security manager.
  • getApplicationContext
    Returns the spring application context.
  • getBean
    Loads a bean from the spring application context with a specific name.
  • getResourceLoader
    Returns the geoserver resource loader.
  • servletRequest
    Convenience method to get the underlying servlet request backing the current wicket request.
  • getDebugSettings
  • clearWicketCaches
    Clears all the wicket caches so that resources and localization files will be re-read
  • getApplicationSettings
  • clearWicketCaches,
  • getApplicationSettings,
  • getRequestCycleSettings,
  • getResourceSettings,
  • getSecuritySettings,
  • getConfigurationType,
  • getMarkupSettings,
  • getRequestCycleListeners,
  • getRootRequestMapper

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • getContentResolver (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JPanel (javax.swing)
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