Skip to content
Snippets Groups Projects

Add strict mode to force full validation in some cases

Merged Martin Lowe requested to merge github/fork/autumnfound/malowe/master/strict into master
3 files
+ 178
194
Compare changes
  • Side-by-side
  • Inline
Files
3
/*******************************************************************************
* Copyright (C) 2020 Eclipse Foundation
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
******************************************************************************/
/**
* ***************************************************************************** Copyright (C) 2020
* Eclipse Foundation
*
* <p>This program and the accompanying materials are made available under the terms of the Eclipse
* Public License 2.0 which is available at https://www.eclipse.org/legal/epl-2.0/
*
* <p>SPDX-License-Identifier: EPL-2.0
* ****************************************************************************
*/
package org.eclipsefoundation.git.eca.model;
import java.net.URI;
@@ -17,68 +18,65 @@ import org.eclipsefoundation.git.eca.namespace.ProviderType;
/**
* Represents a request to validate a list of commits.
*
* @author Martin Lowe
*
* @author Martin Lowe
*/
public class ValidationRequest {
private URI repoUrl;
private List<Commit> commits;
private ProviderType provider;
private URI repoUrl;
private List<Commit> commits;
private ProviderType provider;
private boolean strictMode;
/** @return the repoUrl */
public URI getRepoUrl() {
return repoUrl;
}
/** @param repoUrl the repoUrl to set */
public void setRepoUrl(URI repoUrl) {
this.repoUrl = repoUrl;
}
/**
* @return the repoUrl
*/
public URI getRepoUrl() {
return repoUrl;
}
/** @return the commits */
public List<Commit> getCommits() {
return new ArrayList<>(commits);
}
/**
* @param repoUrl the repoUrl to set
*/
public void setRepoUrl(URI repoUrl) {
this.repoUrl = repoUrl;
}
/** @param commits the commits to set */
public void setCommits(List<Commit> commits) {
this.commits = new ArrayList<>(commits);
}
/**
* @return the commits
*/
public List<Commit> getCommits() {
return new ArrayList<>(commits);
}
/** @return the provider */
public ProviderType getProvider() {
return provider;
}
/**
* @param commits the commits to set
*/
public void setCommits(List<Commit> commits) {
this.commits = new ArrayList<>(commits);
}
/** @param provider the provider to set */
public void setProvider(ProviderType provider) {
this.provider = provider;
}
/**
* @return the provider
*/
public ProviderType getProvider() {
return provider;
}
/** @return the strictMode */
public boolean isStrictMode() {
return strictMode;
}
/**
* @param provider the provider to set
*/
public void setProvider(ProviderType provider) {
this.provider = provider;
}
/** @param strictMode the strictMode to set */
public void setStrictMode(boolean strictMode) {
this.strictMode = strictMode;
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ValidationRequest [repoUrl=");
builder.append(repoUrl);
builder.append(", commits=");
builder.append(commits);
builder.append(", provider=");
builder.append(provider);
builder.append("]");
return builder.toString();
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
builder.append("ValidationRequest [repoUrl=");
builder.append(repoUrl);
builder.append(", commits=");
builder.append(commits);
builder.append(", provider=");
builder.append(provider);
builder.append("]");
return builder.toString();
}
}
Loading