congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
AuditLogger
Code IndexAdd Tabnine to your IDE (free)

How to use
AuditLogger
in
org.jboss.as.controller.audit

Best Java code snippets using org.jboss.as.controller.audit.AuditLogger (Showing top 3 results out of 315)

origin: org.wildfly.core/wildfly-controller

/**
 * Log an audit record of this operation.
 */
void logAuditRecord() {
  trackConfigurationChange();
  if (!auditLogged) {
    try {
      AccessAuditContext accessContext = SecurityActions.currentAccessAuditContext();
      Caller caller = getCaller();
      auditLogger.log(
          isReadOnly(),
          resultAction,
          caller == null ? null : caller.getName(),
          accessContext == null ? null : accessContext.getDomainUuid(),
          accessContext == null ? null : accessContext.getAccessMechanism(),
          accessContext == null ? null : accessContext.getRemoteAddress(),
          getModel(),
          controllerOperations);
      auditLogged = true;
    } catch (Exception e) {
      ControllerLogger.MGMT_OP_LOGGER.failedToUpdateAuditLog(e);
    }
  }
}
origin: org.wildfly/wildfly-controller

/**
 * Log an audit record of this operation.
 */
void logAuditRecord() {
  if (!auditLogged) {
    try {
      AccessAuditContext accessContext = SecurityActions.currentAccessAuditContext();
      Caller caller = getCaller();
      Subject subject = SecurityActions.getSubject(caller);
      auditLogger.log(
          isReadOnly(),
          resultAction,
          caller == null ? null : caller.getName(),
          accessContext == null ? null : accessContext.getDomainUuid(),
          accessContext == null ? null : accessContext.getAccessMechanism(),
          getSubjectInetAddress(subject),
          getModel(),
          controllerOperations);
      auditLogged = true;
    } catch (Exception e) {
      ControllerLogger.MGMT_OP_LOGGER.failedToUpdateAuditLog(e);
    }
  }
}
origin: wildfly/wildfly-core

/**
 * Log an audit record of this operation.
 */
void logAuditRecord() {
  trackConfigurationChange();
  if (!auditLogged) {
    try {
      AccessAuditContext accessContext = SecurityActions.currentAccessAuditContext();
      Caller caller = getCaller();
      auditLogger.log(
          isReadOnly(),
          resultAction,
          caller == null ? null : caller.getName(),
          accessContext == null ? null : accessContext.getDomainUuid(),
          accessContext == null ? null : accessContext.getAccessMechanism(),
          accessContext == null ? null : accessContext.getRemoteAddress(),
          getModel(),
          controllerOperations);
      auditLogged = true;
    } catch (Exception e) {
      ControllerLogger.MGMT_OP_LOGGER.failedToUpdateAuditLog(e);
    }
  }
}
org.jboss.as.controller.auditAuditLogger

Most used methods

  • log

Popular in Java

  • Creating JSON documents from java classes using gson
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • getContentResolver (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Table (org.hibernate.mapping)
    A relational table
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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