protected static void appendAuditTrail(DigitalObject obj, PrintWriter writer) throws ObjectIntegrityException { appendOpenElement(writer, AUDIT.AUDIT_TRAIL, true); for (AuditRecord audit : obj.getAuditRecords()) { DOTranslationUtility.validateAudit(audit); appendOpenElement(writer, AUDIT.RECORD, AUDIT.ID, audit.id); appendFullElement(writer, AUDIT.PROCESS, AUDIT.TYPE, audit.processType); appendFullElement(writer, AUDIT.ACTION, audit.action); appendFullElement(writer, AUDIT.COMPONENT_ID, audit.componentID); appendFullElement(writer, AUDIT.RESPONSIBILITY, audit.responsibility); appendFullElement(writer, AUDIT.DATE, DateUtility .convertDateToString(audit.date)); appendFullElement(writer, AUDIT.JUSTIFICATION, audit.justification); appendCloseElement(writer, AUDIT.RECORD); } appendCloseElement(writer, AUDIT.AUDIT_TRAIL); }
protected static void appendAuditTrail(DigitalObject obj, PrintWriter writer) throws ObjectIntegrityException { appendOpenElement(writer, AUDIT.AUDIT_TRAIL, true); for (AuditRecord audit : obj.getAuditRecords()) { DOTranslationUtility.validateAudit(audit); appendOpenElement(writer, AUDIT.RECORD, AUDIT.ID, audit.id); appendFullElement(writer, AUDIT.PROCESS, AUDIT.TYPE, audit.processType); appendFullElement(writer, AUDIT.ACTION, audit.action); appendFullElement(writer, AUDIT.COMPONENT_ID, audit.componentID); appendFullElement(writer, AUDIT.RESPONSIBILITY, audit.responsibility); appendFullElement(writer, AUDIT.DATE, DateUtility .convertDateToString(audit.date)); appendFullElement(writer, AUDIT.JUSTIFICATION, audit.justification); appendCloseElement(writer, AUDIT.RECORD); } appendCloseElement(writer, AUDIT.AUDIT_TRAIL); }