Examples of addAuditTrail()


Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

    }

    public static void addAuditTrail(String clazz, String method, String message) {
        try {
            WorkflowHelper workflowMapper = (WorkflowHelper) appContext.getBean("workflowHelper");
            workflowMapper.addAuditTrail(clazz, method, message);
        } catch (Exception e) {
            LogUtil.error(WorkflowUtil.class.getName(), e, "Error add audit trail");
        }
    }
   
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

                // add success to audit trail
                boolean authenticated = result.isAuthenticated();
                LogUtil.info(getClass().getName(), "Authentication for user " + username + ": " + authenticated);
                WorkflowHelper workflowHelper = (WorkflowHelper) AppUtil.getApplicationContext().getBean("workflowHelper");
                workflowHelper.addAuditTrail("DirectoryJsonController", "authenticate", "Authentication for user " + username + ": " + authenticated);               

            } catch (AuthenticationException e) {
                // add failure to audit trail
                if (username != null) {
                    LogUtil.info(getClass().getName(), "Authentication for user " + username + ": false");
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

            } catch (AuthenticationException e) {
                // add failure to audit trail
                if (username != null) {
                    LogUtil.info(getClass().getName(), "Authentication for user " + username + ": false");
                    WorkflowHelper workflowHelper = (WorkflowHelper) AppUtil.getApplicationContext().getBean("workflowHelper");
                    workflowHelper.addAuditTrail("DirectoryJsonController", "authenticate", "Authentication for user " + username + ": false");
                }
            }
        }
       
        if (WorkflowUtil.isCurrentUserAnonymous()) {
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

                    }

                    // CUSTOM: add failure to audit trail
                    LogUtil.info(getClass().getName(), "Authentication for user " + username + ": false");
                    WorkflowHelper workflowHelper = (WorkflowHelper) AppUtil.getApplicationContext().getBean("workflowHelper");
                    workflowHelper.addAuditTrail("WorkflowBasicProcessingFilter", "authenticate", "Authentication for user " + username + ": false")
                   
                    return;
                }

                // Authentication success
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

                onSuccessfulAuthentication(request, response, authResult);
               
                // CUSTOM: add success to audit trail
                LogUtil.info(getClass().getName(), "Authentication for user " + username + ": true");
                WorkflowHelper workflowHelper = (WorkflowHelper) AppUtil.getApplicationContext().getBean("workflowHelper");
                workflowHelper.addAuditTrail("WorkflowBasicProcessingFilter", "authenticate", "Authentication for user " + username + ": true");               
            }
        }

        chain.doFilter(request, response);
    }
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

                            super.setDetails(request, (UsernamePasswordAuthenticationToken) auth);
                        } else {
                            LogUtil.info(getClass().getName(), "Authentication for user " + loginAs + ": " + false);
           
                            WorkflowHelper workflowHelper = (WorkflowHelper) AppUtil.getApplicationContext().getBean("workflowHelper");
                            workflowHelper.addAuditTrail("WorkflowHttpAuthProcessingFilter", "authenticate", "Authentication for user " + loginAs + ": " + false);
                       
                            throw new BadCredentialsException("");
                        }
                    }
                }
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

                        }
                    } catch (BadCredentialsException be) {
                        LogUtil.info(getClass().getName(), "Authentication for user " + ((loginAs == null) ? username : loginAs) + ": " + false);
           
                        WorkflowHelper workflowHelper = (WorkflowHelper) AppUtil.getApplicationContext().getBean("workflowHelper");
                        workflowHelper.addAuditTrail("WorkflowHttpAuthProcessingFilter", "authenticate", "Authentication for user " + ((loginAs == null) ? username : loginAs) + ": " + false);
           
                        throw be;
                    }
                }
            }
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

            }

            if (!"/WEB-INF/jsp/unauthorized.jsp".equals(request.getServletPath())) {
                LogUtil.info(getClass().getName(), "Authentication for user " + ((loginAs == null) ? username : loginAs) + ": " + true);
                WorkflowHelper workflowHelper = (WorkflowHelper) AppUtil.getApplicationContext().getBean("workflowHelper");
                workflowHelper.addAuditTrail("WorkflowHttpAuthProcessingFilter", "authenticate", "Authentication for user " + ((loginAs == null) ? username : loginAs) + ": " + true);
            }
        } else {
            if (us != null && us.getAuthenticateAllApi()) {
                throw new BadCredentialsException("");
            }
View Full Code Here

Examples of org.joget.workflow.model.dao.WorkflowHelper.addAuditTrail()

            }else{
                WorkflowUtil.addAuditTrail(this.getClass().getName(), "executeToolCompleted", workflowAssignment.getActivityId());
            }

        } catch (Throwable ex) {
            workflowMapper.addAuditTrail(this.getClass().getName(), "executeActivity", "Could not execute tool [processId=" + act.container(shandle).manager(shandle).name(shandle) + ", version=" + act.container(shandle).manager(shandle).version(shandle) + ", activityId=" + act.activity_definition_id(shandle) + "]");
            LogUtil.error(getClass().getName(), ex, "Could not execute tool [processId=" + act.container(shandle).manager(shandle).name(shandle) + ", version=" + act.container(shandle).manager(shandle).version(shandle) + ", activityId=" + act.activity_definition_id(shandle) + "]");
        }
    }
}
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.