Tabnine Logo
GlobalConfig.getRestRequiresSecurityToken
Code IndexAdd Tabnine to your IDE (free)

How to use
getRestRequiresSecurityToken
method
in
com.haulmont.cuba.core.global.GlobalConfig

Best Java code snippets using com.haulmont.cuba.core.global.GlobalConfig.getRestRequiresSecurityToken (Showing top 4 results out of 315)

origin: com.haulmont.cuba/cuba-core

protected boolean useSecurityToken() {
  return globalConfig.getRestRequiresSecurityToken();
}
origin: com.haulmont.cuba/cuba-global

protected Entity readEmbeddedEntity(JsonObject jsonObject, MetaProperty metaProperty) {
  MetaClass metaClass = metaProperty.getRange().asClass();
  Entity entity = metadata.create(metaClass);
  clearFields(entity);
  readFields(jsonObject, entity);
  if (globalConfig.getRestRequiresSecurityToken() && entity instanceof EmbeddableEntity) {
    JsonPrimitive securityTokenJonPrimitive = jsonObject.getAsJsonPrimitive("__securityToken");
    if (securityTokenJonPrimitive != null) {
      byte[] securityToken = Base64.getDecoder().decode(securityTokenJonPrimitive.getAsString());
      setSecurityToken(getOrCreateSecurityState(entity), securityToken);
    }
  }
  return entity;
}
origin: com.haulmont.cuba/cuba-global

if (globalConfig.getRestRequiresSecurityToken()) {
  if (entity instanceof BaseGenericIdEntity || entity instanceof EmbeddableEntity) {
    SecurityState securityState = getSecurityState(entity);
origin: com.haulmont.cuba/cuba-global

if (globalConfig.getRestRequiresSecurityToken() && entity instanceof BaseGenericIdEntity) {
  JsonPrimitive securityTokenJonPrimitive = jsonObject.getAsJsonPrimitive("__securityToken");
  if (securityTokenJonPrimitive != null) {
com.haulmont.cuba.core.globalGlobalConfiggetRestRequiresSecurityToken

Popular methods of GlobalConfig

  • getAvailableLocales
    Supported locales. List of locales is shown on user login.
  • getConfDir
  • getWebHostName
  • getWebPort
  • getWebAppUrl
  • getWebContextName
  • getLocaleSelectVisible
    Show locale select in LoginWindow.
  • getTempDir
  • getAllowQueryFromSelected
  • getDataDir
  • getHealthCheckResponse
  • getNumberIdCacheSize
  • getHealthCheckResponse,
  • getNumberIdCacheSize,
  • getTestMode,
  • getUserSessionLogEnabled,
  • getAnonymousSessionId,
  • getAppFolderEditWindowClassName,
  • getCubaClasspathDirectories,
  • getDeepCopyNonPersistentReferences,
  • getDisableEscapingLikeForDataStores

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JLabel (javax.swing)
  • Top plugins for Android Studio
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