com.capitalone.dashboard.response.CodeReviewAuditResponseV2 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-audit Show documentation
Show all versions of api-audit Show documentation
Hygieia Audit Rest API Layer
package com.capitalone.dashboard.response;
import com.capitalone.dashboard.model.CodeAction;
import com.capitalone.dashboard.model.Commit;
import com.capitalone.dashboard.model.GitRequest;
import com.capitalone.dashboard.status.CodeReviewAuditStatus;
import java.util.ArrayList;
import java.util.List;
public class CodeReviewAuditResponseV2 extends AuditReviewResponse {
public static class PullRequestAudit extends AuditReviewResponse{
GitRequest pullRequest;
List codeActions;
public GitRequest getPullRequest() {
return pullRequest;
}
public void setPullRequest(GitRequest pullRequest) {
this.pullRequest = pullRequest;
}
public List getCodeActions() {
return codeActions;
}
public void setCodeActions(List codeActions) {
this.codeActions = codeActions;
}
}
private String url;
private String branch;
private long lastCommitTime;
private long lastPRMergeTime;
private List directCommits = new ArrayList<>();
private List pullRequests = new ArrayList<>();
private List directCommitsToBase = new ArrayList<>();
private List commitsAfterPrReviews = new ArrayList<>();
private List commitsAfterPrMerge = new ArrayList<>();
private List commitsByLDAPUnauthUsers = new ArrayList<>();
public List getPullRequests() {
return pullRequests;
}
public void setPullRequests(List pullRequests) {
this.pullRequests = pullRequests;
}
public List getDirectCommits() {
return directCommits;
}
public void setDirectCommits(List directCommits) {
this.directCommits = directCommits;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getBranch() {
return branch;
}
public void setBranch(String branch) {
this.branch = branch;
}
public void addPullRequest (PullRequestAudit pull) {
pullRequests.add(pull);
}
public void addDirectCommit (Commit commit) {
directCommits.add(commit);
}
public long getLastCommitTime() {
return lastCommitTime;
}
public void setLastCommitTime(long lastCommitTime) {
this.lastCommitTime = lastCommitTime;
}
public long getLastPRMergeTime() {
return lastPRMergeTime;
}
public void setLastPRMergeTime(long lastPRMergeTime) {
this.lastPRMergeTime = lastPRMergeTime;
}
public void addDirectCommitsToBase(Commit commit) {
directCommitsToBase.add(commit);
}
public List getDirectCommitsToBase() {
return directCommitsToBase;
}
public void addCommitAfterPrReviews(Commit commit) { commitsAfterPrReviews.add(commit); }
public List getCommitsAfterPrReviews() { return commitsAfterPrReviews; }
public void addCommitAfterPrMerge(Commit commit) { commitsAfterPrMerge.add(commit); }
public List getCommitsAfterPrMerge() { return commitsAfterPrMerge; }
public void addCommitByLDAPUnauthUser(Commit commit) { commitsByLDAPUnauthUsers.add(commit); }
public List getCommitsByLDAPUnauthUsers() { return commitsByLDAPUnauthUsers; }
public void setDirectCommitsToBase(List directCommitsToBase) {
this.directCommitsToBase = directCommitsToBase;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy