1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.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 public WorkflowAttributes() {
38 searchingTypeDefinitions = new ArrayList<SearchingTypeDefinition>();;
39 routingTypeDefinitions = new HashMap<String, RoutingTypeDefinition>();
40 }
41
42
43
44
45 public List<SearchingTypeDefinition> getSearchingTypeDefinitions() {
46 return this.searchingTypeDefinitions;
47 }
48
49
50
51
52 public void setSearchingTypeDefinitions(
53 List<SearchingTypeDefinition> searchingTypeDefinitions) {
54 this.searchingTypeDefinitions = searchingTypeDefinitions;
55 }
56
57 public Map<String, RoutingTypeDefinition> getRoutingTypeDefinitions() {
58 return this.routingTypeDefinitions;
59 }
60
61 public void setRoutingTypeDefinitions(
62 Map<String, RoutingTypeDefinition> routingTypeDefinitions) {
63 this.routingTypeDefinitions = routingTypeDefinitions;
64 }
65
66
67
68
69
70
71 public void completeValidation(Class rootBusinessObjectClass,
72 Class otherBusinessObjectClass) {
73 for (SearchingTypeDefinition definition : searchingTypeDefinitions) {
74 definition.completeValidation(rootBusinessObjectClass, otherBusinessObjectClass);
75 }
76 for (RoutingTypeDefinition definitions : routingTypeDefinitions.values()) {
77 definitions.completeValidation(rootBusinessObjectClass, otherBusinessObjectClass);
78 }
79 }
80
81 }