1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kns.datadictionary; |
17 | |
|
18 | |
import java.util.ArrayList; |
19 | |
import java.util.HashMap; |
20 | |
import java.util.List; |
21 | |
import java.util.Map; |
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
public class WorkflowAttributes extends DataDictionaryDefinitionBase { |
32 | |
private static final long serialVersionUID = 6435015497886060280L; |
33 | |
|
34 | |
private List<SearchingTypeDefinition> searchingTypeDefinitions; |
35 | |
private Map<String, RoutingTypeDefinition> routingTypeDefinitions; |
36 | |
|
37 | 0 | public WorkflowAttributes() { |
38 | 0 | searchingTypeDefinitions = new ArrayList<SearchingTypeDefinition>();; |
39 | 0 | routingTypeDefinitions = new HashMap<String, RoutingTypeDefinition>(); |
40 | 0 | } |
41 | |
|
42 | |
|
43 | |
|
44 | |
|
45 | |
public List<SearchingTypeDefinition> getSearchingTypeDefinitions() { |
46 | 0 | return this.searchingTypeDefinitions; |
47 | |
} |
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
public void setSearchingTypeDefinitions( |
53 | |
List<SearchingTypeDefinition> searchingTypeDefinitions) { |
54 | 0 | this.searchingTypeDefinitions = searchingTypeDefinitions; |
55 | 0 | } |
56 | |
|
57 | |
public Map<String, RoutingTypeDefinition> getRoutingTypeDefinitions() { |
58 | 0 | return this.routingTypeDefinitions; |
59 | |
} |
60 | |
|
61 | |
public void setRoutingTypeDefinitions( |
62 | |
Map<String, RoutingTypeDefinition> routingTypeDefinitions) { |
63 | 0 | this.routingTypeDefinitions = routingTypeDefinitions; |
64 | 0 | } |
65 | |
|
66 | |
|
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
public void completeValidation(Class rootBusinessObjectClass, |
72 | |
Class otherBusinessObjectClass) { |
73 | 0 | for (SearchingTypeDefinition definition : searchingTypeDefinitions) { |
74 | 0 | definition.completeValidation(rootBusinessObjectClass, otherBusinessObjectClass); |
75 | |
} |
76 | 0 | for (RoutingTypeDefinition definitions : routingTypeDefinitions.values()) { |
77 | 0 | definitions.completeValidation(rootBusinessObjectClass, otherBusinessObjectClass); |
78 | |
} |
79 | 0 | } |
80 | |
|
81 | |
} |