public ScmResult getScm(ScmName name) { return client .begin(API_REPOSITORIES, name.toString()) .get(GetScmRepositoriesResult.class) .getScms() .get(0); }
public void removeScm(ScmName name) { client.begin(API_REPOSITORIES + "/" + name).delete(); }
public void createScm(ScmName name, ScmLocation location, ScmType type, ScmUserId userId) { CreateScm command = new CreateScm(name, location, type, userId); client.begin(API_REPOSITORIES + "/" + name).put(command); }
public List<ScmResult> listAll() { return client.begin(API_REPOSITORIES).get(GetScmRepositoriesResult.class).getScms(); }