private Severity severityOf(AuditMessage msg) { String eventOutcomeIndicator = msg.getEventIdentification() .getEventOutcomeIndicator(); if (eventOutcomeIndicator.length() == 1) switch(eventOutcomeIndicator.charAt(0)) { case '0': return successSeverity; case '4': return minorFailureSeverity; case '8': return seriousFailureSeverity; } else if (eventOutcomeIndicator.equals("12")) return majorFailureSeverity; throw new IllegalArgumentException( "Illegal eventOutcomeIndicator: " + eventOutcomeIndicator); }
private Severity severityOf(AuditMessage msg) { String eventOutcomeIndicator = msg.getEventIdentification() .getEventOutcomeIndicator(); if (eventOutcomeIndicator.length() == 1) switch(eventOutcomeIndicator.charAt(0)) { case '0': return successSeverity; case '4': return minorFailureSeverity; case '8': return seriousFailureSeverity; } else if (eventOutcomeIndicator.equals("12")) return majorFailureSeverity; throw new IllegalArgumentException( "Illegal eventOutcomeIndicator: " + eventOutcomeIndicator); }
private boolean match(EventIdentification eventIdentification) { if (!matchEventID(eventIdentification.getEventID())) return false; if (!matchEventTypeCodes(eventIdentification.getEventTypeCode())) return false; if (!isEmptyOrContains(eventActionCodes, eventIdentification.getEventActionCode())) return false; if (!isEmptyOrContains(eventOutcomeIndicators, eventIdentification.getEventOutcomeIndicator())) return false; return true; }
private boolean match(EventIdentification eventIdentification) { if (!matchEventID(eventIdentification.getEventID())) return false; if (!matchEventTypeCodes(eventIdentification.getEventTypeCode())) return false; if (!isEmptyOrContains(eventActionCodes, eventIdentification.getEventActionCode())) return false; if (!isEmptyOrContains(eventOutcomeIndicators, eventIdentification.getEventOutcomeIndicator())) return false; return true; }