Package org.mycompany.audit.model

Examples of org.mycompany.audit.model.AuditMessage


    }

    Auditable annotation = method.getAnnotation(Auditable.class);
    if (annotation != null)
    {
      AuditMessage audit = new AuditMessage();
      String actionCode = annotation.actionCode();
      String auditMessage = annotation.auditMessage();
      Person principal = null;// determinePrincipal(annotation);
      auditMessage = (exception == null ? ""
          : "The following exception occurred: " + exception.toString());

      audit.setId(UUID.randomUUID().toString());
      audit.setActionCode(actionCode);
      audit.setMessage(auditMessage);
      audit.setSuccessIndicator(exception == null);
      audit.setActionBy(principal);
      audit.setActionDate(new Date());
      logger.info("audit message=> " + audit);

      logger.debug("persisting audit...");
      if (auditRepository == null)
      {
View Full Code Here

TOP

Related Classes of org.mycompany.audit.model.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.