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.workflow.model.trigger;
09:
10: //base classes
11: import java.util.ArrayList;
12:
13: //project specific classes
14: import org.jfolder.security.audit.SecurityAudit;
15: import org.jfolder.workflow.model.WorkflowComponent;
16: import org.jfolder.workflow.model.WorkflowComponentUpdates;
17:
18: //other classes
19:
20: public class WorkflowTriggerUpdates extends WorkflowComponentUpdates {
21:
22: //TO DO: consolidate these and the functions they are used in
23: protected final static String ADD = "ADD";
24: protected final static String UPDATE = "UPDATE";
25: protected final static String REMOVE = "REMOVE";
26:
27: //
28: //private SecurityAudit sa = null;
29: //
30: private ArrayList propCommands = null;
31: private ArrayList propNames = null;
32: private ArrayList propValues = null;
33:
34: protected WorkflowTriggerUpdates() {
35: //this.sa = inSa;
36: }
37:
38: protected void setPropertyUpdates(ArrayList inCommands,
39: ArrayList inNames, ArrayList inValues) {
40:
41: //
42: this .propCommands = inCommands;
43: this .propNames = inNames;
44: this .propValues = inValues;
45: }
46:
47: //public SecurityAudit getSecurityAudit() {
48: // return this.sa;
49: //}
50:
51: public int getPropertyUpdateCount() {
52: return this .propCommands.size();
53: }
54:
55: public String getPropertyCommand(int inIndex) {
56: return (String) this .propCommands.get(inIndex);
57: }
58:
59: public String getPropertyName(int inIndex) {
60: return (String) this .propNames.get(inIndex);
61: }
62:
63: public String getPropertyValue(int inIndex) {
64: return (String) this.propValues.get(inIndex);
65: }
66: }
|