Package com.opengamma.security.auditlog

Examples of com.opengamma.security.auditlog.HibernateAuditLogger.log()


      logger.setSessionFactory(getDbConnector().getHibernateSessionFactory());
     
      Collection<AuditLogEntry> logEntries = logger.findAll();
      assertEquals(0, logEntries.size());
     
      logger.log("jake", "/Portfolio/XYZ123", "View", true);
      logger.log("jake", "/Portfolio/XYZ345", "Modify", "User has no Modify permission on this portfolio", false);
     
      logger.flushCache();
      logger.flushCache();
     
View Full Code Here


     
      Collection<AuditLogEntry> logEntries = logger.findAll();
      assertEquals(0, logEntries.size());
     
      logger.log("jake", "/Portfolio/XYZ123", "View", true);
      logger.log("jake", "/Portfolio/XYZ345", "Modify", "User has no Modify permission on this portfolio", false);
     
      logger.flushCache();
      logger.flushCache();
     
      logEntries = logger.findAll();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.