1 | |
package org.apache.maven.plugins.patchtracker.tracking; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
public class PatchTrackerRequest |
26 | |
{ |
27 | |
private String url; |
28 | |
|
29 | |
private String userName; |
30 | |
|
31 | |
private String password; |
32 | |
|
33 | |
private String patchContent; |
34 | |
|
35 | |
private String summary; |
36 | |
|
37 | |
private String description; |
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
private String patchId; |
43 | |
|
44 | |
|
45 | |
|
46 | |
|
47 | 0 | private String patchType = "1"; |
48 | |
|
49 | |
|
50 | |
|
51 | |
|
52 | |
private String patchPriority; |
53 | |
|
54 | |
public PatchTrackerRequest() |
55 | 0 | { |
56 | |
|
57 | 0 | } |
58 | |
|
59 | |
public String getUrl() |
60 | |
{ |
61 | 0 | return url; |
62 | |
} |
63 | |
|
64 | |
public PatchTrackerRequest setUrl( String url ) |
65 | |
{ |
66 | 0 | this.url = url; |
67 | 0 | return this; |
68 | |
} |
69 | |
|
70 | |
public String getUserName() |
71 | |
{ |
72 | 0 | return userName; |
73 | |
} |
74 | |
|
75 | |
public PatchTrackerRequest setUserName( String userName ) |
76 | |
{ |
77 | 0 | this.userName = userName; |
78 | 0 | return this; |
79 | |
} |
80 | |
|
81 | |
public String getPassword() |
82 | |
{ |
83 | 0 | return password; |
84 | |
} |
85 | |
|
86 | |
public PatchTrackerRequest setPassword( String password ) |
87 | |
{ |
88 | 0 | this.password = password; |
89 | 0 | return this; |
90 | |
} |
91 | |
|
92 | |
public String getPatchContent() |
93 | |
{ |
94 | 0 | return patchContent; |
95 | |
} |
96 | |
|
97 | |
public PatchTrackerRequest setPatchContent( String patchContent ) |
98 | |
{ |
99 | 0 | this.patchContent = patchContent; |
100 | 0 | return this; |
101 | |
} |
102 | |
|
103 | |
public String getSummary() |
104 | |
{ |
105 | 0 | return summary; |
106 | |
} |
107 | |
|
108 | |
public PatchTrackerRequest setSummary( String summary ) |
109 | |
{ |
110 | 0 | this.summary = summary; |
111 | 0 | return this; |
112 | |
} |
113 | |
|
114 | |
public String getDescription() |
115 | |
{ |
116 | 0 | return description; |
117 | |
} |
118 | |
|
119 | |
public PatchTrackerRequest setDescription( String description ) |
120 | |
{ |
121 | 0 | this.description = description; |
122 | 0 | return this; |
123 | |
} |
124 | |
|
125 | |
public String getPatchId() |
126 | |
{ |
127 | 0 | return patchId; |
128 | |
} |
129 | |
|
130 | |
public PatchTrackerRequest setPatchId( String patchId ) |
131 | |
{ |
132 | 0 | this.patchId = patchId; |
133 | 0 | return this; |
134 | |
} |
135 | |
|
136 | |
public String getPatchType() |
137 | |
{ |
138 | 0 | return patchType; |
139 | |
} |
140 | |
|
141 | |
public PatchTrackerRequest setPatchType( String patchType ) |
142 | |
{ |
143 | 0 | this.patchType = patchType; |
144 | 0 | return this; |
145 | |
} |
146 | |
|
147 | |
public String getPatchPriority() |
148 | |
{ |
149 | 0 | return patchPriority; |
150 | |
} |
151 | |
|
152 | |
public PatchTrackerRequest setPatchPriority( String patchPriority ) |
153 | |
{ |
154 | 0 | this.patchPriority = patchPriority; |
155 | 0 | return this; |
156 | |
} |
157 | |
|
158 | |
@Override |
159 | |
public String toString() |
160 | |
{ |
161 | 0 | final StringBuilder sb = new StringBuilder(); |
162 | 0 | sb.append( "PatchTrackerRequest" ); |
163 | 0 | sb.append( "{url='" ).append( url ).append( '\'' ); |
164 | 0 | sb.append( ", userName='" ).append( userName ).append( '\'' ); |
165 | 0 | sb.append( ", password='" ).append( "******" ).append( '\'' ); |
166 | 0 | sb.append( ", patchContent='" ).append( patchContent ).append( '\'' ); |
167 | 0 | sb.append( ", summary='" ).append( summary ).append( '\'' ); |
168 | 0 | sb.append( ", description='" ).append( description ).append( '\'' ); |
169 | 0 | sb.append( ", patchId='" ).append( patchId ).append( '\'' ); |
170 | 0 | sb.append( ", patchPriority='" ).append( patchPriority ).append( '\'' ); |
171 | 0 | sb.append( '}' ); |
172 | 0 | return sb.toString(); |
173 | |
} |
174 | |
} |