Tabnine Logo
DataAccessRule.compareCatalogItems
Code IndexAdd Tabnine to your IDE (free)

How to use
compareCatalogItems
method
in
org.geoserver.security.impl.DataAccessRule

Best Java code snippets using org.geoserver.security.impl.DataAccessRule.compareCatalogItems (Showing top 1 results out of 315)

origin: geoserver/geoserver

/**
 * Comparison implemented so that generic rules get first, specific one are compared by name,
 * and if anything else is equal, read comes before write
 */
public int compareTo(DataAccessRule other) {
  int compareRoot = compareCatalogItems(root, other.root);
  if (compareRoot != 0) return compareRoot;
  int compareLayer = compareCatalogItems(layer, other.layer);
  if (compareLayer != 0) return compareLayer;
  if (accessMode.equals(other.accessMode)) return 0;
  else return accessMode.equals(AccessMode.READ) ? -1 : 1;
}
org.geoserver.security.implDataAccessRulecompareCatalogItems

Javadoc

Generic string comparison that considers the use of #ANY

Popular methods of DataAccessRule

  • <init>
  • getRoles
  • getAccessMode
  • getKey
  • getLayer
  • setAccessMode
  • setLayer
  • getRoot
  • isGlobalGroupRule
  • setRoot
  • compareTo
  • equals
  • compareTo,
  • equals,
  • getValue,
  • getWorkspace,
  • setWorkspace,
  • hashCode,
  • setGlobalGroupRule

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now