Search in sources :

Example 6 with AuditBean

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;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) AuditBean(org.akaza.openclinica.bean.admin.AuditBean)

Example 7 with AuditBean

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;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) AuditBean(org.akaza.openclinica.bean.admin.AuditBean)

Example 8 with AuditBean

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;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) AuditBean(org.akaza.openclinica.bean.admin.AuditBean)

Example 9 with AuditBean

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;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) AuditBean(org.akaza.openclinica.bean.admin.AuditBean)

Example 10 with AuditBean

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;
}
Also used : HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) AuditBean(org.akaza.openclinica.bean.admin.AuditBean)

Aggregations

AuditBean (org.akaza.openclinica.bean.admin.AuditBean)19 ArrayList (java.util.ArrayList)16 Iterator (java.util.Iterator)15 HashMap (java.util.HashMap)13 AuditDAO (org.akaza.openclinica.dao.admin.AuditDAO)3 Collection (java.util.Collection)2 List (java.util.List)2 StudyBean (org.akaza.openclinica.bean.managestudy.StudyBean)2 StudyEventBean (org.akaza.openclinica.bean.managestudy.StudyEventBean)2 StudySubjectBean (org.akaza.openclinica.bean.managestudy.StudySubjectBean)2 EventCRFBean (org.akaza.openclinica.bean.submit.EventCRFBean)2 ItemDataBean (org.akaza.openclinica.bean.submit.ItemDataBean)2 SubjectBean (org.akaza.openclinica.bean.submit.SubjectBean)2 FormProcessor (org.akaza.openclinica.control.form.FormProcessor)2 CRFDAO (org.akaza.openclinica.dao.admin.CRFDAO)2 EventDefinitionCRFDAO (org.akaza.openclinica.dao.managestudy.EventDefinitionCRFDAO)2 StudyDAO (org.akaza.openclinica.dao.managestudy.StudyDAO)2 StudyEventDAO (org.akaza.openclinica.dao.managestudy.StudyEventDAO)2 StudyEventDefinitionDAO (org.akaza.openclinica.dao.managestudy.StudyEventDefinitionDAO)2 StudySubjectDAO (org.akaza.openclinica.dao.managestudy.StudySubjectDAO)2