From 1258183eeec8d7405286ad83e60932890c718618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kalkosi=C5=84ski?= Date: Mon, 9 Dec 2019 09:05:57 +0100 Subject: [PATCH] Revert ConnectorFacade --- .../sputnik/connector/ConnectorFacade.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/main/java/pl/touk/sputnik/connector/ConnectorFacade.java b/src/main/java/pl/touk/sputnik/connector/ConnectorFacade.java index e69de29b..aefb4027 100644 --- a/src/main/java/pl/touk/sputnik/connector/ConnectorFacade.java +++ b/src/main/java/pl/touk/sputnik/connector/ConnectorFacade.java @@ -0,0 +1,27 @@ +package pl.touk.sputnik.connector; + +import org.jetbrains.annotations.NotNull; +import pl.touk.sputnik.configuration.Configuration; +import pl.touk.sputnik.configuration.GeneralOptionNotSupportedException; +import pl.touk.sputnik.review.Review; +import pl.touk.sputnik.review.ReviewFile; + +import java.util.List; + +public interface ConnectorFacade extends ReviewPublisher { + Connectors name(); + + @NotNull + List listFiles(); + + /** + * Validates if given options are supported by selected connector. + * + * @throws GeneralOptionNotSupportedException + * if passed configuration is not valid or not fully supported + */ + void validate(Configuration configuration) throws GeneralOptionNotSupportedException; + + @Deprecated + void setReview(@NotNull Review review); +}