[LIB-13] Stub scanners for some portals
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / portal / ChessComScanner.java
1 /*
2  * Copyright (c) 2019-2020. Developed by Hedgecode.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.hedgecode.chess.scanner.portal;
18
19 import org.hedgecode.chess.scanner.ChessHogScannerException;
20 import org.hedgecode.chess.scanner.Scanner;
21 import org.hedgecode.chess.scanner.entity.PGNGame;
22 import org.hedgecode.chess.scanner.entity.PGNTournament;
23
24 /**
25  * ChessComScanner
26  *
27  * @author Dmitry Samoshin aka gotty
28  */
29 public class ChessComScanner extends AbstractSettingsScanner implements Scanner {
30
31     private static final String SETTINGS_FILENAME = "chesscom.settings";
32
33     @Override
34     protected String getResourceName() {
35         return SETTINGS_FILENAME;
36     }
37
38     @Override
39     public PGNTournament scanTournament(String tournamentId) throws ChessHogScannerException {
40         throw new ChessHogScannerException(
41                 "The scanner functional of portal chess.com is under development!"
42         );
43     }
44
45     @Override
46     public PGNTournament findTournament(String tournamentName) throws ChessHogScannerException {
47         throw new ChessHogScannerException(
48                 "The scanner functional of portal chess.com is under development!"
49         );
50     }
51
52     @Override
53     public PGNGame scanGame(String gameId) throws ChessHogScannerException {
54         return scanGame(gameId, null);
55     }
56
57     @Override
58     public PGNGame scanGame(String gameId, String tournamentId) throws ChessHogScannerException {
59         throw new ChessHogScannerException(
60                 "The scanner functional of portal chess.com is under development!"
61         );
62     }
63
64     @Override
65     public PGNGame scanUrl(String gameUrl) throws ChessHogScannerException {
66         throw new ChessHogScannerException(
67                 "The scanner functional of portal chess.com is under development!"
68         );
69     }
70
71 }