use of org.akaza.openclinica.bean.admin.AuditBean in project OpenClinica by OpenClinica.
the class AuditDAO method findSubjectAuditEvents.
/*
* Find audit log events type for a subject
*
*/
public Collection findSubjectAuditEvents(int subjectId) {
this.setTypesExpected();
HashMap variables = new HashMap();
variables.put(new Integer(1), new Integer(subjectId));
String sql = digester.getQuery("findSubjectAuditEvents");
ArrayList alist = this.select(sql, variables);
ArrayList al = new ArrayList();
Iterator it = alist.iterator();
while (it.hasNext()) {
AuditBean eb = (AuditBean) this.getEntityFromHashMap((HashMap) it.next());
al.add(eb);
}
return al;
}
use of org.akaza.openclinica.bean.admin.AuditBean in project OpenClinica by OpenClinica.
the class AuditDAO method findAllEventCRFAuditEvents.
public Collection findAllEventCRFAuditEvents(int studyEventId) {
this.setTypesExpectedWithItemDataType();
HashMap variables = new HashMap();
variables.put(new Integer(1), new Integer(studyEventId));
String sql = digester.getQuery("findAllEventCRFAuditEvents");
ArrayList alist = this.select(sql, variables);
ArrayList al = new ArrayList();
Iterator it = alist.iterator();
while (it.hasNext()) {
AuditBean eb = (AuditBean) this.getEntityFromHashMapWithItemDataTypeUpdated((HashMap) it.next());
al.add(eb);
}
return al;
}
use of org.akaza.openclinica.bean.admin.AuditBean in project OpenClinica by OpenClinica.
the class AuditDAO method findEventCRFAuditEvents.
/*
* Find audit log events type for an event CRF
*
*/
public Collection findEventCRFAuditEvents(int eventCRFId) {
this.setTypesExpected();
HashMap variables = new HashMap();
variables.put(new Integer(1), new Integer(eventCRFId));
String sql = digester.getQuery("findEventCRFAuditEvents");
ArrayList alist = this.select(sql, variables);
ArrayList al = new ArrayList();
Iterator it = alist.iterator();
while (it.hasNext()) {
AuditBean eb = (AuditBean) this.getEntityFromHashMap((HashMap) it.next());
al.add(eb);
}
return al;
}
use of org.akaza.openclinica.bean.admin.AuditBean in project OpenClinica by OpenClinica.
the class AuditDAO method findEventCRFAudit.
/*
* Find audit log events type for an EventCrf
*
*/
public Collection findEventCRFAudit(int eventCRFId) {
this.setTypesExpectedWithItemDataType();
HashMap variables = new HashMap();
variables.put(new Integer(1), new Integer(eventCRFId));
String sql = digester.getQuery("findEventCrfAuditLog");
ArrayList alist = this.select(sql, variables);
ArrayList al = new ArrayList();
Iterator it = alist.iterator();
while (it.hasNext()) {
AuditBean eb = (AuditBean) this.getEntityFromHashMap((HashMap) it.next());
al.add(eb);
}
return al;
}
use of org.akaza.openclinica.bean.admin.AuditBean in project OpenClinica by OpenClinica.
the class AuditDAO method findAllEventCRFAuditEventsWithItemDataType.
public Collection findAllEventCRFAuditEventsWithItemDataType(int studyEventId) {
this.setTypesExpectedWithItemDataType();
HashMap variables = new HashMap();
variables.put(new Integer(1), new Integer(studyEventId));
String sql = digester.getQuery("findAllEventCRFAuditEventsWithItemDataType");
ArrayList alist = this.select(sql, variables);
ArrayList al = new ArrayList();
Iterator it = alist.iterator();
while (it.hasNext()) {
AuditBean eb = (AuditBean) this.getEntityFromHashMapWithItemDataTypeUpdated((HashMap) it.next());
al.add(eb);
}
return al;
}
Aggregations