1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.engine.simulation; |
18 | |
|
19 | |
import org.kuali.rice.kew.actionrequest.Recipient; |
20 | |
import org.kuali.rice.kim.bo.Person; |
21 | |
|
22 | |
import java.util.ArrayList; |
23 | |
import java.util.List; |
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | |
|
33 | |
public class SimulationCriteria { |
34 | |
|
35 | |
|
36 | |
private Long documentId; |
37 | |
private String destinationNodeName; |
38 | 0 | private List<Recipient> destinationRecipients = new ArrayList<Recipient>(); |
39 | |
|
40 | |
|
41 | |
private String documentTypeName; |
42 | |
private String xmlContent; |
43 | 0 | private List<String> nodeNames = new ArrayList<String>(); |
44 | 0 | private List<String> ruleTemplateNames = new ArrayList<String>(); |
45 | |
|
46 | |
|
47 | |
private Boolean activateRequests; |
48 | |
private Person routingUser; |
49 | 0 | private List<SimulationActionToTake> actionsToTake = new ArrayList<SimulationActionToTake>(); |
50 | |
private boolean flattenNodes; |
51 | |
|
52 | 0 | public SimulationCriteria() { |
53 | 0 | this.activateRequests = null; |
54 | 0 | this.flattenNodes = false; |
55 | 0 | } |
56 | |
|
57 | 0 | public SimulationCriteria(Long documentId) { |
58 | 0 | this.documentId = documentId; |
59 | 0 | } |
60 | |
|
61 | 0 | public SimulationCriteria(String documentTypeName) { |
62 | 0 | this.documentTypeName = documentTypeName; |
63 | 0 | } |
64 | |
|
65 | |
public Boolean isActivateRequests() { |
66 | 0 | return this.activateRequests; |
67 | |
} |
68 | |
|
69 | |
public void setActivateRequests(Boolean activateRequests) { |
70 | 0 | this.activateRequests = activateRequests; |
71 | 0 | } |
72 | |
|
73 | |
public Long getDocumentId() { |
74 | 0 | return documentId; |
75 | |
} |
76 | |
|
77 | |
public void setDocumentId(Long documentId) { |
78 | 0 | this.documentId = documentId; |
79 | 0 | } |
80 | |
|
81 | |
public String getDestinationNodeName() { |
82 | 0 | return destinationNodeName; |
83 | |
} |
84 | |
|
85 | |
public void setDestinationNodeName(String destinationNodeName) { |
86 | 0 | this.destinationNodeName = destinationNodeName; |
87 | 0 | } |
88 | |
|
89 | |
public List<Recipient> getDestinationRecipients() { |
90 | 0 | return destinationRecipients; |
91 | |
} |
92 | |
|
93 | |
public void setDestinationRecipients(List<Recipient> destinationRecipients) { |
94 | 0 | this.destinationRecipients = destinationRecipients; |
95 | 0 | } |
96 | |
|
97 | |
public String getDocumentTypeName() { |
98 | 0 | return documentTypeName; |
99 | |
} |
100 | |
|
101 | |
public void setDocumentTypeName(String documentTypeName) { |
102 | 0 | this.documentTypeName = documentTypeName; |
103 | 0 | } |
104 | |
|
105 | |
public List<String> getRuleTemplateNames() { |
106 | 0 | return ruleTemplateNames; |
107 | |
} |
108 | |
|
109 | |
public void setRuleTemplateNames(List<String> ruleTemplateNames) { |
110 | 0 | this.ruleTemplateNames = ruleTemplateNames; |
111 | 0 | } |
112 | |
|
113 | |
public String getXmlContent() { |
114 | 0 | return xmlContent; |
115 | |
} |
116 | |
|
117 | |
public void setXmlContent(String xmlContent) { |
118 | 0 | this.xmlContent = xmlContent; |
119 | 0 | } |
120 | |
|
121 | |
public List<String> getNodeNames() { |
122 | 0 | return nodeNames; |
123 | |
} |
124 | |
|
125 | |
public void setNodeNames(List<String> nodeNames) { |
126 | 0 | this.nodeNames = nodeNames; |
127 | 0 | } |
128 | |
|
129 | |
public boolean isDocumentSimulation() { |
130 | 0 | return documentId != null; |
131 | |
} |
132 | |
|
133 | |
public boolean isDocumentTypeSimulation() { |
134 | 0 | return !org.apache.commons.lang.StringUtils.isEmpty(documentTypeName); |
135 | |
} |
136 | |
|
137 | |
public List<SimulationActionToTake> getActionsToTake() { |
138 | 0 | return actionsToTake; |
139 | |
} |
140 | |
|
141 | |
public void setActionsToTake(List<SimulationActionToTake> actionsToTake) { |
142 | 0 | this.actionsToTake = actionsToTake; |
143 | 0 | } |
144 | |
|
145 | |
public Person getRoutingUser() { |
146 | 0 | return routingUser; |
147 | |
} |
148 | |
|
149 | |
public void setRoutingUser(Person routingUser) { |
150 | 0 | this.routingUser = routingUser; |
151 | 0 | } |
152 | |
|
153 | |
public boolean isFlattenNodes() { |
154 | 0 | return this.flattenNodes; |
155 | |
} |
156 | |
|
157 | |
public void setFlattenNodes(boolean flattenNodes) { |
158 | 0 | this.flattenNodes = flattenNodes; |
159 | 0 | } |
160 | |
|
161 | |
} |