1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.filter.job; |
21 |
|
|
22 |
|
import java.util.ArrayList; |
23 |
|
import java.util.List; |
24 |
|
import java.util.Map; |
25 |
|
|
26 |
|
import org.xwiki.filter.type.FilterStreamType; |
27 |
|
import org.xwiki.job.AbstractRequest; |
28 |
|
import org.xwiki.job.Request; |
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
@version |
34 |
|
@since |
35 |
|
|
|
|
| 76.9% |
Uncovered Elements: 6 (26) |
Complexity: 8 |
Complexity Density: 0.44 |
|
36 |
|
public class FilterStreamConverterJobRequest extends AbstractRequest implements FilterStreamJobRequest |
37 |
|
{ |
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
private static final long serialVersionUID = 1L; |
42 |
|
|
43 |
|
|
44 |
|
@see |
45 |
|
|
46 |
|
private FilterStreamType inputType; |
47 |
|
|
48 |
|
|
49 |
|
@see |
50 |
|
|
51 |
|
private Map<String, Object> inputProperties; |
52 |
|
|
53 |
|
|
54 |
|
@see |
55 |
|
|
56 |
|
private FilterStreamType outputType; |
57 |
|
|
58 |
|
|
59 |
|
@see |
60 |
|
|
61 |
|
private boolean eventsFolded; |
62 |
|
|
63 |
|
|
64 |
|
@see |
65 |
|
|
66 |
|
private Map<String, Object> outputProperties; |
67 |
|
|
68 |
|
|
69 |
|
@param |
70 |
|
@param |
71 |
|
@param |
72 |
|
@param |
73 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
74 |
0 |
public FilterStreamConverterJobRequest(FilterStreamType inputType, Map<String, Object> inputProperties,... |
75 |
|
FilterStreamType outputType, Map<String, Object> outputProperties) |
76 |
|
{ |
77 |
0 |
this(inputType, inputProperties, outputType, true, outputProperties); |
78 |
|
} |
79 |
|
|
80 |
|
|
81 |
|
@param |
82 |
|
@param |
83 |
|
@param |
84 |
|
@param |
85 |
|
@param |
86 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (11) |
Complexity: 1 |
Complexity Density: 0.09 |
|
87 |
1 |
public FilterStreamConverterJobRequest(FilterStreamType inputType, Map<String, Object> inputProperties,... |
88 |
|
FilterStreamType outputType, boolean eventsFolded, Map<String, Object> outputProperties) |
89 |
|
{ |
90 |
1 |
this.inputType = inputType; |
91 |
1 |
this.inputProperties = inputProperties; |
92 |
1 |
this.outputType = outputType; |
93 |
1 |
this.outputProperties = outputProperties; |
94 |
1 |
this.eventsFolded = eventsFolded; |
95 |
|
|
96 |
1 |
List<String> jobId = new ArrayList<String>(); |
97 |
1 |
jobId.add(JOBID_PREFIX); |
98 |
1 |
jobId.add("converter"); |
99 |
1 |
jobId.add(inputType.serialize()); |
100 |
1 |
jobId.add(outputType.serialize()); |
101 |
1 |
setId(jobId); |
102 |
|
} |
103 |
|
|
104 |
|
|
105 |
|
@param |
106 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
107 |
0 |
public FilterStreamConverterJobRequest(Request request)... |
108 |
|
{ |
109 |
0 |
super(request); |
110 |
|
} |
111 |
|
|
112 |
|
|
113 |
|
@return |
114 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
1 |
public FilterStreamType getInputType()... |
116 |
|
{ |
117 |
1 |
return this.inputType; |
118 |
|
} |
119 |
|
|
120 |
|
|
121 |
|
@return |
122 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
123 |
1 |
public Map<String, Object> getInputProperties()... |
124 |
|
{ |
125 |
1 |
return this.inputProperties; |
126 |
|
} |
127 |
|
|
128 |
|
|
129 |
|
@return |
130 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
1 |
public FilterStreamType getOutputType()... |
132 |
|
{ |
133 |
1 |
return this.outputType; |
134 |
|
} |
135 |
|
|
136 |
|
|
137 |
|
@return |
138 |
|
@since |
139 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
140 |
0 |
public boolean isEventsFolded()... |
141 |
|
{ |
142 |
0 |
return this.eventsFolded; |
143 |
|
} |
144 |
|
|
145 |
|
|
146 |
|
@return |
147 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
148 |
1 |
public Map<String, Object> getOutputProperties()... |
149 |
|
{ |
150 |
1 |
return this.outputProperties; |
151 |
|
} |
152 |
|
} |