Codota Logo
WatchableGroovyScriptResource.execute
Code IndexAdd Codota to your IDE (free)

How to use
execute
method
in
org.apereo.cas.util.scripting.WatchableGroovyScriptResource

Best Java code snippets using org.apereo.cas.util.scripting.WatchableGroovyScriptResource.execute (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.apereo.cas/cas-server-support-consent-core

private void writeAccountToGroovyResource(final ConsentDecision decision) {
  watchableScript.execute("write", Boolean.class, decision, LOGGER);
}
origin: org.apereo.cas/cas-server-support-consent-core

@Override
public boolean deleteConsentDecision(final long decisionId, final String principal) {
  super.deleteConsentDecision(decisionId, principal);
  return watchableScript.execute("delete", Boolean.class, decisionId, principal, LOGGER);
}
origin: org.apereo.cas/cas-server-support-consent-core

  private Set<ConsentDecision> readDecisionsFromGroovyResource() {
    return watchableScript.execute("read", Set.class, getConsentDecisions(), LOGGER);
  }
}
origin: org.apereo.cas/cas-server-core-authentication-mfa-api

  @Override
  public boolean shouldMultifactorAuthenticationProviderExecute(final Authentication authentication,
                                 final RegisteredService registeredService,
                                 final MultifactorAuthenticationProvider provider,
                                 final HttpServletRequest request) {
    try {
      val principal = authentication.getPrincipal();
      LOGGER.debug("Evaluating multifactor authentication bypass properties for principal [{}], "
          + "service [{}] and provider [{}] via Groovy script [{}]",
        principal.getId(), registeredService, provider, watchableScript.getResource());
      val args = new Object[]{authentication, principal, registeredService, provider, LOGGER, request};
      return watchableScript.execute(args, Boolean.class);
    } catch (final Exception e) {
      LOGGER.error(e.getMessage(), e);
      return true;
    }
  }
}
origin: org.apereo.cas/cas-server-core-authentication-mfa-api

val provider = this.watchableScript.execute(args, String.class);
LOGGER.debug("Groovy script run for [{}] returned the provider id [{}]", registeredService, provider);
if (StringUtils.isBlank(provider)) {
origin: org.apereo.cas/cas-server-support-interrupt-core

  @Override
  public InterruptResponse inquireInternal(final Authentication authentication,
                       final RegisteredService registeredService,
                       final Service service, final Credential credential,
                       final RequestContext requestContext) {
    if (ResourceUtils.doesResourceExist(watchableScript.getResource())) {
      val principal = authentication.getPrincipal();
      val attributes = new HashMap<String, Object>(principal.getAttributes());
      attributes.putAll(authentication.getAttributes());
      final Object[] args = {principal.getId(), attributes, service != null ? service.getId() : null, LOGGER};
      return watchableScript.execute(args, InterruptResponse.class);
    }
    return InterruptResponse.none();
  }
}
org.apereo.cas.util.scriptingWatchableGroovyScriptResourceexecute

Javadoc

Execute t.

Popular methods of WatchableGroovyScriptResource

  • <init>
  • getResource
  • compileScriptResource

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JList (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
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