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

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

Best Java code snippets using org.jboss.as.controller.audit.AuditLogger.log (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.auditAuditLoggerlog

Popular methods of AuditLogger

    Popular in Java

    • Making http post requests using okhttp
    • setRequestProperty (URLConnection)
    • requestLocationUpdates (LocationManager)
    • getSharedPreferences (Context)
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • URLEncoder (java.net)
      This class is used to encode a string using the format required by application/x-www-form-urlencoded
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • IOUtils (org.apache.commons.io)
      General IO stream manipulation utilities. This class provides static utility methods for input/outpu
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • Best plugins for Eclipse
    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