View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.plugins.changelog.stubs;
20  
21  import java.io.File;
22  import java.util.Date;
23  import java.util.List;
24  
25  import org.apache.maven.scm.CommandParameters;
26  import org.apache.maven.scm.ScmBranch;
27  import org.apache.maven.scm.ScmBranchParameters;
28  import org.apache.maven.scm.ScmFileSet;
29  import org.apache.maven.scm.ScmTagParameters;
30  import org.apache.maven.scm.ScmVersion;
31  import org.apache.maven.scm.command.add.AddScmResult;
32  import org.apache.maven.scm.command.blame.BlameScmRequest;
33  import org.apache.maven.scm.command.blame.BlameScmResult;
34  import org.apache.maven.scm.command.branch.BranchScmResult;
35  import org.apache.maven.scm.command.changelog.ChangeLogScmRequest;
36  import org.apache.maven.scm.command.changelog.ChangeLogScmResult;
37  import org.apache.maven.scm.command.checkin.CheckInScmResult;
38  import org.apache.maven.scm.command.checkout.CheckOutScmResult;
39  import org.apache.maven.scm.command.diff.DiffScmResult;
40  import org.apache.maven.scm.command.edit.EditScmResult;
41  import org.apache.maven.scm.command.export.ExportScmResult;
42  import org.apache.maven.scm.command.info.InfoScmResult;
43  import org.apache.maven.scm.command.list.ListScmResult;
44  import org.apache.maven.scm.command.mkdir.MkdirScmResult;
45  import org.apache.maven.scm.command.remoteinfo.RemoteInfoScmResult;
46  import org.apache.maven.scm.command.remove.RemoveScmResult;
47  import org.apache.maven.scm.command.status.StatusScmResult;
48  import org.apache.maven.scm.command.tag.TagScmResult;
49  import org.apache.maven.scm.command.unedit.UnEditScmResult;
50  import org.apache.maven.scm.command.untag.UntagScmResult;
51  import org.apache.maven.scm.command.update.UpdateScmResult;
52  import org.apache.maven.scm.provider.ScmProvider;
53  import org.apache.maven.scm.provider.ScmProviderRepository;
54  import org.apache.maven.scm.repository.ScmRepository;
55  
56  /**
57   * @author Edwin Punzalan
58   */
59  public class ScmProviderStub implements ScmProvider {
60      /**
61       * {@inheritDoc}
62       */
63      public AddScmResult add(ScmRepository scmRepository, ScmFileSet scmFileSet) {
64          return null;
65      }
66  
67      /**
68       * {@inheritDoc}
69       */
70      public String getScmSpecificFilename() {
71          return null;
72      }
73  
74      /**
75       * {@inheritDoc}
76       */
77      public String getScmType() {
78          return null;
79      }
80  
81      /**
82       * {@inheritDoc}
83       */
84      public ScmProviderRepository makeProviderScmRepository(File file) {
85          return null;
86      }
87  
88      /**
89       * {@inheritDoc}
90       */
91      public ScmProviderRepository makeProviderScmRepository(String string, char c) {
92          return null;
93      }
94  
95      /**
96       * {@inheritDoc}
97       */
98      public AddScmResult add(ScmRepository scmRepository, ScmFileSet scmFileSet, String message) {
99          return null;
100     }
101 
102     /**
103      * {@inheritDoc}
104      */
105     public BranchScmResult branch(ScmRepository scmRepository, ScmFileSet scmFileSet, String string) {
106         return null;
107     }
108 
109     /**
110      * {@inheritDoc}
111      */
112     public BranchScmResult branch(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1) {
113         return null;
114     }
115 
116     /**
117      * {@inheritDoc}
118      */
119     protected ChangeLogScmResult getChangeLogScmResult() {
120         return new ChangeLogScmResultStub();
121     }
122 
123     /**
124      * {@inheritDoc}
125      */
126     public ChangeLogScmResult changeLog(
127             ScmRepository scmRepository, ScmFileSet scmFileSet, Date date, Date date1, int i, String string) {
128         return getChangeLogScmResult();
129     }
130 
131     /**
132      * {@inheritDoc}
133      */
134     public ChangeLogScmResult changeLog(
135             ScmRepository scmRepository,
136             ScmFileSet scmFileSet,
137             Date date,
138             Date date1,
139             int i,
140             String string,
141             String string1) {
142         return getChangeLogScmResult();
143     }
144 
145     /**
146      * {@inheritDoc}
147      */
148     public ChangeLogScmResult changeLog(
149             ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1) {
150         return getChangeLogScmResult();
151     }
152 
153     /**
154      * {@inheritDoc}
155      */
156     public ChangeLogScmResult changeLog(
157             ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1, String string2) {
158         return getChangeLogScmResult();
159     }
160 
161     /**
162      * {@inheritDoc}
163      */
164     public ChangeLogScmResult changeLog(
165             ScmRepository scmRepository, ScmFileSet scmFileSet, Date date, Date date1, int i, ScmBranch scmBranch) {
166         return getChangeLogScmResult();
167     }
168 
169     /**
170      * {@inheritDoc}
171      */
172     public ChangeLogScmResult changeLog(
173             ScmRepository scmRepository,
174             ScmFileSet scmFileSet,
175             Date date,
176             Date date1,
177             int i,
178             ScmBranch scmBranch,
179             String string) {
180         return getChangeLogScmResult();
181     }
182 
183     /**
184      * {@inheritDoc}
185      */
186     public ChangeLogScmResult changeLog(
187             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, ScmVersion scmVersion1) {
188         return getChangeLogScmResult();
189     }
190 
191     /**
192      * {@inheritDoc}
193      */
194     public ChangeLogScmResult changeLog(
195             ScmRepository scmRepository,
196             ScmFileSet scmFileSet,
197             ScmVersion scmVersion,
198             ScmVersion scmVersion1,
199             String string) {
200         return getChangeLogScmResult();
201     }
202 
203     /**
204      * {@inheritDoc}
205      */
206     public CheckInScmResult checkIn(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1) {
207         return null;
208     }
209 
210     /**
211      * {@inheritDoc}
212      */
213     public CheckInScmResult checkIn(ScmRepository scmRepository, ScmFileSet scmFileSet, String string) {
214         return null;
215     }
216 
217     /**
218      * {@inheritDoc}
219      */
220     public CheckInScmResult checkIn(
221             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, String string) {
222         return null;
223     }
224 
225     /**
226      * {@inheritDoc}
227      */
228     public CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, String string) {
229         return null;
230     }
231 
232     /**
233      * {@inheritDoc}
234      */
235     public CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet) {
236         return null;
237     }
238 
239     /**
240      * {@inheritDoc}
241      */
242     public CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion) {
243         return null;
244     }
245 
246     /**
247      * {@inheritDoc}
248      */
249     public CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, boolean b) {
250         return null;
251     }
252 
253     /**
254      * {@inheritDoc}
255      */
256     public CheckOutScmResult checkOut(ScmRepository scmRepository, ScmFileSet scmFileSet, boolean b) {
257         return null;
258     }
259 
260     /**
261      * {@inheritDoc}
262      */
263     public CheckOutScmResult checkOut(
264             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, boolean b) {
265         return null;
266     }
267 
268     @Override
269     /**
270      * {@inheritDoc}
271      */
272     public CheckOutScmResult checkOut(
273             ScmRepository scmRepository,
274             ScmFileSet scmFileSet,
275             ScmVersion scmVersion,
276             CommandParameters commandParameters) {
277         return null;
278     }
279 
280     /**
281      * {@inheritDoc}
282      */
283     public DiffScmResult diff(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1) {
284         return null;
285     }
286 
287     /**
288      * {@inheritDoc}
289      */
290     public DiffScmResult diff(
291             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, ScmVersion scmVersion1) {
292         return null;
293     }
294 
295     /**
296      * {@inheritDoc}
297      */
298     public EditScmResult edit(ScmRepository scmRepository, ScmFileSet scmFileSet) {
299         return null;
300     }
301 
302     /**
303      * {@inheritDoc}
304      */
305     public ExportScmResult export(ScmRepository scmRepository, ScmFileSet scmFileSet, String string) {
306         return null; // To change body of implemented methods use File | Settings | File Templates.
307     }
308 
309     /**
310      * {@inheritDoc}
311      */
312     public ExportScmResult export(ScmRepository scmRepository, ScmFileSet scmFileSet) {
313         return null; // To change body of implemented methods use File | Settings | File Templates.
314     }
315 
316     /**
317      * {@inheritDoc}
318      */
319     public ExportScmResult export(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion) {
320         return null; // To change body of implemented methods use File | Settings | File Templates.
321     }
322 
323     /**
324      * {@inheritDoc}
325      */
326     public ExportScmResult export(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1) {
327         return null; // To change body of implemented methods use File | Settings | File Templates.
328     }
329 
330     /**
331      * {@inheritDoc}
332      */
333     public ExportScmResult export(
334             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, String string) {
335         return null; // To change body of implemented methods use File | Settings | File Templates.
336     }
337 
338     /**
339      * {@inheritDoc}
340      */
341     public ListScmResult list(ScmRepository repository, ScmFileSet fileSet, boolean recursive, String tag) {
342         return null;
343     }
344 
345     /**
346      * {@inheritDoc}
347      */
348     public ListScmResult list(ScmRepository scmRepository, ScmFileSet scmFileSet, boolean b, ScmVersion scmVersion) {
349         return null; // To change body of implemented methods use File | Settings | File Templates.
350     }
351 
352     /**
353      * {@inheritDoc}
354      */
355     public RemoveScmResult remove(ScmRepository scmRepository, ScmFileSet scmFileSet, String string) {
356         return null;
357     }
358 
359     /**
360      * {@inheritDoc}
361      */
362     public boolean requiresEditMode() {
363         return false;
364     }
365 
366     /**
367      * {@inheritDoc}
368      */
369     public StatusScmResult status(ScmRepository scmRepository, ScmFileSet scmFileSet) {
370         return null;
371     }
372 
373     /**
374      * {@inheritDoc}
375      */
376     public TagScmResult tag(ScmRepository scmRepository, ScmFileSet scmFileSet, String string) {
377         return null;
378     }
379 
380     /**
381      * {@inheritDoc}
382      */
383     public TagScmResult tag(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1) {
384         return null; // To change body of implemented methods use File | Settings | File Templates.
385     }
386 
387     /**
388      * {@inheritDoc}
389      */
390     @Override
391     public UntagScmResult untag(
392             ScmRepository scmRepository, ScmFileSet scmFileSet, CommandParameters commandParameters) {
393         return null;
394     }
395 
396     /**
397      * {@inheritDoc}
398      */
399     public UnEditScmResult unedit(ScmRepository scmRepository, ScmFileSet scmFileSet) {
400         return null;
401     }
402 
403     /**
404      * {@inheritDoc}
405      */
406     public UpdateScmResult update(ScmRepository scmRepository, ScmFileSet scmFileSet, String string) {
407         return null;
408     }
409 
410     /**
411      * {@inheritDoc}
412      */
413     public UpdateScmResult update(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, Date date) {
414         return null;
415     }
416 
417     /**
418      * {@inheritDoc}
419      */
420     public UpdateScmResult update(
421             ScmRepository scmRepository, ScmFileSet scmFileSet, String string, Date date, String string1) {
422         return null;
423     }
424 
425     /**
426      * {@inheritDoc}
427      */
428     public UpdateScmResult update(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, String string1) {
429         return null;
430     }
431 
432     public UpdateScmResult update(ScmRepository scmRepository, ScmFileSet scmFileSet) {
433         return null;
434     }
435 
436     public UpdateScmResult update(ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion) {
437         return null;
438     }
439 
440     /**
441      * @deprecated
442      */
443     public UpdateScmResult update(ScmRepository scmRepository, ScmFileSet scmFileSet, String string, boolean b) {
444         return null;
445     }
446 
447     /**
448      * {@inheritDoc}
449      */
450     public UpdateScmResult update(ScmRepository scmRepository, ScmFileSet scmFileSet, boolean b) {
451         return null;
452     }
453 
454     /**
455      * {@inheritDoc}
456      */
457     public UpdateScmResult update(
458             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, boolean b) {
459         return null;
460     }
461 
462     /**
463      * {@inheritDoc}
464      */
465     public UpdateScmResult update(
466             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, String string) {
467         return null;
468     }
469 
470     /**
471      * {@inheritDoc}
472      */
473     public UpdateScmResult update(
474             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, Date date) {
475         return null;
476     }
477 
478     /**
479      * {@inheritDoc}
480      */
481     public UpdateScmResult update(
482             ScmRepository scmRepository, ScmFileSet scmFileSet, ScmVersion scmVersion, Date date, String string) {
483         return null;
484     }
485 
486     /**
487      * {@inheritDoc}
488      */
489     public List<String> validateScmUrl(String string, char c) {
490         return null;
491     }
492 
493     /**
494      * {@inheritDoc}
495      */
496     public String sanitizeTagName(String tag) {
497         return tag;
498     }
499 
500     /**
501      * {@inheritDoc}
502      */
503     public boolean validateTagName(String tag) {
504         return true;
505     }
506 
507     /**
508      * {@inheritDoc}
509      */
510     public TagScmResult tag(ScmRepository arg0, ScmFileSet arg1, String arg2, ScmTagParameters arg3) {
511         return null;
512     }
513 
514     public BranchScmResult branch(ScmRepository arg0, ScmFileSet arg1, String arg2, ScmBranchParameters arg3) {
515         return null;
516     }
517 
518     public BlameScmResult blame(ScmRepository arg0, ScmFileSet arg1, String arg2) {
519 
520         return null;
521     }
522 
523     public MkdirScmResult mkdir(ScmRepository arg0, ScmFileSet arg1, String arg2, boolean arg3) {
524 
525         return null;
526     }
527 
528     public InfoScmResult info(
529             ScmProviderRepository scmProviderRepository, ScmFileSet scmFileSet, CommandParameters commandParameters) {
530         return null;
531     }
532 
533     public AddScmResult add(ScmRepository scmRepository, ScmFileSet scmFileSet, CommandParameters commandParameters) {
534         return null;
535     }
536 
537     public RemoteInfoScmResult remoteInfo(
538             ScmProviderRepository scmProviderRepository, ScmFileSet scmFileSet, CommandParameters commandParameters) {
539         return null;
540     }
541 
542     public ChangeLogScmResult changeLog(ChangeLogScmRequest scmRequest) {
543         return null;
544     }
545 
546     public BlameScmResult blame(BlameScmRequest blameScmRequest) {
547         return null;
548     }
549 }