Package de.scoopgmbh.copper.monitoring.core.model

Examples of de.scoopgmbh.copper.monitoring.core.model.AuditTrailInfo


  @Override
  public List<AuditTrailInfo> getAuditTrails(String workflowClass, String workflowInstanceId, String correlationId, Integer level, long resultRowLimit)
      throws RemoteException {
    ArrayList<AuditTrailInfo> result = new ArrayList<AuditTrailInfo>();
    AuditTrailInfo auditTrailInfo = new AuditTrailInfo();
    auditTrailInfo.setId(1);
    auditTrailInfo.setLoglevel(1);
    result.add(auditTrailInfo);
    auditTrailInfo = new AuditTrailInfo();
    auditTrailInfo.setId(2);
    auditTrailInfo.setLoglevel(2);
    result.add(auditTrailInfo);
    auditTrailInfo = new AuditTrailInfo();
    auditTrailInfo.setId(3);
    auditTrailInfo.setLoglevel(3);
    auditTrailInfo.setOccurrence(new Date());
    auditTrailInfo.setMessageType("json");
    result.add(auditTrailInfo);
    return result;
  }
View Full Code Here


     
      ResultSet resultSet = selectStmt.executeQuery();
     
      ArrayList<AuditTrailInfo> logs = new ArrayList<AuditTrailInfo>();
      while (resultSet.next()) {
        AuditTrailInfo auditTrailInfo = new AuditTrailInfo();
        auditTrailInfo.setId(resultSet.getLong(1));
        auditTrailInfo.setOccurrence(resultSet.getTimestamp(2)!=null?new Date(resultSet.getTimestamp(2).getTime()):null);
        auditTrailInfo.setConversationId(resultSet.getString(3));
        auditTrailInfo.setLoglevel(resultSet.getInt(4));
        auditTrailInfo.setContext(resultSet.getString(5));
        auditTrailInfo.setWorkflowInstanceId(resultSet.getString(6));
        auditTrailInfo.setCorrelationId(resultSet.getString(7));
        auditTrailInfo.setTransactionId(resultSet.getString(8));
        auditTrailInfo.setMessageType(resultSet.getString(9));
        logs.add(auditTrailInfo);
      }
      resultSet.close();

      return logs;
View Full Code Here

TOP

Related Classes of de.scoopgmbh.copper.monitoring.core.model.AuditTrailInfo

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.