Package com.iisigroup.cap.base.model

Examples of com.iisigroup.cap.base.model.AuditLog


    }

    try {

      Class clazz = joinPoint.getTarget().getClass();
      AuditLog auditLog = loggedFunction(TITLE, targetName, clazz, params);
      if (auditLog != null) {
        // 暫時不知道要放什麼值
        auditLog.setRemark(CapConstants.EMPTY_STRING);
        commonSrv.save(auditLog);
      }

    } catch (Exception ex) {
      LOGGER.error(StrUtils.concat(TITLE, "DO_LOG_EXCEPTION_OCCURED!!"),
View Full Code Here


    }

    try {

      Class clazz = joinPoint.getTarget().getClass();
      AuditLog auditLog = loggedFunction(TITLE, targetName, clazz, params);
      if (auditLog != null) {
        auditLog.setRemark(trimByLen(
            CapString.trimNull(new StringBuffer()
                .append("Exception: ")
                .append(exception.getMessage()).toString()), 50));
        commonSrv.save(auditLog);
      }
View Full Code Here

    if (CapString.isEmpty(ipAddress)){
      ServletRequest req =  params.getServletRequest();
      ipAddress = req.getRemoteAddr();
    }

    AuditLog auditLog = null;
    if (haveToAudit) {
      auditLog = new AuditLog();
      auditLog.setId(UUIDGenerator.getUUID());
      auditLog.setUserId(uid);
      auditLog.setIpAddress(trimByLen(CapString.trimNull(ipAddress), 50));
      auditLog.setFunctionId(trimByLen(function, 20));
      auditLog.setAction(trimByLen(action.toLowerCase(), 20));
      // auditLog.setRemark(trimByLen(CapString.trimNull(params.toString()),
      // 50));

      long tstart = NumberUtils.toLong(CapString.trimNull(params
          .get(CapConstants.C_AUDITLOG_START_TS)));
      if (tstart > 0) {
        auditLog.setExecuteDate(new Timestamp(tstart));
        if (LOGGER.isTraceEnabled()) {
          LOGGER.trace("{} AuditLog={}", TITLE, auditLog);
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.iisigroup.cap.base.model.AuditLog

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.