Package org.teiid.logging

Examples of org.teiid.logging.AuditMessage


  }

  private void logRequest(Set<String> resources, Context context) {
    if (LogManager.isMessageToBeRecorded(LogConstants.CTX_AUDITLOGGING, MessageLevel.DETAIL)) {
          // Audit - request
        AuditMessage msg = new AuditMessage(context.name(), "getInaccessibleResources-request", this.userName, resources.toArray(new String[resources.size()])); //$NON-NLS-1$
        LogManager.logDetail(LogConstants.CTX_AUDITLOGGING, msg);
        }
  }
View Full Code Here


  private void logResult(Set<String> resources, Context context,
      boolean granted) {
    if (LogManager.isMessageToBeRecorded(LogConstants.CTX_AUDITLOGGING, MessageLevel.DETAIL)) {
          if (granted) {
            AuditMessage msg = new AuditMessage(context.name(), "getInaccessibleResources-granted all", this.userName, resources.toArray(new String[resources.size()])); //$NON-NLS-1$
            LogManager.logDetail(LogConstants.CTX_AUDITLOGGING, msg);
          } else {
            AuditMessage msg = new AuditMessage(context.name(), "getInaccessibleResources-denied", this.userName, resources.toArray(new String[resources.size()])); //$NON-NLS-1$
            LogManager.logDetail(LogConstants.CTX_AUDITLOGGING, msg);
          }
    }
  }   
View Full Code Here

TOP

Related Classes of org.teiid.logging.AuditMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.