Examples of CapAuditLogAction


Examples of com.isigroup.cap.base.annotation.CapAuditLogAction

    Method method = CapCommonUtil.findMethod(pjp.getTarget().getClass(),
        params.get(CapConstants.P_FORM_ACTION), (Class<?>) null);
    String logAuditInfo = "none";
    if (method != null) {
      String action = null, function = null;
      CapAuditLogAction auditLogAction = method
          .getAnnotation(CapAuditLogAction.class);

      action = (auditLogAction != null && auditLogAction.actionType() != null) ? auditLogAction
          .actionType().toString() : null;
      function = (auditLogAction != null && auditLogAction.functionCode() != null) ? auditLogAction
          .functionCode().getCode() : null;
      if (action != null && function != null) {
        logAuditInfo = StrUtils.concat(auditLogAction.actionType()
            .name(), CapConstants.SPACE, auditLogAction
            .functionCode().name(), CapConstants.SPACE,
            auditLogAction.functionCode().getUrlPath());
      }
    }
    if (LOGGER.isTraceEnabled()) {
      LOGGER.trace("{} ENTRY: {} Start Time: {} Audit Information: {}",
          new Object[] { TITLE, targetName, new Date(start),
View Full Code Here

Examples of com.isigroup.cap.base.annotation.CapAuditLogAction

    Method method = CapCommonUtil.findMethod(clazz,
        params.get(CapConstants.P_FORM_ACTION), (Class<?>) null);
    String action = null, function = null;
    boolean haveToAudit = false;
    if (method != null) {
      CapAuditLogAction auditLogAction = method
          .getAnnotation(CapAuditLogAction.class);

      action = (auditLogAction != null && auditLogAction.actionType() != null) ? auditLogAction
          .actionType().toString() : null;
      function = (auditLogAction != null && auditLogAction.functionCode() != null) ? auditLogAction
          .functionCode().getCode() : null;
      if (action != null && function != null) {
        haveToAudit = true;
      }
    }
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.