1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.dto; |
18 | |
|
19 | |
import java.io.Serializable; |
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
|
26 | |
public class ReportCriteriaDTO implements Serializable { |
27 | |
|
28 | |
private static final long serialVersionUID = 4390002636101531058L; |
29 | |
|
30 | |
private String documentId; |
31 | |
private String targetNodeName; |
32 | |
|
33 | |
private String[] targetPrincipalIds; |
34 | |
private String routingPrincipalId; |
35 | |
private String documentTypeName; |
36 | |
private String xmlContent; |
37 | |
private String[] ruleTemplateNames; |
38 | |
private String[] nodeNames; |
39 | |
private ReportActionToTakeDTO[] actionsToTake; |
40 | 0 | private Boolean activateRequests = null; |
41 | 0 | private boolean flattenNodes = false; |
42 | |
|
43 | 0 | public ReportCriteriaDTO() {} |
44 | |
|
45 | |
public static ReportCriteriaDTO createReportCritByDocTypeNm(String documentTypeName) { |
46 | 0 | return new ReportCriteriaDTO(documentTypeName); |
47 | |
} |
48 | |
|
49 | |
public static ReportCriteriaDTO createReportCritByDocId(String documentId) { |
50 | 0 | return new ReportCriteriaDTO(documentId, null); |
51 | |
} |
52 | |
|
53 | |
public static ReportCriteriaDTO createReportCritByDocIdAndTargetNdNm(String documentId, String targetNodeName) { |
54 | 0 | return new ReportCriteriaDTO(documentId, targetNodeName); |
55 | |
} |
56 | |
|
57 | 0 | private ReportCriteriaDTO(String documentId, String targetNodeName) { |
58 | 0 | this.documentId = documentId; |
59 | 0 | this.targetNodeName = targetNodeName; |
60 | 0 | } |
61 | |
|
62 | 0 | private ReportCriteriaDTO(String documentTypeName) { |
63 | 0 | this.documentTypeName = documentTypeName; |
64 | 0 | } |
65 | |
|
66 | |
public Boolean getActivateRequests() { |
67 | 0 | return this.activateRequests; |
68 | |
} |
69 | |
|
70 | |
public void setActivateRequests(Boolean activateRequests) { |
71 | 0 | this.activateRequests = activateRequests; |
72 | 0 | } |
73 | |
|
74 | |
public String getDocumentId() { |
75 | 0 | return documentId; |
76 | |
} |
77 | |
|
78 | |
public void setDocumentId(String documentId) { |
79 | 0 | this.documentId = documentId; |
80 | 0 | } |
81 | |
|
82 | |
public String getTargetNodeName() { |
83 | 0 | return targetNodeName; |
84 | |
} |
85 | |
|
86 | |
public void setTargetNodeName(String targetNodeName) { |
87 | 0 | this.targetNodeName = targetNodeName; |
88 | 0 | } |
89 | |
|
90 | |
public String toString() { |
91 | 0 | return super.toString()+"[documentId="+documentId+ |
92 | |
",targetNodeName="+targetNodeName+"]"; |
93 | |
} |
94 | |
|
95 | |
public String getDocumentTypeName() { |
96 | 0 | return documentTypeName; |
97 | |
} |
98 | |
|
99 | |
public void setDocumentTypeName(String documentTypeName) { |
100 | 0 | this.documentTypeName = documentTypeName; |
101 | 0 | } |
102 | |
|
103 | |
public String[] getRuleTemplateNames() { |
104 | 0 | return ruleTemplateNames; |
105 | |
} |
106 | |
|
107 | |
public void setRuleTemplateNames(String[] ruleTemplateNames) { |
108 | 0 | this.ruleTemplateNames = ruleTemplateNames; |
109 | 0 | } |
110 | |
|
111 | |
public String[] getTargetPrincipalIds() { |
112 | 0 | return targetPrincipalIds; |
113 | |
} |
114 | |
|
115 | |
public void setTargetPrincipalIds(String[] targetPrincipalIds) { |
116 | 0 | this.targetPrincipalIds = targetPrincipalIds; |
117 | 0 | } |
118 | |
|
119 | |
public String getXmlContent() { |
120 | 0 | return xmlContent; |
121 | |
} |
122 | |
|
123 | |
public void setXmlContent(String xmlContent) { |
124 | 0 | this.xmlContent = xmlContent; |
125 | 0 | } |
126 | |
|
127 | |
public String[] getNodeNames() { |
128 | 0 | return nodeNames; |
129 | |
} |
130 | |
|
131 | |
public void setNodeNames(String[] nodeNames) { |
132 | 0 | this.nodeNames = nodeNames; |
133 | 0 | } |
134 | |
|
135 | |
public ReportActionToTakeDTO[] getActionsToTake() { |
136 | 0 | return actionsToTake; |
137 | |
} |
138 | |
|
139 | |
public void setActionsToTake(ReportActionToTakeDTO[] actionsToTake) { |
140 | 0 | this.actionsToTake = actionsToTake; |
141 | 0 | } |
142 | |
|
143 | |
public String getRoutingPrincipalId() { |
144 | 0 | return routingPrincipalId; |
145 | |
} |
146 | |
|
147 | |
public void setRoutingPrincipalId(String routingPrincipalId) { |
148 | 0 | this.routingPrincipalId = routingPrincipalId; |
149 | 0 | } |
150 | |
|
151 | |
public boolean isFlattenNodes() { |
152 | 0 | return this.flattenNodes; |
153 | |
} |
154 | |
|
155 | |
public void setFlattenNodes(boolean flattenNodes) { |
156 | 0 | this.flattenNodes = flattenNodes; |
157 | 0 | } |
158 | |
|
159 | |
} |