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