Package com.isigroup.cap.base.annotation

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


    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

Related Classes of com.isigroup.cap.base.annotation.CapAuditLogAction

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.