01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.security.audit;
09:
10: //base classes
11: import java.math.BigDecimal;
12: import java.util.ArrayList;
13:
14: //project specific classes
15:
16: //other classes
17:
18: public class SecurityAuditSet {
19:
20: private ArrayList ids = null;
21: private ArrayList audits = null;
22:
23: private SecurityAuditSet() {
24: this .ids = new ArrayList();
25: this .audits = new ArrayList();
26: }
27:
28: public final static SecurityAuditSet newInstance() {
29: return new SecurityAuditSet();
30: }
31:
32: public void addSecurityAudit(BigDecimal inId, SecurityAudit inSa) {
33: this .ids.add(inId);
34: this .audits.add(inSa);
35: }
36:
37: public int getSecurityAuditCount() {
38: return this .audits.size();
39: }
40:
41: public SecurityAudit getSecurityAudit(int inIndex) {
42:
43: SecurityAudit outValue = null;
44:
45: outValue = (SecurityAudit) this .audits.get(inIndex);
46:
47: return outValue;
48: }
49:
50: public BigDecimal getId(int inIndex) {
51:
52: BigDecimal outValue = null;
53:
54: outValue = (BigDecimal) this.ids.get(inIndex);
55:
56: return outValue;
57: }
58: }
|