/** * This file is part of git-as-svn. It is subject to the license terms * in the LICENSE file found in the top-level directory of this distribution * and at http://www.gnu.org/licenses/gpl-2.0.html. No part of git-as-svn, * including this file, may be copied, modified, propagated, or distributed * except according to the terms contained in the LICENSE file. */ package svnserver.ext.gitlab.config; import org.jetbrains.annotations.NotNull; import svnserver.config.SharedConfig; import svnserver.config.serializer.ConfigType; import svnserver.context.SharedContext; import java.io.IOException; /** * Gitlab access settings. * * @author Artem V. Navrotskiy <bozaro@users.noreply.github.com> */ @ConfigType("gitlab") public class GitLabConfig implements SharedConfig { @NotNull private String url = "http://localhost/"; @NotNull private String hookUrl = "http://localhost:8123/hooks/gitlab"; @NotNull private String token = ""; @NotNull public String getUrl() { return url; } public void setUrl(@NotNull String url) { this.url = url; } @NotNull public String getToken() { return token; } public void setToken(@NotNull String token) { this.token = token; } @NotNull public String getHookUrl() { return hookUrl; } public void setHookUrl(@NotNull String hookUrl) { this.hookUrl = hookUrl; } @Override public void create(@NotNull SharedContext context) throws IOException { context.add(GitLabContext.class, new GitLabContext(this)); } }