1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
package org.xwiki.extension.xar.internal.handler.packager; |
21 |
|
|
22 |
|
import java.util.Set; |
23 |
|
|
24 |
|
import org.xwiki.extension.xar.internal.handler.XarExtensionPlan; |
25 |
|
import org.xwiki.job.event.status.JobStatus; |
26 |
|
import org.xwiki.model.reference.DocumentReference; |
27 |
|
|
28 |
|
|
29 |
|
@version |
30 |
|
@since |
31 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (32) |
Complexity: 16 |
Complexity Density: 1 |
|
32 |
|
public class PackageConfiguration |
33 |
|
{ |
34 |
|
private String wiki; |
35 |
|
|
36 |
|
private DocumentReference user; |
37 |
|
|
38 |
|
private boolean interactive; |
39 |
|
|
40 |
|
private JobStatus jobStatus; |
41 |
|
|
42 |
|
private boolean verbose = false; |
43 |
|
|
44 |
|
private XarExtensionPlan xarExtensionPlan; |
45 |
|
|
46 |
|
private Set<String> entriesToImport; |
47 |
|
|
48 |
|
private boolean skipMandatorytDocuments = true; |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
146 |
public String getWiki()... |
51 |
|
{ |
52 |
146 |
return this.wiki; |
53 |
|
} |
54 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
135 |
public void setWiki(String wiki)... |
56 |
|
{ |
57 |
135 |
this.wiki = wiki; |
58 |
|
} |
59 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
60 |
491 |
public DocumentReference getUserReference()... |
61 |
|
{ |
62 |
491 |
return this.user; |
63 |
|
} |
64 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
65 |
141 |
public void setUser(DocumentReference user)... |
66 |
|
{ |
67 |
141 |
this.user = user; |
68 |
|
} |
69 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
70 |
56 |
public boolean isInteractive()... |
71 |
|
{ |
72 |
56 |
return this.interactive; |
73 |
|
} |
74 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
75 |
141 |
public void setInteractive(boolean interactive)... |
76 |
|
{ |
77 |
141 |
this.interactive = interactive; |
78 |
|
} |
79 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
80 |
21 |
public JobStatus getJobStatus()... |
81 |
|
{ |
82 |
21 |
return this.jobStatus; |
83 |
|
} |
84 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
85 |
69 |
public void setJobStatus(JobStatus jobStatus)... |
86 |
|
{ |
87 |
69 |
this.jobStatus = jobStatus; |
88 |
|
} |
89 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
90 |
794 |
public boolean isVerbose()... |
91 |
|
{ |
92 |
794 |
return this.verbose; |
93 |
|
} |
94 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
95 |
135 |
public void setVerbose(boolean verbose)... |
96 |
|
{ |
97 |
135 |
this.verbose = verbose; |
98 |
|
} |
99 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
100 |
893 |
public Set<String> getEntriesToImport()... |
101 |
|
{ |
102 |
893 |
return this.entriesToImport; |
103 |
|
} |
104 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
105 |
57 |
public void setEntriesToImport(Set<String> entriesToImport)... |
106 |
|
{ |
107 |
57 |
this.entriesToImport = entriesToImport; |
108 |
|
} |
109 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
110 |
362 |
public XarExtensionPlan getXarExtensionPlan()... |
111 |
|
{ |
112 |
362 |
return this.xarExtensionPlan; |
113 |
|
} |
114 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
115 |
60 |
public void setXarExtensionPlan(XarExtensionPlan xarExtensionPlan)... |
116 |
|
{ |
117 |
60 |
this.xarExtensionPlan = xarExtensionPlan; |
118 |
|
} |
119 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
120 |
147 |
public boolean isSkipMandatorytDocuments()... |
121 |
|
{ |
122 |
147 |
return this.skipMandatorytDocuments; |
123 |
|
} |
124 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
125 |
135 |
public void setSkipMandatorytDocuments(boolean skipMandatorytDocuments)... |
126 |
|
{ |
127 |
135 |
this.skipMandatorytDocuments = skipMandatorytDocuments; |
128 |
|
} |
129 |
|
} |