Package com.opengamma.security.auditlog

Examples of com.opengamma.security.auditlog.AuditLogEntry


    ArgumentChecker.notNull(user, "User ID");
    ArgumentChecker.notNull(user, "Originating system name");
    ArgumentChecker.notNull(object, "Object ID");
    ArgumentChecker.notNull(operation, "Operation name");
   
    AuditLogEntry auditLogEntry = new AuditLogEntry(user, originatingSystem, object, operation, description, success, new Date());
    boolean flushCache = false;
    synchronized (this) {
      _auditLogCache.add(auditLogEntry);
      if (_auditLogCache.size() >= _batchSize) {
        flushCache = true;
View Full Code Here


    Session session = getSession();
    Transaction tx = null;
    try {
      tx = session.beginTransaction();
      for (int i = 0; i < auditLogCache.size(); i++) {
        AuditLogEntry auditLogEntry = auditLogCache.get(i);
        session.save(auditLogEntry);
       
        if (i != 0 && i % _batchSize == 0) {
          session.flush();
          session.clear();
View Full Code Here

TOP

Related Classes of com.opengamma.security.auditlog.AuditLogEntry

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.