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.dms;
09:
10: //base classes
11: import java.util.ArrayList;
12:
13: //project specific classes
14: import org.jfolder.workflow.model.WorkflowComponent;
15: import org.jfolder.workflow.model.WorkflowComponentUpdates;
16:
17: //other classes
18:
19: public class WorkflowDocumentGroupUpdates extends
20: WorkflowComponentUpdates {
21:
22: protected final static String ADD = "ADD";
23: protected final static String UPDATE = "UPDATE";
24: protected final static String REMOVE = "REMOVE";
25:
26: private String name = null;
27: private ArrayList commands = null;
28: private ArrayList instances = null;
29: private ArrayList annotations = null;
30:
31: protected WorkflowDocumentGroupUpdates(String inName,
32: ArrayList inCommands, ArrayList inInstances,
33: ArrayList inAnnotations) {
34:
35: this .name = inName;
36: this .commands = inCommands;
37: this .instances = inInstances;
38: this .annotations = inAnnotations;
39: }
40:
41: public String getName() {
42: return this .name;
43: }
44:
45: public int getUpdateInstanceLength() {
46: return this .commands.size();
47: }
48:
49: public String getCommand(int inIndex) {
50: return (String) this .commands.get(inIndex);
51: }
52:
53: public WorkflowDocumentInstance getInstance(int inIndex) {
54: return (WorkflowDocumentInstance) this .instances.get(inIndex);
55: }
56:
57: public int getUpdateAnnotationsLength() {
58: return this .annotations.size();
59: }
60:
61: public String getAnnotation(int inIndex) {
62: return (String) this.annotations.get(inIndex);
63: }
64: }
|