congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ApplicationContext.isServerMode
Code IndexAdd Tabnine to your IDE (free)

How to use
isServerMode
method
in
com.b2international.snowowl.core.ApplicationContext

Best Java code snippets using com.b2international.snowowl.core.ApplicationContext.isServerMode (Showing top 2 results out of 315)

origin: com.b2international.snowowl/com.b2international.snowowl.core

/**
 * Returns <code>true</code> if Snow Owl is running on a server environment.
 * 
 * @return
 */
public boolean isServer() {
  return services().isServerMode();
}
origin: com.b2international.snowowl/com.b2international.snowowl.datastore.server

private Collection<Role> collectRoles(final IAuthorizationService authorizationService, final String userId) {
  if (!ApplicationContext.getInstance().isServerMode()) {
    return Sets.newHashSet(SpecialRole.ADMINISTRATOR);
  } else {
    return authorizationService.getRoles(userId);
  }
}
com.b2international.snowowl.coreApplicationContextisServerMode

Javadoc

Returns true if the application for the current application context is running in server mode. Otherwise, returns false.

Popular methods of ApplicationContext

  • getInstance
    Factory method.
  • getServiceForClass
    Returns with the service registered for the class argument key from the shared application context.
  • getService
  • getServiceChecked
    Returns with the service instance associated with the passed in service interface. May throw runtime
  • registerService
  • <init>
  • addServiceListener
  • checkStrictServices
    Checks the availability of the registered services strictly, which means that null implementations
  • dispose
  • exists
    Returns true if a the service given with it interface is registered to the application context with
  • getServiceEntry
  • getServiceInfo
    Initializes the project specific MultiStatus object for generic serviceablility support for the plug
  • getServiceEntry,
  • getServiceInfo

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • Menu (java.awt)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Github Copilot alternatives
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