2 * Copyright (c) 2019-2020. Developed by Hedgecode.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.hedgecode.chess.scanner.portal;
19 import org.hedgecode.chess.scanner.Scanner;
20 import org.hedgecode.chess.scanner.ScannerException;
21 import org.hedgecode.chess.scanner.entity.PGNGame;
22 import org.hedgecode.chess.scanner.entity.PGNTournament;
24 import static org.hedgecode.chess.scanner.ScannerConstants.*;
29 * @author Dmitry Samoshin aka gotty
31 public class Chess24Scanner extends AbstractSettingsScanner implements Scanner {
33 private static final String SETTINGS_FILENAME = "chess24.settings";
36 protected String getResourceName() {
37 return SETTINGS_FILENAME;
41 public PGNTournament scanTournament(String tournamentId) throws ScannerException {
42 throw new ScannerException(
43 "scanner.portal.under.development", DOMAIN_CHESS24
48 public PGNTournament findTournament(String tournamentName) throws ScannerException {
49 throw new ScannerException(
50 "scanner.portal.under.development", DOMAIN_CHESS24
55 public PGNGame scanGame(String gameId) throws ScannerException {
56 return scanGame(gameId, null);
60 public PGNGame scanGame(String gameId, String tournamentId) throws ScannerException {
61 throw new ScannerException(
62 "scanner.portal.under.development", DOMAIN_CHESS24
67 public PGNGame scanUrl(String gameUrl) throws ScannerException {
68 throw new ScannerException(
69 "scanner.portal.under.development", DOMAIN_CHESS24