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 org.kuali.rice.krad.datadictionary.parse.BeanTag;
19 import org.kuali.rice.krad.datadictionary.parse.BeanTagAttribute;
20 import org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase;
21
22 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.List;
25 import java.util.Map;
26
27
28
29
30
31
32
33 @BeanTag(name = "workflowAttributes")
34 public class WorkflowAttributes extends UifDictionaryBeanBase {
35 private static final long serialVersionUID = 6435015497886060280L;
36
37 private List<SearchingTypeDefinition> searchingTypeDefinitions;
38 private Map<String, RoutingTypeDefinition> routingTypeDefinitions;
39
40 public WorkflowAttributes() {
41 searchingTypeDefinitions = new ArrayList<SearchingTypeDefinition>();
42 ;
43 routingTypeDefinitions = new HashMap<String, RoutingTypeDefinition>();
44 }
45
46
47
48
49 @BeanTagAttribute(name = "searchingTypeDefinitions", type = BeanTagAttribute.AttributeType.LISTBEAN)
50 public List<SearchingTypeDefinition> getSearchingTypeDefinitions() {
51 return this.searchingTypeDefinitions;
52 }
53
54
55
56
57 public void setSearchingTypeDefinitions(List<SearchingTypeDefinition> searchingTypeDefinitions) {
58 this.searchingTypeDefinitions = searchingTypeDefinitions;
59 }
60
61 @BeanTagAttribute(name = "routingTypeDefinitions", type = BeanTagAttribute.AttributeType.MAPBEAN)
62 public Map<String, RoutingTypeDefinition> getRoutingTypeDefinitions() {
63 return this.routingTypeDefinitions;
64 }
65
66 public void setRoutingTypeDefinitions(Map<String, RoutingTypeDefinition> routingTypeDefinitions) {
67 this.routingTypeDefinitions = routingTypeDefinitions;
68 }
69
70
71
72
73
74
75
76 public void completeValidation(Class rootBusinessObjectClass, Class otherBusinessObjectClass) {
77 for (SearchingTypeDefinition definition : searchingTypeDefinitions) {
78 definition.completeValidation(rootBusinessObjectClass, otherBusinessObjectClass);
79 }
80 for (RoutingTypeDefinition definitions : routingTypeDefinitions.values()) {
81 definitions.completeValidation(rootBusinessObjectClass, otherBusinessObjectClass);
82 }
83 }
84
85 }